Skip to content

Instantly share code, notes, and snippets.

@jonathanmarvens
Created March 30, 2014 18:47
Show Gist options
  • Save jonathanmarvens/9877609 to your computer and use it in GitHub Desktop.
Save jonathanmarvens/9877609 to your computer and use it in GitHub Desktop.
function change-prompt -d "Change your fish prompt."
set fish_main_config_dir $HOME/.config/fish
set fish_current_prompt_location $fish_main_config_dir/functions/fish_prompt.fish
set fish_new_prompt_location $fish_main_config_dir/prompts/$argv[1].fish
if test -f $fish_new_prompt_location
if test -f $fish_current_prompt_location
mv -f $fish_current_prompt_location $fish_current_prompt_location.bak
end
ln -fs $fish_new_prompt_location $fish_current_prompt_location
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment