aboutsummaryrefslogtreecommitdiff
path: root/.config/fish/config.fish
blob: 624b28127d6f790b19378ef287e833ad466667f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
if status is-interactive
  # Commands to run in interactive sessions can go here
  starship init fish | source

  # abbreviations
  abbr --add --global gA  'git add -A'
  abbr --add --global ga  'git add'
  abbr --add --global gc  'git clone'
  abbr --add --global gcm 'git commit -m'
  abbr --add --global gp  'git push'
  abbr --add --global gpl 'git pull'
  abbr --add --global gs  'git status'
  abbr --add --global rF  'rm -rf'
  abbr --add --global rM  'rm -r'
  abbr --add --global x   'chmod +x'

  # general PATH
  fish_add_path $HOME/.scripts
  fish_add_path $HOME/.local/bin
  fish_add_path $HOME/.config/emacs/bin
  fish_add_path /usr/local/bin

  set -x RUST_SRC_PATH $HOME/.cargo
  set -x GOPATH $HOME/.gopath
  set -x QT_QPA_PLATFORMTHEME "gtk2"

  # PATH for different languages
  fish_add_path $GOPATH/bin
  fish_add_path $HOME/.local/flutter/bin
  fish_add_path $HOME/.cargo/bin

  # 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"

  # disable greeting
  set fish_greeting
  fish_ssh_agent
end