Added mkcdir function and sourcing of user-dirs.dirs

This commit is contained in:
Tobias Schmidl 2018-10-15 14:29:31 +02:00
parent ae3afd15b7
commit e7464cee9c
2 changed files with 15 additions and 0 deletions

View file

@ -11,6 +11,11 @@ alias extip='curl -LR1fs --compressed https://ipinfo.io/ | jq -Sc'
alias jjar='java -jar'
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
function mkcdir () {
mkdir -p -- "$1" &&
cd -P -- "$1"
}
if [ -x "$(which lsb_release)" ];
then
current_dist=`lsb_release -c -s`

View file

@ -1,5 +1,15 @@
[ -z "$EDITOR" ] && export EDITOR=sensible-editor
[ -r "$HOME/.config/user-dirs.dirs" -a \
-z "$XDG_DESKTOP_DIR" -a \
-z "$XDG_DOWNLOAD_DIR" -a \
-z "$XDG_TEMPLATES_DIR" -a \
-z "$XDG_PUBLICSHARE_DIR" -a \
-z "$XDG_DOCUMENTS_DIR" -a \
-z "$XDG_MUSIC_DIR" -a \
-z "$XDG_PICTURES_DIR" -a \
-z "$XDG_VIDEOS_DIR" ] && . "$HOME/.config/user-dirs.dirs" && touch $HOME/user-dirs-read-from-zinit
export MAILCHECK=1
which fortune >/dev/null && which cowsay > /dev/null && fortune debian house-harkonnen house-atreides pratchett | cowsay -f tux -W 76 -n