Use shell_command_wrapping_enabled, since the work was done for Zsh compatibility
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user