1
0
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:
Joel Schaerer 2009-02-23 09:36:13 +01:00
parent 31fd50fd18
commit f4f6ddaa99
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#This shell snippet sets the prompt command and the necessary aliases #This shell snippet sets the prompt command and the necessary aliases
#Only excecute if the shell is bash and it is interactive #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() _autojump()
{ {
local cur local cur

View File

@ -1,5 +1,5 @@
#Source autojump.bashrc only if we're on bash, as it is #Source autojump.bashrc only if we're on bash, as it is
#not compatible with other shells #not compatible with other shells
if [ $BASH_VERSION ] && [ -n "$PS1" ]; then if [ "$BASH_VERSION" ] && [ -n "$PS1" ]; then
. /etc/profile.d/autojump.bash . /etc/profile.d/autojump.bash
fi fi