Is there a way to edit the fg command so that it behaves like the one bash uses?
Instead of having:
fg %<job number>
in zsh, can I have:
fg <job number>
as in bash?
You could write your own function, fg
, to check the arg and then run the builting fg
:
fg(){ if [[ "$*" =~ ^[0-9]+$ ]]; then builtin fg %"$*";else builtin fg "$@";fi }
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments