Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add env var $CMD #1542
$_ is nice to get the program name.
function fish_title if [ $_ = 'fish' ] echo (prompt_pwd) else if [ $_ = 'ssh' ] echo $CMD else echo $_ end end
I'm not sure if CMD is a good name or not, because $_ is a really very cool name.
referenced this pull request
Jul 13, 2014
function fish_title if [ $_ = 'fish' ] echo (prompt_pwd) else # instead of $CMD, we use the local var $argv echo $argv end end