emacs in XDG_CONFIG_HOME

dev-docs
Moritz Böhme 2021-06-25 17:57:55 +02:00
parent bae49c1a05
commit a9dd660f60
1 changed files with 13 additions and 9 deletions

View File

@ -4,21 +4,25 @@ SAVEHIST=200
HISTFILE=~/.zsh_history HISTFILE=~/.zsh_history
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
cbonsai -lp -t 0.005 -m "Welcome back" cbonsai -lp -t 0.005 -m "Welcome back"
sleep 2 sleep 2
startx &> /dev/null startx &>/dev/null
fi fi
if [ -d "$HOME/bin" ] ; then if [ -d "$HOME/bin" ]; then
export PATH="$HOME/bin:$PATH" export PATH="$HOME/bin:$PATH"
chmod u+x $HOME/bin/* chmod u+x $HOME/bin/*
fi fi
if [ -d "$HOME/.emacs.d/bin" ] ; then if [ -d "$HOME/.emacs.d/bin" ]; then
export PATH="$HOME/.emacs.d/bin:$PATH" export PATH="$HOME/.emacs.d/bin:$PATH"
fi fi
autoload -Uz compinit if [ -d "$XDG_CONFIG_HOME/emacs/bin" ]; then
export PATH="$XDG_CONFIG_HOME/emacs/bin:$PATH"
fi
autoload -Uz compinit
compinit compinit
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh