aboutsummaryrefslogtreecommitdiff
path: root/.config/fish/config.fish
blob: 0ec137c64e28379eb13841b55fee77bb9db995bc (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
    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/.scripts
    fish_add_path $HOME/.local/bin
    fish_add_path $HOME/.emacs.d/bin
    fish_add_path /usr/local/bin

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

    set -x RUST_SRC_PATH $HOME/.cargo
    set -x GOPATH $HOME/.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"

    # disable greeting
    set fish_greeting
end