diff --git a/git.scmbrc.example b/git.scmbrc.example index aba9a8a..1bc919a 100644 --- a/git.scmbrc.example +++ b/git.scmbrc.example @@ -87,7 +87,7 @@ git_commit_all_keys="\C-x " # CTRL+x, SPACE git_add_and_commit_keys="\C-xc" # CTRL+x, c -# Bash Command Wrapping +# Shell Command Wrapping # ---------------------------------------------- -# Expand numbered args for common bash commands -bash_command_wrapping_enabled="true" +# Expand numbered args for common shell commands +shell_command_wrapping_enabled="true" diff --git a/lib/git/aliases_and_bindings.sh b/lib/git/aliases_and_bindings.sh index c964263..a5a4b40 100644 --- a/lib/git/aliases_and_bindings.sh +++ b/lib/git/aliases_and_bindings.sh @@ -181,7 +181,7 @@ fi # Wrap common commands with numeric argument expansion. # Prepends everything with exec_scmb_expand_args, # even if commands are already aliases or functions -if [[ "$bash_command_wrapping_enabled" = "true" ]]; then +if [ "$shell_command_wrapping_enabled" = "true" ] || [ "$bash_command_wrapping_enabled" = "true" ]; then # Do it in a function so we don't bleed variables function _git_wrap_commands() { # Define 'whence' for bash, to get the value of an alias