Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export TERM="screen-256color"
- export LANG=en_US.UTF-8
- export LC_ALL=$LANG
- export ZSH="/home/centos/.oh-my-zsh"
- export ANSIBLE_FORCE_COLOR=true
- export PATH=$PATH:/home/centos/.local/bin/
- export EDITOR='mvim'
- ZSH_THEME="robbyrussell"
- plugins=(git docker fzf zsh-syntax-highlighting zsh-autosuggestions zsh-completions)
- source $ZSH/oh-my-zsh.sh
- # Preferred editor for local and remote sessions
- [[ -n $SSH_CONNECTION ]] && export EDITOR='vim'
- [[ -s "/usr/local/bin/kubectl" ]] && source <(kubectl completion zsh)
- # Git
- alias g='git s'
- alias gap='git ap'
- alias gd='git d'
- alias gds='git ds'
- alias gl='git l'
- alias gl='git l --color --oneline --decorate'
- alias gs='git s'
- alias gaa='git aa'
- alias gc='git c'
- alias gcm='git commit -m'
- alias ff=printf "\e[?1004l"
- dex () {
- docker exec -it $(docker ps --format='{{.ID}}\t{{.Names}}\t{{.Status}}' | fzf | awk '{print $2}') ${1:-bash}
- }
- # Get PID from Port
- # sudo lsof -nP -iTCP:$PORT | grep LISTEN
- port_to_pid() {
- sudo lsof -nP -i:$@ | grep LISTEN
- }
- # Get Port from PID
- alias pid_to_port="sudo lsof -aPi -p"
- # grep env variables
- alias eg="env | grep -i "
- # grep processes
- alias pg="ps -ef| grep -i "
- # Grep who is using a port
- whoseport() { lsof -i ":$1" | grep --color=auto LISTEN }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement