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

messed up the last commit

This commit is contained in:
Joël Schaerer 2010-07-26 16:31:45 +02:00
parent 4de9c1c311
commit 7bd7db8770
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ _autojump()
done < <(autojump --bash --completion $cur)
}
complete -F _autojump j
data_dir=${XDG_DATA_DIR:-$([ -e ~/.config ] && echo ~/.config || echo ~)}
data_dir=${XDG_DATA_HOME:-$([ -e ~/.local/share ] && echo ~/.local/share || echo ~)}
if [ "$data_dir" = "~" ]
then
export AUTOJUMP_DATA_DIR=${data_dir}

View File

@ -14,7 +14,7 @@
#You should have received a copy of the GNU General Public License
#along with autojump. If not, see <http://www.gnu.org/licenses/>.
data_dir=${XDG_DATA_DIR:-$([ -e ~/.config ] && echo ~/.config || echo ~)}
data_dir=${XDG_DATA_HOME:-$([ -e ~/.local/share ] && echo ~/.local/share || echo ~)}
if [ "$data_dir" = "~" ]
then
export AUTOJUMP_DATA_DIR=${data_dir}