2014-09-26 13:55:55 +00:00
|
|
|
if [[ $TERM == "dumb" ]]; then # in emacs
|
|
|
|
PS1='%(?..[%?])%!:%~%# '
|
|
|
|
# for tramp to not hang, need the following. cf:
|
|
|
|
# http://www.emacswiki.org/emacs/TrampMode
|
|
|
|
unsetopt zle
|
|
|
|
unsetopt prompt_cr
|
|
|
|
unsetopt prompt_subst
|
|
|
|
unfunction precmd
|
|
|
|
unfunction preexec
|
|
|
|
else
|
2023-05-01 22:01:53 +00:00
|
|
|
if [ ! -d $HOME/.zgenom ]; then
|
|
|
|
git clone https://github.com/jandamm/zgenom.git "${HOME}/.zgenom"
|
2014-09-26 13:55:55 +00:00
|
|
|
fi
|
2023-05-01 22:01:53 +00:00
|
|
|
source $HOME/.zgenom/zgenom.zsh
|
2023-05-01 22:22:09 +00:00
|
|
|
zgenom autoupdate
|
2023-05-01 22:01:53 +00:00
|
|
|
if ! zgenom saved; then
|
|
|
|
zgenom ohmyzsh
|
|
|
|
zgenom ohmyzsh plugins/git
|
|
|
|
zgenom ohmyzsh plugins/git-extras
|
|
|
|
zgenom ohmyzsh plugins/pip
|
|
|
|
zgenom ohmyzsh plugins/pass
|
|
|
|
zgenom ohmyzsh plugins/ssh-agent
|
|
|
|
|
|
|
|
zgenom loadall <<EOF
|
2017-08-22 15:39:31 +00:00
|
|
|
nojhan/liquidprompt
|
2013-05-23 23:17:11 +00:00
|
|
|
zsh-users/zsh-syntax-highlighting
|
|
|
|
EOF
|
2023-05-01 22:22:09 +00:00
|
|
|
zgenom save
|
|
|
|
zgenom compile $HOME/.zshrc
|
2023-05-01 22:01:53 +00:00
|
|
|
fi
|
2014-09-26 13:55:55 +00:00
|
|
|
unsetopt correct_all
|
|
|
|
fi
|
2013-05-23 23:17:11 +00:00
|
|
|
|
2023-05-21 21:25:04 +00:00
|
|
|
if [[ $TERM == "xterm-kitty" ]]; then
|
|
|
|
# Enable ssh shell integrations for the Kitty terminal
|
|
|
|
alias ssh="kitty +kitten ssh"
|
|
|
|
fi
|
|
|
|
|
2013-05-23 23:17:11 +00:00
|
|
|
export PATH=$HOME/bin:$PATH
|
|
|
|
export EDITOR="emacsclient"
|
|
|
|
export ALTERNATE_EDITOR=""
|
|
|
|
|
|
|
|
alias erl='rlwrap -a erl'
|
|
|
|
|
2014-01-10 02:37:25 +00:00
|
|
|
if [ -d ${HOME}/.cabal/bin ]; then
|
|
|
|
export PATH="${HOME}/.cabal/bin:$PATH"
|
|
|
|
fi
|
2023-09-06 03:08:29 +00:00
|
|
|
|
|
|
|
export NVM_DIR="$HOME/.nvm"
|
|
|
|
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
|
|
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
|
|
|
|
|
|
|
# OPAM configuration
|
|
|
|
# . /home/correlr/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true
|
|
|
|
# eval "$(pyenv init --path)"
|
|
|
|
# eval "$(pyenv virtualenv-init -)"
|
|
|
|
# pyenv global $(pyenv versions --bare --skip-aliases | egrep "^(\.?[[:digit:]]+)+$" | sort -rV) > /dev/null 2> /dev/null
|
|
|
|
|
|
|
|
export STACK_ROOT=/run/media/correlr/Correl/.stack
|
|
|
|
export PLATFORMIO_CORE_DIR=/run/media/correlr/Correl/.platformio
|
|
|
|
|
|
|
|
[ -f "/media/correlr/Correl/.ghcup/env" ] && source "/run/media/correlr/Correl/.ghcup/env" # ghcup-env
|