Created
March 30, 2014 18:47
-
-
Save jonathanmarvens/9877609 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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