aboutsummaryrefslogtreecommitdiff
path: root/fish/config.fish
blob: ffe0f0f927c34c400a15f4894e3e01018146927b (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
# Login shell initialisation
status is-login; and begin
end

status is-interactive; and begin
    # Abbreviations
    abbr --add -- la 'eza -a'
    abbr --add -- ll 'eza -l'
    abbr --add -- lla 'eza -la'
    abbr --add -- ls eza
    abbr --add -- lt 'eza --tree'

    # Interactive shell initialisation
    set hydro_color_pwd yellow
    set hydro_color_prompt green
    set hydro_color_git red
    set hydro_cmd_duration_threshold 30000

    set -gx GPG_TTY (tty)
    gpg-connect-agent --quiet updatestartuptty /bye >/dev/null

    if functions -q fzf_configure_bindings
        fzf_configure_bindings --variables=\ev
    end

    if command -q any-nix-shell
        any-nix-shell fish --info-right | source
    end
    
    if command -q zoxide
        zoxide init fish | source
    end

    if command -q direnv
        direnv hook fish | source
    end
end