summaryrefslogtreecommitdiffstats
path: root/.config/fish/config.fish
diff options
context:
space:
mode:
Diffstat (limited to '.config/fish/config.fish')
-rw-r--r--.config/fish/config.fish15
1 files changed, 11 insertions, 4 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
index adcbe4a..4f7aab8 100644
--- a/.config/fish/config.fish
+++ b/.config/fish/config.fish
@@ -23,6 +23,7 @@ set --global --export WECHALLTOKEN "35624-0D38B-A2F16-A98B0-5963D-6DF19"
23set --global --export RUST_SRC_PATH (rustc --print sysroot)/lib/rustlib/src/rust/library/ 23set --global --export RUST_SRC_PATH (rustc --print sysroot)/lib/rustlib/src/rust/library/
24set --global --export NLTK_DATA "$HOME/.local/share/nltk_data" 24set --global --export NLTK_DATA "$HOME/.local/share/nltk_data"
25set --global --export VIRTUALFISH_HOME "$HOME/.local/share/venvs/" 25set --global --export VIRTUALFISH_HOME "$HOME/.local/share/venvs/"
26set --global --export STARDICT_DATA_DIR "$HOME/.local/share/dict/"
26 27
27 28
28if status is-interactive 29if status is-interactive
@@ -31,21 +32,17 @@ if status is-interactive
31 abbr --add --global bc 'bc -l' 32 abbr --add --global bc 'bc -l'
32 abbr --add --global bo 'bukuopener' 33 abbr --add --global bo 'bukuopener'
33 abbr --add --global cp 'cp -i' 34 abbr --add --global cp 'cp -i'
34 abbr --add --global C 'xsel -b' # Copy to clipboard
35 abbr --add --global df 'df -h' 35 abbr --add --global df 'df -h'
36 abbr --add --global free 'free -m' 36 abbr --add --global free 'free -m'
37 abbr --add --global gst 'git status' 37 abbr --add --global gst 'git status'
38 abbr --add --global guno 'git status -uno' 38 abbr --add --global guno 'git status -uno'
39 abbr --add --global inc 'task +in +PENDING count' 39 abbr --add --global inc 'task +in +PENDING count'
40 abbr --add --global in 'task add +in' 40 abbr --add --global in 'task add +in'
41 abbr --add --global ledger "ledger -f ~/nextcloud/virtuals/ledger.ledger"
42 abbr --add --global lim 'nvim /home/yigit/nextcloud/virtuals/ledger.ledger'
43 abbr --add --global ls 'exa' 41 abbr --add --global ls 'exa'
44 abbr --add --global maybe 'task due:someday list' 42 abbr --add --global maybe 'task due:someday list'
45 abbr --add --global music 'mpv --no-vid' 43 abbr --add --global music 'mpv --no-vid'
46 abbr --add --global mv 'mv -i' 44 abbr --add --global mv 'mv -i'
47 abbr --add --global nt 'neomutt' 45 abbr --add --global nt 'neomutt'
48 abbr --add --global report "report -f ~/nextcloud/virtuals/ledger.ledger"
49 abbr --add --global re 'remi -gaad -@2' 46 abbr --add --global re 'remi -gaad -@2'
50 abbr --add --global rm 'rm -i' 47 abbr --add --global rm 'rm -i'
51 abbr --add --global s "du -hs * | sort -rh | head -5" 48 abbr --add --global s "du -hs * | sort -rh | head -5"
@@ -60,9 +57,19 @@ if status is-interactive
60 abbr --add --global wim 'nvim /home/yigit/nextcloud/personal_wiki/text/index.wiki' 57 abbr --add --global wim 'nvim /home/yigit/nextcloud/personal_wiki/text/index.wiki'
61 abbr --add --global yst 'yadm status' 58 abbr --add --global yst 'yadm status'
62 abbr --add --global dr 'dragon-drop' 59 abbr --add --global dr 'dragon-drop'
60 abbr --add --global ddg 'surfraw duckduckgo -j'
61 abbr --add --global lu 'sdcv'
62
63 if test "$WAYLAND_DISPLAY" = "wayland-1"
64 abbr --add --global C 'wl-copy' # Wayland
65 else
66 abbr --add --global C 'xsel -b' # X11
67 end
63 68
64 zoxide init fish | source 69 zoxide init fish | source
65 direnv hook fish | source 70 direnv hook fish | source
71 fzf --fish | source
72 atuin init fish --disable-up-arrow | source
66 73
67 fish_ssh_agent 74 fish_ssh_agent
68end 75end