Add alias for vim, find

This commit is contained in:
Loïc Gremaud 2021-10-28 16:27:22 +02:00
parent 35f6b47ca5
commit ec9841c173
Signed by: Legrems
GPG Key ID: E81E8B180465D116
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,10 @@ alias mg='python manage.py migrate'
alias gp='git push' alias gp='git push'
alias ga!='git commit --amend --no-edit --date now' 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"} rs() {python manage.py runserver 127.0.0."$1":"$2"}
cheat() { curl cheat.sh/"$1" } cheat() { curl cheat.sh/"$1" }
@ -23,6 +27,7 @@ ca() { pygmentize -g "$@" }
grepf() { grep -rnw ./ -e "$@"} 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)" } 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 } continous-running() { while true; do inotifywait $1 -r -e close_write && ${@:2}; done }
f() { find . -name "*$1*"; }
make_venv() { make_venv() {
echo $(basename $(pwd) | awk '{print "conda activate "$1}') > $(pwd | awk '{print $1"/.autoenv.zsh"}') echo $(basename $(pwd) | awk '{print "conda activate "$1}') > $(pwd | awk '{print $1"/.autoenv.zsh"}')

View File

@ -21,6 +21,7 @@ unset __conda_setup
export PATH=$HOME/custom_commands:$PATH export PATH=$HOME/custom_commands:$PATH
export NB_MINIONS=4 export NB_MINIONS=4
export VAGRANT_TYPE='abacus-abahost' export VAGRANT_TYPE='abacus-abahost'
export NB_HAPROXY=2
export VISUAL=nvim export VISUAL=nvim
export EDITOR=nvim export EDITOR=nvim
export AUTOENV_ENV_FILENAME='.autoenv.zsh' export AUTOENV_ENV_FILENAME='.autoenv.zsh'