summaryrefslogtreecommitdiff
path: root/fish/config.fish
blob: 17d0d0b8da5c0278430594021a7d8d824200f3fc (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
alias c="clear"
alias h="history"

if status is-interactive
    set -gx LANG en_US.UTF-8
    set -gx LC_ALL en_US.UTF-8

    set -gx HISTFILE $HOME/.histfile
    set -gx HISTSIZE 10000
    set -gx SAVEHIST 10000

    set -gx EDITOR nvim
    set -gx ALTERNATE_EDITOR nano
    set -gx VISUAL nvim

    keychain --eval --agents ssh id_ed25519 | source
    
    clear
end

set -gx PAGER less
set -gx PERL_UNICODE AS
set -gx PERL_READLINE_NOWARN yes

if test -d $HOME/bin
    fish_add_path -p $HOME/bin
end

if test -d $HOME/local/bin
    fish_add_path -p $HOME/local/bin
end

if test -d $HOME/.local/bin
    fish_add_path -p $HOME/.local/bin
end

if test -d $HOME/go/bin
    fish_add_path -p $HOME/go/bin
end

if test -f $HOME/.config/fish/env.fish
    source $HOME/.config/fish/env.fish
end