Update zshrc with path and alias

This commit is contained in:
Tanguy Herbron 2021-11-17 11:49:23 +01:00
parent cdf33f0a9a
commit 3518d95c3a

28
.zshrc
View File

@ -31,16 +31,20 @@ export LANG=en_US.UTF-8
# Add w3m to the path to allow image preview in the terminal # Add w3m to the path to allow image preview in the terminal
export PATH="$PATH:/usr/lib/w3m" export PATH="$PATH:/usr/lib/w3m"
# Custom almond scripts
export PATH="$PATH:$HOME/.almond/"
# NPM path for global installation # NPM path for global installation
PATH="$HOME/.node_modules/bin:$PATH" export PATH="$HOME/.node_modules/bin:$PATH"
export npm_config_prefix=~/.node_modules export npm_config_prefix=~/.node_modules
# Add libvips environment variable for pyvips # Add libvips environment variable for pyvips
export LD_LIBRARY_PATH=/usr/local/lib/ export LD_LIBRARY_PATH=/usr/local/lib/
# Set default editor to neovim
# Mainly used to edit a file as sudo without giving root access to neovim (sudo -e `file`)
export EDITOR='nvim'
# Add custom script to path
export PATH="$HOME/.bin:$PATH"
# The next line updates PATH for the Google Cloud SDK. # The next line updates PATH for the Google Cloud SDK.
if [ -f '/home/tanguy/Downloads/tmp/google-cloud-sdk/path.zsh.inc' ]; then . '/home/tanguy/Downloads/tmp/google-cloud-sdk/path.zsh.inc'; fi if [ -f '/home/tanguy/Downloads/tmp/google-cloud-sdk/path.zsh.inc' ]; then . '/home/tanguy/Downloads/tmp/google-cloud-sdk/path.zsh.inc'; fi
@ -51,19 +55,16 @@ if [ -f '/home/tanguy/Downloads/tmp/google-cloud-sdk/completion.zsh.inc' ]; then
# if [[ -n $SSH_CONNECTION ]]; then # if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim' # export EDITOR='vim'
# else # else
# export EDITOR='mvim' # export EDITOR='nvim'
# fi # fi
# >>> conda initialize >>>
[ -f /opt/miniconda3/etc/profile.d/conda.sh ] && source /opt/miniconda3/etc/profile.d/conda.sh
# <<< conda initialize <<<
# Update dir_colors according to the specified dotfile # Update dir_colors according to the specified dotfile
eval $(dircolors -b ~/.config/dir_colors) eval $(dircolors -b ~/.config/dir_colors)
# Enable vim controls in the terminal # Enable vim controls in the terminal
set -o vi set -o vi
# Enable delition in vi mode
bindkey "^?" backward-delete-char bindkey "^?" backward-delete-char
# Enable backward incremental search # Enable backward incremental search
@ -73,8 +74,6 @@ bindkey '^R' history-incremental-search-backward
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
alias socrates="ssh socrates" alias socrates="ssh socrates"
alias almond_droplet="ssh tanguy@almond_droplet -p 22222"
alias almond=". almond"
alias lc="docker container ls" alias lc="docker container ls"
alias vim="nvim" alias vim="nvim"
@ -88,10 +87,7 @@ dotfiles config --local status.showUntrackedFiles no
# Switch between nvidia and intel drivers with one command # Switch between nvidia and intel drivers with one command
alias driver='optimus-manager --no-confirm --switch' alias driver='optimus-manager --no-confirm --switch'
# Enable nvidia drivers and trigger the default multi-head configuration # Pacman install shortner for Arch
alias multihead='touch /tmp/multihead && driver nvidia'
# Add an alias to the powerpill wrapper for pacman
alias pac='sudo pacman -S' alias pac='sudo pacman -S'
# When opening top, use bottom # When opening top, use bottom
@ -103,6 +99,4 @@ alias tlmgr='/usr/share/texmf-dist/scripts/texlive/tlmgr.pl --usermode'
alias gitcommiiiiiiiiiiiiiit='cz' alias gitcommiiiiiiiiiiiiiit='cz'
alias havpn='~/.config/halia-switch.sh'
alias clip='xclip -selection primary' alias clip='xclip -selection primary'