all repos — dotfiles @ 3d04a85611b364f1f0ba99bea1bbf077a8e2f7c1

my *nix dotfiles

refactor(zshrc): clean up, remove unused stuff

Signed-off-by: Anirudh <icyph0x@pm.me>
Anirudh icyph0x@pm.me
Thu, 11 Oct 2018 22:52:39 +0530
commit

3d04a85611b364f1f0ba99bea1bbf077a8e2f7c1

parent

325a0e7278dbb6a1f4e681a84f853489067602ca

1 files changed, 15 insertions(+), 18 deletions(-)

jump to
M zsh/.zshrczsh/.zshrc

@@ -15,7 +15,6 @@ export PATH=$PATH:$HOME/bin

export GPG_TTY=$(tty) export INPUTRC=~/.inputrc export PATH=$PATH:$HOME/Leet/Nim/bin -export PATH=$PATH:$HOME/go/bin export PATH=$PATH:$HOME/.nimble/bin # theme specefic

@@ -35,7 +34,6 @@ alias icyinfo="~/bin/icyinfo.sh"

alias gah='sudo $(fc -ln -1)' alias nvime='nvim ~/.config/nvim/init.vim' alias up="~/bin/icyup.sh" -alias x="~/bin/oxo.nim" alias envac="source .env/bin/activate" alias vim="nvim" alias vi="nvim"

@@ -45,7 +43,6 @@ alias la="exa -al"

alias socks="ssh -D 8008 boop" alias vpn="sudo openvpn --config client.ovpn --script-security 2" alias o="xdg-open" -alias cat="bat" alias gc="git commit -v -s" # end and home keys

@@ -54,21 +51,21 @@ bindkey "^[[4~" end-of-line

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh -# Defer initialization of nvm until nvm, node or a node-dependent command is -# run. Ensure this block is only run once if .bashrc gets sourced multiple times -# by checking whether __init_nvm is a function. -if [ -s "$HOME/.nvm/nvm.sh" ] && [ ! "$(type __init_nvm)" = function ]; then - export NVM_DIR="$HOME/.nvm" - [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" - declare -a __node_commands=('nvm' 'node' 'npm' 'yarn' 'gulp' 'grunt' 'webpack') - function __init_nvm() { - for i in "${__node_commands[@]}"; do unalias $i; done - . "$NVM_DIR"/nvm.sh - unset __node_commands - unset -f __init_nvm - } - for i in "${__node_commands[@]}"; do alias $i='__init_nvm && '$i; done -fi +## Defer initialization of nvm until nvm, node or a node-dependent command is +## run. Ensure this block is only run once if .bashrc gets sourced multiple times +## by checking whether __init_nvm is a function. +#if [ -s "$HOME/.nvm/nvm.sh" ] && [ ! "$(type __init_nvm)" = function ]; then +# export NVM_DIR="$HOME/.nvm" +# [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" +# declare -a __node_commands=('nvm' 'node' 'npm' 'yarn' 'gulp' 'grunt' 'webpack') +# function __init_nvm() { +# for i in "${__node_commands[@]}"; do unalias $i; done +# . "$NVM_DIR"/nvm.sh +# unset __node_commands +# unset -f __init_nvm +# } +# for i in "${__node_commands[@]}"; do alias $i='__init_nvm && '$i; done +#fi # base16-shell BASE16_SHELL="$HOME/.config/base16-shell/"