aboutsummaryrefslogtreecommitdiff
path: root/.config/fish/config.fish
diff options
context:
space:
mode:
Diffstat (limited to '.config/fish/config.fish')
-rw-r--r--.config/fish/config.fish41
1 files changed, 41 insertions, 0 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
new file mode 100644
index 0000000..09a2e1e
--- /dev/null
+++ b/.config/fish/config.fish
@@ -0,0 +1,41 @@
+if status is-interactive
+ # Commands to run in interactive sessions can go here
+ starship init fish | source
+ neofetch
+
+ # abbreviations
+ abbr --add --global gA 'git add -A'
+ abbr --add --global ga 'git add'
+ abbr --add --global gc 'git commit'
+ abbr --add --global gcl 'git clone'
+ abbr --add --global gcm 'git commit -m'
+ abbr --add --global gp 'git push'
+ abbr --add --global gs 'git status'
+ abbr --add --global rF 'rm -rf'
+ abbr --add --global rM 'rm -f'
+ abbr --add --global rf 'rm -r'
+ abbr --add --global x 'chmod +x'
+
+ # general PATH
+ fish_add_path /home/zt/.scripts
+ fish_add_path /home/zt/.local/bin
+ fish_add_path /home/zt/.emacs.d/bin
+ fish_add_path /usr/local/bin
+
+ # PATH for different languages
+ fish_add_path /home/zt/.gopath
+ fish_add_path /home/zt/.local/flutter/bin
+
+ set -x RUST_SRC_PATH /home/zt/.cargo
+ set -x GOPATH /home/zt/.gopath
+ set -x QT_QPA_PLATFORMTHEME "gtk2"
+
+ # default apps
+ set -x EDITOR "nvim"
+ set -x VISUAL "emacs"
+ set -x TERMINAL "alacritty"
+ set -x BROWSER "librewolf"
+ set -x READER "librewolf"
+ set -x COLORTERM "truecolor"
+ set -x PAGER "bat"
+end