diff --git a/zsh/alias.sh b/zsh/alias.sh index 336ca99..b6393de 100644 --- a/zsh/alias.sh +++ b/zsh/alias.sh @@ -12,6 +12,10 @@ alias mg='python manage.py migrate' alias gp='git push' alias ga!='git commit --amend --no-edit --date now' +alias v='nvim' +alias vi='nvim' +alias vim='nvim' + rs() {python manage.py runserver 127.0.0."$1":"$2"} cheat() { curl cheat.sh/"$1" } @@ -23,6 +27,7 @@ ca() { pygmentize -g "$@" } grepf() { grep -rnw ./ -e "$@"} amendnow() { GIT_COMMITTER_DATE="$(date +%d/%m/%Y' '%H:%M:%S)" git commit --amend --no-edit --date "$(date +%d/%m/%Y' '%H:%M:%S)" } continous-running() { while true; do inotifywait $1 -r -e close_write && ${@:2}; done } +f() { find . -name "*$1*"; } make_venv() { echo $(basename $(pwd) | awk '{print "conda activate "$1}') > $(pwd | awk '{print $1"/.autoenv.zsh"}') diff --git a/zsh/generic.sh b/zsh/generic.sh index e161e6e..a78a01e 100644 --- a/zsh/generic.sh +++ b/zsh/generic.sh @@ -21,6 +21,7 @@ unset __conda_setup export PATH=$HOME/custom_commands:$PATH export NB_MINIONS=4 export VAGRANT_TYPE='abacus-abahost' +export NB_HAPROXY=2 export VISUAL=nvim export EDITOR=nvim export AUTOENV_ENV_FILENAME='.autoenv.zsh'