Skip to content

Instantly share code, notes, and snippets.

@keichan34
Created April 17, 2020 01:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keichan34/85e2ed174adac7881ce6d4090be224f8 to your computer and use it in GitHub Desktop.
Save keichan34/85e2ed174adac7881ce6d4090be224f8 to your computer and use it in GitHub Desktop.
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