|
diff --git a/README.md b/README.md
|
| 1 |
 |
1 |
 |
| 2 |
|
2 |
|
| 3 |
Clone the repo first... |
|
|
| 4 |
|
|
|
| 5 |
```sh |
3 |
```sh |
| 6 |
git clone git@github.com:mitjafelicijan/dotfiles.git ~/.dotfiles |
4 |
git clone git@github.com:mitjafelicijan/dotfiles.git ~/.dotfiles |
| 7 |
``` |
|
|
| 8 |
|
5 |
|
| 9 |
Then create symbolic links to actual config files. |
6 |
# Create symbolic links to actual config files. |
| 10 |
|
7 |
bash update.sh |
| 11 |
```sh |
|
|
| 12 |
ln -s ~/.dotfiles/alacritty.yml ~/.alacritty.yml |
|
|
| 13 |
ln -s ~/.dotfiles/shenanigans.sh ~/.shenanigans.sh |
|
|
| 14 |
ln -s ~/.dotfiles/helix.toml ~/.config/helix/config.toml |
|
|
| 15 |
ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf |
|
|
| 16 |
ln -s ~/.dotfiles/vimrc ~/.vimrc |
|
|
| 17 |
ln -s ~/.dotfiles/newsboat ~/.newsboat/config |
|
|
| 18 |
ln -s ~/.dotfiles/urls ~/.newsboat/urls |
|
|
| 19 |
ln -s ~/.dotfiles/gf2_config.ini ~/.config/gf2_config.ini |
|
|
| 20 |
``` |
8 |
``` |
| 21 |
|
9 |
|
|
diff --git a/helix.toml b/helix.toml
|
| 1 |
# https://github.com/helix-editor/helix/blob/master/runtime/themes/jellybeans.toml |
|
|
| 2 |
# Located in ~/.congfig/helix/runtime/themes/fattybeans.toml |
|
|
| 3 |
# inherits = "jellybeans" |
|
|
| 4 |
# "ui.background" ={} |
|
|
| 5 |
theme = "fattybeans" |
|
|
| 6 |
|
|
|
| 7 |
[editor] |
|
|
| 8 |
line-number = "relative" |
|
|
| 9 |
color-modes = true |
|
|
| 10 |
true-color = true |
|
|
| 11 |
mouse = false |
|
|
| 12 |
middle-click-paste = true |
|
|
| 13 |
rulers = [80, 120] |
|
|
| 14 |
idle-timeout = 1000 |
|
|
| 15 |
|
|
|
| 16 |
[editor.lsp] |
|
|
| 17 |
display-messages = true |
|
|
| 18 |
auto-signature-help = false |
|
|
| 19 |
|
|
|
| 20 |
[keys.normal] |
|
|
| 21 |
"esc" = [ "collapse_selection", "keep_primary_selection" ] |
|
|
| 22 |
"D" = [ "ensure_selections_forward", "extend_to_line_end", "delete_selection" ] |
|
|
| 23 |
"C-left" = [ "goto_previous_buffer" ] |
|
|
| 24 |
"C-right" = [ "goto_next_buffer" ] |
|
|
| 25 |
"C-up" = [ "page_cursor_half_up" ] |
|
|
| 26 |
"C-down" = [ "page_cursor_half_down" ] |
|
|
| 27 |
"C-b" = [ ":sh make" ] |
|
|
|
diff --git a/shenanigans.sh b/shenanigans.sh
|
| 1 |
# Software list. |
1 |
# Software list. |
| 2 |
# cifs-utils treei tig hstr s3cmd xclip mc gnupg ripgrep jq xmlstarlet fzf htop nvtop newsboat tmux ctags |
2 |
# cifs-utils tree hstr s3cmd xclip mc gnupg ripgrep jq xmlstarlet htop nvtop newsboat tmux ctags |
| 3 |
|
3 |
|
| 4 |
# Magical environment variables. |
4 |
# Magical environment variables. |
| 5 |
|
5 |
|
| ... |
| 36 |
alias tmux='tmux -u' |
36 |
alias tmux='tmux -u' |
| 37 |
alias vi='vim' |
37 |
alias vi='vim' |
| 38 |
alias server='python3 -m http.server 6969' |
38 |
alias server='python3 -m http.server 6969' |
| 39 |
alias www='lynx -accept_all_cookies -scrollbar https://lite.duckduckgo.com' |
|
|
| 40 |
alias st='st -g 90x40 -f "BerkeleyMono:style=Bold:size=16:antialias=true:autohint:true"' |
|
|
| 41 |
|
39 |
|
| 42 |
# Custom folder jump commands. |
40 |
# Custom folder jump commands. |
| 43 |
|
41 |
|
| 44 |
alias p='cd ~/Vault/projects' |
42 |
alias p='cd ~/Vault/projects' |
| 45 |
alias n='cd ~/Vault/notes' |
|
|
| 46 |
alias j='cd ~/Junk/current' |
43 |
alias j='cd ~/Junk/current' |
| 47 |
alias d='cd ~/Downloads' |
44 |
alias d='cd ~/Downloads' |
| 48 |
|
45 |
|
| ... |
| 52 |
export PATH=$HOME/go/bin:$PATH |
49 |
export PATH=$HOME/go/bin:$PATH |
| 53 |
export PATH=/usr/local/go/bin:$PATH |
50 |
export PATH=/usr/local/go/bin:$PATH |
| 54 |
|
51 |
|
| 55 |
# Zig paths. |
|
|
| 56 |
export PATH=$HOME/.local/bin/zls-x86_64-linux-0.13.0:$PATH |
|
|
| 57 |
export PATH=$HOME/.local/bin/zig-linux-x86_64-0.14.0-dev.1587+feaee2ba1:$PATH |
|
|
| 58 |
|
|
|
| 59 |
# FZF settings. |
|
|
| 60 |
|
|
|
| 61 |
export FZF_DEFAULT_COMMAND='rg --files --hidden' |
|
|
| 62 |
|
|
|
| 63 |
# History and search. Stolen from J. |
52 |
# History and search. Stolen from J. |
| 64 |
|
53 |
|
| 65 |
HISTCONTROL=ignoreboth |
54 |
HISTCONTROL=ignoreboth |
| ... |
| 75 |
|
64 |
|
| 76 |
# Useful function. Much wow! |
65 |
# Useful function. Much wow! |
| 77 |
|
66 |
|
| 78 |
wow() { |
|
|
| 79 |
cd ~/Games/turtlewow/ |
|
|
| 80 |
./start.sh |
|
|
| 81 |
} |
|
|
| 82 |
|
|
|
| 83 |
backup() { |
67 |
backup() { |
| 84 |
CWD=$(pwd) |
68 |
CWD=$(pwd) |
| 85 |
VHOME=/home/$USER/Vault |
69 |
VHOME=/home/$USER/Vault |
| ... |
| 91 |
# Make a copy of dotfiles. |
75 |
# Make a copy of dotfiles. |
| 92 |
cp /home/$USER/.shenanigans.sh shenanigans.sh |
76 |
cp /home/$USER/.shenanigans.sh shenanigans.sh |
| 93 |
cp /home/$USER/.bash_history_infinite bash_history_infinite |
77 |
cp /home/$USER/.bash_history_infinite bash_history_infinite |
| 94 |
cp /home/$USER/.smbcredentials smbcredentials |
|
|
| 95 |
cp /home/$USER/.gitconfig gitconfig |
78 |
cp /home/$USER/.gitconfig gitconfig |
| 96 |
cp /home/$USER/.vimrc vimrc |
|
|
| 97 |
cp /home/$USER/.tmux.conf tmux.conf |
|
|
| 98 |
cp /home/$USER/.config/helix/config.toml config.toml |
|
|
| 99 |
cp /home/$USER/.newsboat/urls urls |
79 |
cp /home/$USER/.newsboat/urls urls |
| 100 |
cp /home/$USER/.newsboat/cache.db cache.db |
80 |
cp /home/$USER/.newsboat/cache.db cache.db |
| 101 |
|
81 |
|
| ... |
| 104 |
|
84 |
|
| 105 |
find /home/$USER/Videos -type f -name "*.webm" -exec cp -n {} $VHOME/videos/ \; |
85 |
find /home/$USER/Videos -type f -name "*.webm" -exec cp -n {} $VHOME/videos/ \; |
| 106 |
find /home/$USER/Pictures -type f -name "*.png" -exec cp -n {} $VHOME/pictures/ \; |
86 |
find /home/$USER/Pictures -type f -name "*.png" -exec cp -n {} $VHOME/pictures/ \; |
| 107 |
|
|
|
| 108 |
cp -Rf /home/$USER/Notebooks ./ |
|
|
| 109 |
|
|
|
| 110 |
mkdir ../twow |
|
|
| 111 |
cp -Rf /home/$USER/Games/turtlewow/Interface ../twow |
|
|
| 112 |
cp -Rf /home/$USER/Games/turtlewow/WTF ../twow |
|
|
| 113 |
cp -Rf /home/$USER/Games/turtlewow/start.sh ../twow/ |
|
|
| 114 |
cp -Rf /home/$USER/Games/turtlewow/icon.png ../twow/ |
|
|
| 115 |
cp -Rf /home/$USER/Games/turtlewow/start.sh ../twow/ |
|
|
| 116 |
|
87 |
|
| 117 |
# Sync with NAS. |
88 |
# Sync with NAS. |
| 118 |
rsync -azv \ |
89 |
rsync -azv \ |
| ... |