Skip to content

Instantly share code, notes, and snippets.

@yuvalif
Created November 29, 2021 11:13
Show Gist options
  • Select an option

  • Save yuvalif/0de2f4a3eb8975f0230b01fdc4c10608 to your computer and use it in GitHub Desktop.

Select an option

Save yuvalif/0de2f4a3eb8975f0230b01fdc4c10608 to your computer and use it in GitHub Desktop.
# my zshrc
# set path
export PATH=$HOME/bin:/usr/local/bin:$HOME/go/bin:$PATH
# for other themes, see: https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="simple"
# enable command auto-correction.
ENABLE_CORRECTION="true"
# faster git status
DISABLE_UNTRACKED_FILES_DIRTY="true"
# betetr timestamp
HIST_STAMPS="dd-mm-yyyy"
# plugins
plugins=(git git kubectl aws pip minikube)
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
source $ZSH/oh-my-zsh.sh
# use vim :-)
export EDITOR='vim'
# needed for golang
export GOPROXY=https://proxy.golang.org
# use up/down arrows for local history
up-line-or-local-history() {
zle set-local-history 1
zle up-line-or-history
zle set-local-history 0
}
zle -N up-line-or-local-history
down-line-or-local-history() {
zle set-local-history 1
zle down-line-or-history
zle set-local-history 0
}
zle -N down-line-or-local-history
bindkey '^[OA' up-line-or-local-history # Cursor up
bindkey '^[OB' down-line-or-local-history # Cursor down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment