Added cat and ls to wrapped commands

This commit is contained in:
Nathan Broadbent
2012-01-28 19:06:27 +08:00
parent 1320aec4da
commit 66ac5c4e7b

View File

@@ -171,9 +171,15 @@ if [[ "$git_keyboard_shortcuts_enabled" = "true" ]]; then
fi
# Bash command wrapping
# (Tested with RVM's cd() wrapper)
# (Works fine with RVM's cd() wrapper)
if [[ "$bash_command_wrapping_enabled" = "true" ]]; then
for cmd in vim cd rm cp mv ln; do
for cmd in vim cat cd rm cp mv ln; do
alias $cmd="exec_git_expand_args $cmd"
done
if [[ "$(type ls)" =~ "--color=auto" ]]; then
alias ls="exec_git_expand_args ls --color=auto"
else
alias ls="exec_git_expand_args ls"
fi
fi