Update zshrc with path and alias
This commit is contained in:
parent
cdf33f0a9a
commit
3518d95c3a
28
.zshrc
28
.zshrc
@ -31,16 +31,20 @@ export LANG=en_US.UTF-8
|
||||
# Add w3m to the path to allow image preview in the terminal
|
||||
export PATH="$PATH:/usr/lib/w3m"
|
||||
|
||||
# Custom almond scripts
|
||||
export PATH="$PATH:$HOME/.almond/"
|
||||
|
||||
# NPM path for global installation
|
||||
PATH="$HOME/.node_modules/bin:$PATH"
|
||||
export PATH="$HOME/.node_modules/bin:$PATH"
|
||||
export npm_config_prefix=~/.node_modules
|
||||
|
||||
# Add libvips environment variable for pyvips
|
||||
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.
|
||||
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
|
||||
# export EDITOR='vim'
|
||||
# else
|
||||
# export EDITOR='mvim'
|
||||
# export EDITOR='nvim'
|
||||
# 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
|
||||
eval $(dircolors -b ~/.config/dir_colors)
|
||||
|
||||
# Enable vim controls in the terminal
|
||||
set -o vi
|
||||
|
||||
# Enable delition in vi mode
|
||||
bindkey "^?" backward-delete-char
|
||||
|
||||
# Enable backward incremental search
|
||||
@ -73,8 +74,6 @@ bindkey '^R' history-incremental-search-backward
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
alias socrates="ssh socrates"
|
||||
alias almond_droplet="ssh tanguy@almond_droplet -p 22222"
|
||||
alias almond=". almond"
|
||||
alias lc="docker container ls"
|
||||
alias vim="nvim"
|
||||
|
||||
@ -88,10 +87,7 @@ dotfiles config --local status.showUntrackedFiles no
|
||||
# Switch between nvidia and intel drivers with one command
|
||||
alias driver='optimus-manager --no-confirm --switch'
|
||||
|
||||
# Enable nvidia drivers and trigger the default multi-head configuration
|
||||
alias multihead='touch /tmp/multihead && driver nvidia'
|
||||
|
||||
# Add an alias to the powerpill wrapper for pacman
|
||||
# Pacman install shortner for Arch
|
||||
alias pac='sudo pacman -S'
|
||||
|
||||
# When opening top, use bottom
|
||||
@ -103,6 +99,4 @@ alias tlmgr='/usr/share/texmf-dist/scripts/texlive/tlmgr.pl --usermode'
|
||||
|
||||
alias gitcommiiiiiiiiiiiiiit='cz'
|
||||
|
||||
alias havpn='~/.config/halia-switch.sh'
|
||||
|
||||
alias clip='xclip -selection primary'
|
||||
|
Loading…
Reference in New Issue
Block a user