summaryrefslogtreecommitdiff
path: root/config.fish
blob: 9c5af6f5da6d0e0860e9f91aaca1f418caa1e8fc (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
fish_add_path -p ~/.juliaup/bin ~/.cargo/bin ~/.local/bin /usr/local/sbin /usr/local/bin /usr/bin

set -e TERMCAP
set -e MANPATH
set -Ux STARSHIP_CONFIG ~/.config/starship/starship.toml

pyenv init - | source
zoxide init fish | source
starship init fish | source

function starship_transient_prompt_func
    set --local -x STARSHIP_CONFIG ~/.config/starship/transient.toml
    starship module character
end

function fish_greeting
    set_color f0c6c6; echo 󰑂󱠡; set_color normal
end

function xcd
    set --local result (command xplr $argv)
    [ -n "$result" ] && cd "$result"
end

if status is-interactive
    alias ls='eza -w 80 --icons'
    alias cd='z'
    alias grep='grep --color=auto'
    alias nv=nvim

    fish_vi_key_bindings
    enable_transience
end