2017-10-20 23:37:07 +02:00
|
|
|
# Configure classic prompt
|
|
|
|
set fish_color_user --bold blue
|
|
|
|
set fish_color_cwd --bold white
|
|
|
|
|
2017-10-21 00:09:00 +02:00
|
|
|
# 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
|
|
|
|
|
2017-10-20 23:37:07 +02:00
|
|
|
# Fish configuration
|
|
|
|
set fish_greeting ""
|
2017-10-22 20:45:50 +02:00
|
|
|
set PATH $HOME/.local/bin $HOME/.cargo/bin $PATH
|
2017-10-20 23:37:07 +02:00
|
|
|
|
|
|
|
# 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'
|
2018-04-24 12:08:52 +02:00
|
|
|
alias servedir 'nix-shell -p haskellPackages.wai-app-static --run warp'
|
2017-10-21 00:05:11 +02:00
|
|
|
|
|
|
|
# Old habits die hard (also ls is just easier to type):
|
|
|
|
alias ls 'exa'
|
2018-04-05 13:09:37 +02:00
|
|
|
|
|
|
|
# Fix up nix-env & friends for Nix 2.0
|
|
|
|
export NIX_REMOTE=daemon
|
2018-05-09 00:25:31 +02:00
|
|
|
|
|
|
|
# Fix display of fish in emacs' term-mode:
|
|
|
|
function fish_title
|
|
|
|
true
|
|
|
|
end
|