Skip to content

Instantly share code, notes, and snippets.

@ordovician
Last active October 3, 2018 23:22
Show Gist options
  • Save ordovician/5601508 to your computer and use it in GitHub Desktop.
Save ordovician/5601508 to your computer and use it in GitHub Desktop.
[fish current directory] Set the prompt in the fish shell to a minimalistic "currentdir $ " Where currendir is the last directory in current working directory
function fish_prompt
echo -n '['
set_color $fish_color_cwd
echo -n (basename $PWD)
set_color normal
echo -n '] $ '
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment