Added mkcdir function and sourcing of user-dirs.dirs
This commit is contained in:
parent
ae3afd15b7
commit
e7464cee9c
2 changed files with 15 additions and 0 deletions
|
@ -11,6 +11,11 @@ alias extip='curl -LR1fs --compressed https://ipinfo.io/ | jq -Sc'
|
||||||
alias jjar='java -jar'
|
alias jjar='java -jar'
|
||||||
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
|
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)" ];
|
if [ -x "$(which lsb_release)" ];
|
||||||
then
|
then
|
||||||
current_dist=`lsb_release -c -s`
|
current_dist=`lsb_release -c -s`
|
||||||
|
|
10
zinit.zsh
10
zinit.zsh
|
@ -1,5 +1,15 @@
|
||||||
[ -z "$EDITOR" ] && export EDITOR=sensible-editor
|
[ -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
|
export MAILCHECK=1
|
||||||
|
|
||||||
which fortune >/dev/null && which cowsay > /dev/null && fortune debian house-harkonnen house-atreides pratchett | cowsay -f tux -W 76 -n
|
which fortune >/dev/null && which cowsay > /dev/null && fortune debian house-harkonnen house-atreides pratchett | cowsay -f tux -W 76 -n
|
||||||
|
|
Loading…
Reference in a new issue