1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

tentative fix of corner case path bug

This commit is contained in:
Joël Schaerer 2010-09-30 14:37:43 +02:00
parent 52f3c84b29
commit e04382358b
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ _autojump()
} }
complete -F _autojump j complete -F _autojump j
data_dir=${XDG_DATA_HOME:-$([ -e ~/.local/share ] && echo ~/.local/share || echo ~)} data_dir=${XDG_DATA_HOME:-$([ -e ~/.local/share ] && echo ~/.local/share || echo ~)}
if [ "$data_dir" = "~" ] if [[ "$data_dir" = "${HOME}" ]]
then then
export AUTOJUMP_DATA_DIR=${data_dir} export AUTOJUMP_DATA_DIR=${data_dir}
else else

View File

@ -15,7 +15,7 @@
#along with autojump. If not, see <http://www.gnu.org/licenses/>. #along with autojump. If not, see <http://www.gnu.org/licenses/>.
local data_dir=${XDG_DATA_HOME:-$([ -e ~/.local/share ] && echo ~/.local/share || echo ~)} local data_dir=${XDG_DATA_HOME:-$([ -e ~/.local/share ] && echo ~/.local/share || echo ~)}
if [ "$data_dir" = "~" ] if [[ "$data_dir" = "${HOME}" ]]
then then
export AUTOJUMP_DATA_DIR=${data_dir} export AUTOJUMP_DATA_DIR=${data_dir}
else else