Tuesday, 15 July 2014

bash - Quotation in alias of shell configuration -



bash - Quotation in alias of shell configuration -

i have next alias in zshrc

alias s="nohup startterminal $(pwd) > /dev/null 2>&1 &"

it works until there no space characters in path. how can modify it works path?

it improve utilize shell function rather alias here:

s() { nohup startterminal "$pwd" > /dev/null 2>&1 & }

bash shell alias zsh quotes

No comments:

Post a Comment