[zsh] Fix a bug in zsh vi function
This commit is contained in:
parent
f03e63c771
commit
90491bcf5b
2 changed files with 5 additions and 6 deletions
10
rc
10
rc
|
@ -45,11 +45,11 @@ function g
|
|||
|
||||
function vi
|
||||
{
|
||||
if which nvim 1>/dev/null 2>&1; then
|
||||
if whence -cp nvim 1>/dev/null 2>&1; then
|
||||
command nvim $@
|
||||
elif which vim 1>/dev/null 2>&1; then
|
||||
elif whence -cp vim 1>/dev/null 2>&1; then
|
||||
command vim $@
|
||||
elif which vi 1>/dev/null 2>&1; then
|
||||
elif whence -cp vi 1>/dev/null 2>&1; then
|
||||
command vi $@
|
||||
fi
|
||||
}
|
||||
|
@ -102,8 +102,8 @@ function configure_ls
|
|||
binary_exists nethack && export NETHACKOPTIONS="color"
|
||||
|
||||
# Default ledger file
|
||||
[[ -e "$HOME/Documents/Financial/personal.ledger" ]] && \
|
||||
LEDGER_FILE=$HOME/Documents/Financial/personal.ledger
|
||||
[[ -e "$HOME/Documents/Ledger/personal.ledger" ]] && \
|
||||
LEDGER_FILE=$HOME/Documents/Ledger/personal.ledger
|
||||
|
||||
if [[ -e "$HOME/.rc.$SYS" ]]; then
|
||||
print_info -l 2 "Sourcing $SYS interactive shell setup"
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# Interactive shell setup for Darwin systems
|
||||
# Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
|
||||
alias acls='command ls -le'
|
||||
|
||||
# These things might have been installed by Homebrew, and I like the GNU versions better.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue