Created
February 9, 2023 16:30
-
-
Save chrisxaustin/74b38575c53be77857c21d95a5427842 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export TFENV_ARCH=arm64 | |
alias tf=terraform | |
alias tfi='terraform init' | |
alias tfia='terraform init && terraform apply' | |
alias tfa='terraform apply' | |
alias tfaa='terraform apply -auto-approve' | |
alias mvcd='mvn versions:set && mvn clean deploy -DskipTests' | |
alias mcd='mvn clean deploy -DskipTests' | |
alias gsps='git stash && git pull && git stash apply' | |
alias gmp='git checkout main && git pull' | |
alias gsmps='git stash && git checkout main && git pull && git stash apply' | |
# Ctrl-w - delete a full WORD (including colon, dot, comma, quotes...) | |
my-backward-kill-word () { | |
# Add colon, comma, single/double quotes to word chars | |
local WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>:,"'"'" | |
zle -f kill # Append to the kill ring on subsequent kills. | |
zle backward-kill-word | |
} | |
my-backward-word () { | |
# Add colon, comma, single/double quotes to word chars | |
local WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>:,"'"'" | |
zle backward-word | |
} | |
my-forward-word () { | |
# Add colon, comma, single/double quotes to word chars | |
local WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>:,"'"'" | |
zle forward-word | |
} | |
zle -N my-backward-kill-word | |
zle -N my-backward-word | |
zle -N my-forward-word | |
bindkey '^w' my-backward-kill-word | |
bindkey "[D" my-backward-word | |
bindkey "[C" my-forward-word |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment