config/shell: Fix data dir detection

This commit is contained in:
xerus2000 2020-10-13 12:18:51 +02:00
parent d8bbdd46c8
commit 6acfa9f8be
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ alias info='info --vi-keys'
alias editgrub='sudoedit /etc/default/grub && sudo update-grub'
alias editenv='sudoedit /etc/environment'
editright() {
echo "Editing $1..."
test -O "$1" && $EDITOR "$1" || sudoedit "$1"
}

View File

@ -1,4 +1,4 @@
export DATA="$(test -d $HOME/data && echo $HOME/data || $HOME/daten)"
export DATA="$(test -d $HOME/data && echo $HOME/data || echo $HOME/daten)"
export MUSIC="$DATA/music"
export AUDIO="$DATA/audio"
MUSIC_RAW="$AUDIO/songs/_raw"