31 lines
776 B
Fish
31 lines
776 B
Fish
# Configure classic prompt
|
|
set fish_color_user --bold blue
|
|
set fish_color_cwd --bold white
|
|
|
|
# Enable colour hints in VCS prompt:
|
|
set __fish_git_prompt_showcolorhints yes
|
|
set __fish_git_prompt_color_prefix purple
|
|
set __fish_git_prompt_color_suffix purple
|
|
|
|
# Fish configuration
|
|
set fish_greeting ""
|
|
set PATH $HOME/.local/bin $HOME/.cargo/bin $PATH
|
|
|
|
# Editor configuration
|
|
set -gx EDITOR "emacsclient"
|
|
set -gx ALTERNATE_EDITOR "emacs -q -nw"
|
|
set -gx VISUAL "emacsclient"
|
|
|
|
# Miscellaneous
|
|
eval (direnv hook fish)
|
|
|
|
# Useful command aliases
|
|
alias gpr 'git pull --rebase'
|
|
alias gco 'git checkout'
|
|
alias gf 'git fetch'
|
|
alias gap 'git add -p'
|
|
alias pbcopy 'xclip -selection clipboard'
|
|
alias edit 'emacsclient -n'
|
|
|
|
# Old habits die hard (also ls is just easier to type):
|
|
alias ls 'exa'
|