3 ms·
Can you make this work in fish? http://www.developerzen.com/2011/01/10/show-the-current-git-branch-in-your-command-prompt/ http://www.developerzen.com/2011/01/
by herdrick 14y ago
Can you make this work in fish? http://www.developerzen.com/2011/01/10/show-the-current-git-branch-in-your-command-prompt/ http://www.developerzen.com/2011/01/10/show-the-current-git-...
- eru 14y agoDon't see why not.
- herdrick 14y agoRight, but I meant, "Tell me how". I figured it out and dashed off a quick post: http://herdrick.tumblr.com/post/24563032599/display-git-branch-and-dirty-status-in-command-shell http://herdrick.tumblr.com/post/24563032599/display-git-bran...
- eru 14y agoYou can also find `how' on the Arch-Linux Wiki (https://wiki.archlinux.org/index.php/Fish#Configuration_Suggestions https://wiki.archlinux.org/index.php/Fish#Configuration_Sugg...). Also judging by your blog you might like something like PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo $$ $USER \ "$(pwd) $(history 1)" >> ~/.bash_eternal_history' in your .bashrc, so that you don't have to abuse the bash-history for keeping a lifetime of commands around.
- herdrick 14y agoIs it abuse? It hasn't slowed anything down yet. Also, in the blog post I linked to the link you mention.