Last active
May 3, 2020 14:34
-
-
Save mikenoethiger/d344d859a29d31ad50a9d7adc056d412 to your computer and use it in GitHub Desktop.
Shell Configs
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
| # == | |
| # ls | |
| # == | |
| alias ll='ls -alF' | |
| alias la='ls -A' | |
| alias l='ls -CF' | |
| # ====== | |
| # Docker | |
| # ====== | |
| alias dc="docker container" | |
| alias dv="docker volume" | |
| alias ds="docker service" | |
| alias dn="docker network" | |
| # === | |
| # Git | |
| # === | |
| alias ga="git add" | |
| alias gc="git commit" | |
| alias gac="git add . && git commit" | |
| alias gp="git push" | |
| alias gs="git status" | |
| alias gl="git log" | |
| # ===== | |
| # Other | |
| # ===== | |
| alias py=python | |
| alias pym="python manage.py" | |
| alias aliases="cat ~/.bash_aliases | egrep -e '^alias'" | |
| # prints public ip | |
| alias ip="wget http://ipecho.net/plain -O - -q ; echo" | |
| # prints ephemeral port range | |
| alias portrange="cat /proc/sys/net/ipv4/ip_local_port_range" |
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
| # ========================================== | |
| # Promp Format | |
| # ------------------------------------------ | |
| # Format: hostname working_dir exit_code %|# | |
| # see http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html | |
| # ========================================== | |
| PROMPT='%m %C %? %# ' | |
| # ============================================ | |
| # Keybindings | |
| # -------------------------------------------- | |
| # Start `cat` program and type key combination | |
| # to get the corresponding identifer. | |
| # ============================================ | |
| bindkey "^[[3~" delete-char # FN+Backspace | |
| bindkey "^[[F" end-of-line # FN+Right Arrow | |
| bindkey "^[[H" beginning-of-line # FH+Left Arrow | |
| bindkey "^[^[[D" vi-backward-word # ALT+Left Arrow | |
| bindkey "^[^[[C" vi-forward-word # ALT+Right Arrow | |
| # Allows for extended arithmetics | |
| # see http://zsh.sourceforge.net/Doc/Release/Arithmetic-Evaluation.html#Arithmetic-Evaluation | |
| zmodload zsh/mathfun | |
| # Use vim mode for command prompt | |
| set -o vi | |
| # some more ls aliases | |
| alias ll='ls -alF' | |
| alias la='ls -A' | |
| alias l='ls -CF' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment