summaryrefslogtreecommitdiff
path: root/.config/fish/config.fish
blob: 96311000c0a97fe114c5c20884cd7dbafbac1662 (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

source ~/.config/fish/colors.fish

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 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
    alias lg=lazygit
    alias ssh='kitten ssh'

    fish_vi_key_bindings
    enable_transience
end