mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
update autojump.bash, thanks yqiang
This commit is contained in:
parent
31fd50fd18
commit
f4f6ddaa99
@ -1,6 +1,6 @@
|
||||
#This shell snippet sets the prompt command and the necessary aliases
|
||||
#Only excecute if the shell is bash and it is interactive
|
||||
if [ $SHELL = "/bin/bash" ] && [ -n "$PS1" ]; then
|
||||
if [ "$BASH_VERSION" ] && [ -n "$PS1" ]; then
|
||||
_autojump()
|
||||
{
|
||||
local cur
|
||||
|
@ -1,5 +1,5 @@
|
||||
#Source autojump.bashrc only if we're on bash, as it is
|
||||
#not compatible with other shells
|
||||
if [ $BASH_VERSION ] && [ -n "$PS1" ]; then
|
||||
if [ "$BASH_VERSION" ] && [ -n "$PS1" ]; then
|
||||
. /etc/profile.d/autojump.bash
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user