Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # If you come from bash you might have to change your $PATH.
- # Set name of the theme to load --- if set to "random", it will
- # load a random theme each time oh-my-zsh is loaded, in which case,
- # to know which specific one was loaded, run: echo $RANDOM_THEME
- # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
- #ZSH_THEME="gallois"
- ZSH_THEME="bira"
- #ZSH_THEME="powerlevel10k/powerlevel10k"
- #POWERLEVEL9K_MODE="nerdfont-complete"
- # Set list of themes to pick from when loading at random
- # Setting this variable when ZSH_THEME=random will cause zsh to load
- # a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
- # If set to an empty array, this variable will have no effect.
- # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
- # Uncomment the following line to use case-sensitive completion.
- # CASE_SENSITIVE="true"
- # Uncomment the following line to use hyphen-insensitive completion.
- # Case-sensitive completion must be off. _ and - will be interchangeable.
- # HYPHEN_INSENSITIVE="true"
- # Uncomment the following line to disable bi-weekly auto-update checks.
- #DISABLE_AUTO_UPDATE="true"
- # Uncomment the following line to automatically update without prompting.
- DISABLE_UPDATE_PROMPT="true"
- # Uncomment the following line to change how often to auto-update (in days).
- # export UPDATE_ZSH_DAYS=13
- # Uncomment the following line if pasting URLs and other text is messed up.
- # DISABLE_MAGIC_FUNCTIONS=true
- # Uncomment the following line to disable colors in ls.
- # DISABLE_LS_COLORS="true"
- # Uncomment the following line to disable auto-setting terminal title.
- # DISABLE_AUTO_TITLE="true"
- # Uncomment the following line to enable command auto-correction.
- # ENABLE_CORRECTION="true"
- # Uncomment the following line to display red dots whilst waiting for completion.
- # COMPLETION_WAITING_DOTS="true"
- # Uncomment the following line if you want to disable marking untracked files
- # under VCS as dirty. This makes repository status check for large repositories
- # much, much faster.
- # DISABLE_UNTRACKED_FILES_DIRTY="true"
- # Uncomment the following line if you want to change the command execution time
- # stamp shown in the history command output.
- # You can set one of the optional three formats:
- # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
- # or set a custom format using the strftime function format specifications,
- # see 'man strftime' for details.
- # HIST_STAMPS="mm/dd/yyyy"
- ZSH_DISABLE_COMPFIX=true
- # Would you like to use another custom folder than $ZSH/custom?
- # ZSH_CUSTOM=/path/to/new-custom-folder
- # Which plugins would you like to load?
- # Standard plugins can be found in ~/.oh-my-zsh/plugins/*
- # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
- # Example format: plugins=(rails git textmate ruby lighthouse)
- # Add wisely, as too many plugins slow down shell startup.
- plugins=(git docker docker-compose zsh-syntax-highlighting brew kubectl macos helm)
- source $ZSH/oh-my-zsh.sh
- # User configuration
- # export MANPATH="/usr/local/man:$MANPATH"
- # You may need to manually set your language environment
- # export LANG=en_US.UTF-8
- # Preferred editor for local and remote sessions
- # if [[ -n $SSH_CONNECTION ]]; then
- # export EDITOR='mcedit'
- # else
- # export EDITOR='nano'
- # fi
- # Compilation flags
- # export ARCHFLAGS="-arch x86_64"
- # Set personal aliases, overriding those provided by oh-my-zsh libs,
- # plugins, and themes. Aliases can be placed here, though oh-my-zsh
- # users are encouraged to define aliases within the ZSH_CUSTOM folder.
- # For a full list of active aliases, run `alias`.
- #
- # Example aliases
- # alias zshconfig="mate ~/.zshrc"
- # alias ohmyzsh="mate ~/.oh-my-zsh"
- # added by travis gem
- #[ -f /Users/vasyansk/.travis/travis.sh ] && source /Users/vasyansk/.travis/travis.sh
- # myaliases
- # Git
- alias gitbd="git branch | grep -v "master" | xargs git branch -D"
- # Terraform
- alias tfp="terraform plan"
- alias tfa="terraform apply -auto-approve"
- alias tfd="terraform destroy -auto-approve"
- alias tfi="terraform init"
- alias tfo="terraform output"
- # Vagrant
- alias vgu="vagrant up"
- alias vgd="vagrant destroy -f"
- alias vgp="vagrant provision"
- #go
- alias gob="go build"
- #kube
- KUBE_PS1_SYMBOL_ENABLE=false
- KUBE_PS1_NS_ENABLE=false
- source "/opt/homebrew/opt/kube-ps1/share/kube-ps1.sh"
- PS1='$(kube_ps1)'$PS1
- export KUBECONFIG=$(find /Users/vasyansk/Configs/.kube -maxdepth 1 -type f -name '*' | tr "\n" ":")
- #alias kex="export KUBECONFIG=$(find /Users/vasyansk/Configs/.kube -maxdepth 1 -type f -name '*' | tr '\n' ':')"
- source <(kubectl completion zsh)
- alias kube="kubectl"
- alias kaf="kubectl apply -f"
- alias kud="kubectl delete"
- alias kgd="kubectl get deployment"
- alias kgp="kubectl get pods"
- alias kgpa="kubectl get pods --all-namespaces"
- alias kgn="kubectl get nodes"
- alias kgi="kubectl get ingress"
- alias kgs="kubectl get service"
- alias kgj="kubectl get jobs"
- alias kgcj="kubectl get cronjobs"
- alias kgpv="kubectl get persistentvolume"
- alias kls="kubectl logs"
- alias kec="kubectl exec -ti"
- alias kd="kubectl describe"
- alias kgc="kubectl config get-contexts"
- alias kuc="kubectl config use-context"
- # Docker
- #alias docker-start="eval $(docker-machine env default)"
- # Tmux
- #alias tma="tmux attach"
- #alias tmd="tmux deattach"
- #alias tmk="tmux kill-server"
- #alias ssp="echo set synchronize-panes | pbcopy"
- #alias sspof="echo set synchronize-panes off | pbcopy"
- # hstr
- alias hh=hstr # hh to be alias for hstr
- setopt histignorespace # skip cmds w/ leading space from history
- export HSTR_CONFIG=hicolor # get more colors
- # minikube
- #source ~/.minikube-completion
- #system
- #alias mc="mc --nosubshell"
- alias cls="clear"
- #alias ssh="ssh -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null'"
- alias ssh-copy="cat ~/.ssh/id_rsa.pub | tr -d '\n\r' | pbcopy"
- alias netstat="netstat -an -ptcp | grep LISTEN"
- alias ls="ls -la"
- alias pwgen="openssl rand -base64 16 | tr -dc _A-Z-a-z-0-9 | pbcopy && pbpaste"
- alias pwgenfull="LC_ALL=C tr -dc 'A-Za-z0-9!#$%&()*,./:;<=>?@[\]^_{|}~' </dev/urandom | head -c 16 | pbcopy && pbpaste"
- alias apti="echo 'apt update && apt install -y mc htop zip wget curl git net-tools gnupg2 open-iscsi' | tr -d '\n\r' | pbcopy"
- alias getdocker='echo "curl https://get.docker.com -o install.sh && sh install.sh && apt install docker-compose-plugin" | tr -d "\n\r" | pbcopy'
- alias np="nslookup"
- alias getmyip="echo $(curl -s http://ifconfig.io | tr -d '"')"
- alias uh="echo 'unset HISTFILE' | tr -d '\n\r' | pbcopy"
- geturl() {
- ~/Developers/MyProject/66.Shorten-Selfhosted/shoturl $1 | tr -d '\n\r' | pbcopy && pbpaste
- }
- getip() {
- curl -s "https://ifconfig.co/json?ip=$1" | jq -r '.country'
- }
- b64() {
- [ -z $1 ] && echo "null string!" || echo -n $1 | base64 | tr -d '\n\r' | pbcopy && pbpaste
- }
- b64dec() {
- [ -z $1 ] && echo "null string!" || echo -n $1 | base64 --decode | tr -d '\n\r' | pbcopy && pbpaste
- }
- alias bash="/usr/local/bin/bash"
- alias 'docker ps -a'='docker ps -a --format "table {{.ID}}\t{{.Image}}\t{{.CreatedAt}}\t{{.Names}}"'
Add Comment
Please, Sign In to add comment