mirror of https://github.com/Chizi123/Dotfiles.git

Joel Grunbaum
2021-12-13 a248172bfe6bc47fdf008dd3c40100520d1deca9
all-shells/.commonshell
@@ -19,6 +19,7 @@
#export EDITOR="/usr/bin/emacsclient -nw -a /usr/bin/vim"
#alias ec=$EDITOR
alias ec="/usr/bin/emacsclient -nw -a /usr/bin/vim"
[ -n "$(whereis vim)" ] && export EDITOR="/usr/bin/vim"
#default wine prefix
@@ -29,3 +30,15 @@
export PATH=$PATH:~/.local/bin
[ -r /usr/bin/ruby ] && PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin"
[ -d ~/.cargo ] && PATH="$PATH:$HOME/.cargo/bin"
# wsl display settings
if [ -n "$(uname -a | grep -i 'microsoft')" ]; then
   export DISPLAY=$(ip route | awk '{print $3; exit}'):0
   export LIBGL_ALWAYS_INDIRECT=1
fi
# acme.sh
[ -f "${HOME}/.acme.sh/acme.sh.env" ] && source ~/.acme.sh/acme.sh.env
# Update dotfiles
(git -C ~/.dotfiles pull &) &>/dev/null