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:
parent
52f3c84b29
commit
e04382358b
@ -26,7 +26,7 @@ _autojump()
|
||||
}
|
||||
complete -F _autojump j
|
||||
data_dir=${XDG_DATA_HOME:-$([ -e ~/.local/share ] && echo ~/.local/share || echo ~)}
|
||||
if [ "$data_dir" = "~" ]
|
||||
if [[ "$data_dir" = "${HOME}" ]]
|
||||
then
|
||||
export AUTOJUMP_DATA_DIR=${data_dir}
|
||||
else
|
||||
|
@ -15,7 +15,7 @@
|
||||
#along with autojump. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
local data_dir=${XDG_DATA_HOME:-$([ -e ~/.local/share ] && echo ~/.local/share || echo ~)}
|
||||
if [ "$data_dir" = "~" ]
|
||||
if [[ "$data_dir" = "${HOME}" ]]
|
||||
then
|
||||
export AUTOJUMP_DATA_DIR=${data_dir}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user