Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
$_ 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.
function fish_title if [ $_ = 'fish' ] echo (prompt_pwd) else # instead of $CMD, we use the local var $argv echo $argv end end