My Fish-shell config
function fish_greeting | |
echo "! COMPUTER_NAME" | |
end | |
set -x EDITOR vim | |
set -x LESS -asrRix8 | |
set -x LANG en_US.UTF-8 | |
set -x LC_ALL en_US.UTF-8 | |
set -x LANGUAGE en_US.UTF-8 | |
set __fish_git_prompt_show_informative_status 'yes' | |
set __fish_git_prompt_color_branch magenta | |
set __fish_git_prompt_color_cleanstate green | |
set __fish_git_prompt_color_stagedstate red | |
set __fish_git_prompt_color_invalidstate red | |
set __fish_git_prompt_color_untrackedfiles cyan | |
set __fish_git_prompt_color_dirtystate blue | |
function fish_prompt | |
set __status $status | |
switch $__status | |
case 0 | |
set_color green | |
echo -n "✔" | |
case '*' | |
set_color -o red | |
echo -n "× ($__status)" | |
end | |
if set -q AWS_PROFILE | |
set_color -o white | |
printf ' [%s]' "$AWS_PROFILE" | |
end | |
set_color normal | |
printf ' %s' (prompt_pwd) | |
printf '%s' (__fish_git_prompt) | |
switch (whoami) | |
case "root" | |
printf ' # ' | |
case '*' | |
printf ' > ' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment