summaryrefslogtreecommitdiff
path: root/fish/conf.d/config.fish
blob: d1e53865e0867a3feff9629e7759d3792ccdf3a3 (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
fish_vi_key_bindings

fzf --fish | source

# Add paths to PATH
set -U fish_user_paths ~/bin ~/scripts ~/go/bin ~/.cargo/bin $fish_user_paths

if command -q -v doas >/dev/null
    abbr -a s doas
else
    abbr -a s sudo
end

abbr -a g 'grep -E -i'
abbr -a no 'grep -E -i -v'
abbr -a not 'grep -E -i -v'
abbr -a gl 'git log --pretty=oneline --graph --decorate --all'
abbr -a gp 'begin; git commit -a; and git pull; and git push; end'
abbr -a gdt 'git difftool'

for dir in ~/.config/fish/conf.d.work ~/.config/fish/conf.d.local
    if test -d $dir
        for file in $dir/*.fish
            source $file
        end
    end
end

if test -d /home/linuxbrew/.linuxbrew
    if status is-interactive
        # Commands to run in interactive sessions can go here
    end
    eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
end