aboutsummaryrefslogtreecommitdiff
path: root/.config/fish/config.fish
blob: 09a2e1ea8b047c3264460e582ec5f92f7b8ead53 (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
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