zsh shell fg command coming from bash?

CodeSammich

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?

meuh

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I run a command in bash from zsh (or some other shell) in one line?

From Dev

Running a bash script from a zsh shell

From Dev

Can't change shell from zsh to bash?

From Dev

Compare two strings in shell, one coming from a command return

From Java

How do I defer shell completion to another command in bash and zsh?

From Dev

bash like autocompletion for ssh command in zsh shell with /etc/hosts file?

From Dev

"which" command not work in shell script with #!/bin/bash but work with #!/bin/zsh

From Dev

find command with filename coming from bash printf builtin not working

From Dev

Possible side effects of changing shell from zsh to bash

From Dev

How to set a shell exit trap from within a function in zsh and bash

From Dev

Shell out into zsh and execute commands from bash script

From Dev

Pasting from clipboard to vi-enabled zsh or bash shell

From Dev

Possible side effects of changing shell from zsh to bash

From Dev

How to change the Login Shell on Mac OS X from bash to zsh?

From Dev

Pasting from clipboard to vi-enabled zsh or bash shell

From Dev

Shell won't start after change from zsh to bash

From Dev

ZSH command runs in shell but not in script

From Dev

Serialize shell variable in bash or zsh

From Dev

What is the zsh equivalent of bash's "command" command?

From Dev

bash on command event (or shell)

From Dev

Prevent completion of files for 'make' command in zsh shell

From Dev

Is it possible to remove previous command from the zsh shell history when it starts with a space?

From Dev

How to execute multiple queries using psql command from bash shell?

From Dev

Bash builtin read command difference from Korn shell

From Dev

Bash shell commanding to vpn connection from command line

From Dev

What is the command to install phplint for grunt from the bash shell?

From Dev

Extract variables values from command output Bash Shell

From Dev

Java_HOME not found when changed shell from Bash to Zsh on OSX?

From Dev

How do I inform the rest of the system my shell has changed from zsh to bash?

Related Related

  1. 1

    How do I run a command in bash from zsh (or some other shell) in one line?

  2. 2

    Running a bash script from a zsh shell

  3. 3

    Can't change shell from zsh to bash?

  4. 4

    Compare two strings in shell, one coming from a command return

  5. 5

    How do I defer shell completion to another command in bash and zsh?

  6. 6

    bash like autocompletion for ssh command in zsh shell with /etc/hosts file?

  7. 7

    "which" command not work in shell script with #!/bin/bash but work with #!/bin/zsh

  8. 8

    find command with filename coming from bash printf builtin not working

  9. 9

    Possible side effects of changing shell from zsh to bash

  10. 10

    How to set a shell exit trap from within a function in zsh and bash

  11. 11

    Shell out into zsh and execute commands from bash script

  12. 12

    Pasting from clipboard to vi-enabled zsh or bash shell

  13. 13

    Possible side effects of changing shell from zsh to bash

  14. 14

    How to change the Login Shell on Mac OS X from bash to zsh?

  15. 15

    Pasting from clipboard to vi-enabled zsh or bash shell

  16. 16

    Shell won't start after change from zsh to bash

  17. 17

    ZSH command runs in shell but not in script

  18. 18

    Serialize shell variable in bash or zsh

  19. 19

    What is the zsh equivalent of bash's "command" command?

  20. 20

    bash on command event (or shell)

  21. 21

    Prevent completion of files for 'make' command in zsh shell

  22. 22

    Is it possible to remove previous command from the zsh shell history when it starts with a space?

  23. 23

    How to execute multiple queries using psql command from bash shell?

  24. 24

    Bash builtin read command difference from Korn shell

  25. 25

    Bash shell commanding to vpn connection from command line

  26. 26

    What is the command to install phplint for grunt from the bash shell?

  27. 27

    Extract variables values from command output Bash Shell

  28. 28

    Java_HOME not found when changed shell from Bash to Zsh on OSX?

  29. 29

    How do I inform the rest of the system my shell has changed from zsh to bash?

HotTag

Archive