Add base fish config, managed with stow

This commit is contained in:
Donovan Glover 2018-01-27 23:55:36 -05:00
parent c0b2905abf
commit 65e0ed690a
No known key found for this signature in database
GPG Key ID: 8FC5F7D90A5D8F4D
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,22 @@
#set -U fish_greeting ""
#set -U fish_history ""
#set -U fish_user_paths
#set -U BROWSER "waterfox"
fish_vi_key_bindings
alias c="clear"
alias cf="tput reset"
alias pls="sudo"
alias rm="rm -i"
alias mkdir="mkdir -p"
alias exa="exa --group-directories-first"
alias ls="exa"
alias l="ls -l"
alias lsa="ls -a"
alias tree="exa --long --tree"
alias t="tree -L 1"
alias todo="rg TODO"
alias pwd="pwd | sed -e 's!$HOME!~!g'"

View File

@ -0,0 +1,25 @@
function fish_prompt
set -l color_cwd
set -l suffix
set host (prompt_hostname)
set pwd (basename $PWD)
if [ $pwd = $USER ]
set pwd "~"
end
switch "$USER"
case root toor
if set -q fish_color_cwd_root
set color_cwd $fish_color_cwd_root
else
set color_cwd $fish_color_cwd
end
set suffix '#'
case '*'
set color_cwd $fish_color_cwd
set suffix ""
end
# $USER@$host
echo -n "$pwd ➤➤➤ "
end