108 lines
3.7 KiB
Bash
108 lines
3.7 KiB
Bash
|
export TMOUT=0
|
||
|
|
||
|
export GOPATH=$HOME/go
|
||
|
|
||
|
# If you come from bash you might have to change your $PATH.
|
||
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||
|
export PATH=${KREW_ROOT:-$HOME/.krew}/bin:$HOME/.composer/vendor/bin:$HOME/.local/bin:$PATH:$GOROOT/bin:$GOPATH/bin
|
||
|
|
||
|
# Path to your oh-my-zsh installation.
|
||
|
export ZSH=$HOME/.oh-my-zsh
|
||
|
|
||
|
# 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="gianu"
|
||
|
|
||
|
# Uncomment one of the following lines to change the auto-update behavior
|
||
|
# zstyle ':omz:update' mode disabled # disable automatic updates
|
||
|
zstyle ':omz:update' mode auto # update automatically without asking
|
||
|
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
|
||
|
|
||
|
# Uncomment the following line to change how often to auto-update (in days).
|
||
|
zstyle ':omz:update' frequency 7
|
||
|
|
||
|
# Uncomment the following line to enable command auto-correction.
|
||
|
ENABLE_CORRECTION="true"
|
||
|
|
||
|
# Uncomment the following line to display red dots whilst waiting for completion.
|
||
|
# You can also set it to another string to have that shown instead of the default red dots.
|
||
|
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
|
||
|
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
|
||
|
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="yyyy-mm-dd"
|
||
|
|
||
|
# 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 history last-working-dir common-aliases fzf-zsh-plugin)
|
||
|
|
||
|
source $ZSH/oh-my-zsh.sh
|
||
|
|
||
|
# Limit History
|
||
|
# - http://zsh.sourceforge.net/Doc/Release/Parameters.html#index-HISTSIZE
|
||
|
# - http://zsh.sourceforge.net/Doc/Release/Parameters.html#index-SAVEHIST
|
||
|
export HISTSIZE=1000
|
||
|
export HISTFILESIZE=2000
|
||
|
export HISTFILE="$HOME/.zhistory"
|
||
|
|
||
|
if [ "$SSH_USER" != "" ]; then
|
||
|
logger -ip auth.notice -t sshd "Accepted publickey for $SSH_USER"
|
||
|
# overwrite global user zhistory if there are SSH environment variable
|
||
|
export HISTFILE="$HOME/.zhistory_$SSH_USER"
|
||
|
fi
|
||
|
|
||
|
setopt HIST_FIND_NO_DUPS
|
||
|
setopt HIST_IGNORE_ALL_DUPS
|
||
|
|
||
|
setopt inc_append_history
|
||
|
setopt share_history
|
||
|
|
||
|
# Allow wildcards (example apt-get install php7.4*) in zsh
|
||
|
unsetopt nomatch
|
||
|
|
||
|
# User configuration
|
||
|
|
||
|
# export MANPATH="/usr/local/man:$MANPATH"
|
||
|
|
||
|
# You may need to manually set your language environment
|
||
|
export LANG=en_US.UTF-8
|
||
|
export LC_ALL=en_US.UTF-8
|
||
|
|
||
|
# Preferred editor for local and remote sessions
|
||
|
# if [[ -n $SSH_CONNECTION ]]; then
|
||
|
# export EDITOR='vim'
|
||
|
# else
|
||
|
# export EDITOR='mvim'
|
||
|
# fi
|
||
|
|
||
|
# Compilation flags
|
||
|
# export ARCHFLAGS="-arch x86_64"
|
||
|
|
||
|
# ssh
|
||
|
# export SSH_KEY_PATH="~/.ssh/rsa_id"
|
||
|
|
||
|
|
||
|
# 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"
|