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
|
git_add_and_commit_keys="\C-xc" # CTRL+x, c
|
||||||
|
|
||||||
|
|
||||||
# Bash Command Wrapping
|
# Shell Command Wrapping
|
||||||
# ----------------------------------------------
|
# ----------------------------------------------
|
||||||
# Expand numbered args for common bash commands
|
# Expand numbered args for common shell commands
|
||||||
bash_command_wrapping_enabled="true"
|
shell_command_wrapping_enabled="true"
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ fi
|
|||||||
# Wrap common commands with numeric argument expansion.
|
# Wrap common commands with numeric argument expansion.
|
||||||
# Prepends everything with exec_scmb_expand_args,
|
# Prepends everything with exec_scmb_expand_args,
|
||||||
# even if commands are already aliases or functions
|
# 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
|
# Do it in a function so we don't bleed variables
|
||||||
function _git_wrap_commands() {
|
function _git_wrap_commands() {
|
||||||
# Define 'whence' for bash, to get the value of an alias
|
# Define 'whence' for bash, to get the value of an alias
|
||||||
|
|||||||
Reference in New Issue
Block a user