conditional for xset so we don't try to run on a server/without xset

This commit is contained in:
Howland Owl 2016-10-23 13:47:14 +03:00
parent 8be6e3ef06
commit 401bec6b93

16
zshrc
View file

@ -1,19 +1,23 @@
echo "Loading zgen..." echo "Loading zgen..."
source ~/bin/zgen/zgen.zsh source ~/bin/zgen/zgen.zsh
source ~/bin/fixcolors source ~/bin/fixcolors
HIST_STAMPS="yyyy-mm-dd" HIST_STAMPS="yyyy-mm-dd"
HISTFILE=~/.histfile HISTFILE=~/.histfile
HISTSIZE=2000 HISTSIZE=2000
SAVEHIST=2000 SAVEHIST=2000
setopt appendhistory autocd extendedglob setopt appendhistory autocd extendedglob
xset -b
if [ -x /usr/bin/xset ]; then
xset -b
fi
unsetopt beep unsetopt beep
bindkey -e bindkey -e
export LESS="-X -R -F" export LESS="-X -R -F"
alias http='python -m http.server' alias http='python -m http.server'
export PATH=$HOME/bin:/usr/local/bin:$PATH export PATH=$HOME/bin:/usr/local/bin:$PATH
alias t=todo.sh
export EDITOR=mg export EDITOR=mg
autoload insert-composed-char autoload insert-composed-char
@ -50,8 +54,10 @@ fi
prompt fire 125 234 084 054 020 prompt fire 125 234 084 054 020
# powerline (arch location) # powerline
#. /usr/share/zsh/site-contrib/powerline.zsh #source ~/.local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh
alias t=todo.sh
unalias rm unalias rm
unalias mv unalias mv