Last active
May 20, 2021 15:59
-
-
Save lispstudent/0606b9c25cf1487e55987fa26251c0c1 to your computer and use it in GitHub Desktop.
zshrc per servers
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
# set -g mouse on | |
set-option -g history-limit 100000 | |
# plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
#set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-copycat' | |
set -g @plugin 'tmux-plugins/tmux-prefix-highlight' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' |
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
# Editors | |
export EDITOR='nano' | |
export VISUAL='nano' | |
export PAGER='less' | |
# Language | |
if [[ -z "$LANG" ]]; then | |
export LANG='en_US.UTF-8' | |
fi | |
# Less | |
# Mouse-wheel scrolling has been disabled by -X (disable screen clearing). | |
# Remove -X and -F (exit if the content fits on one screen) to enable it. | |
export LESS='-F -g -i -M -R -S -w -X -z-4' | |
# Completion | |
zstyle ':completion:*' completer _expand _complete _ignored _approximate | |
zstyle ':completion:*' max-errors 3 | |
zstyle :compinstall filename '$HOME/.zshrc' | |
autoload -Uz compinit | |
compinit | |
autoload zmv | |
autoload zcalc | |
# Sets history options and defines history aliases. | |
setopt BANG_HIST # Treat the '!' character specially during expansion. | |
setopt EXTENDED_HISTORY # Write the history file in the ':start:elapsed;command' format. | |
setopt SHARE_HISTORY # Share history between all sessions. | |
setopt HIST_EXPIRE_DUPS_FIRST # Expire a duplicate event first when trimming history. | |
setopt HIST_IGNORE_DUPS # Do not record an event that was just recorded again. | |
setopt HIST_IGNORE_ALL_DUPS # Delete an old recorded event if a new event is a duplicate. | |
setopt HIST_FIND_NO_DUPS # Do not display a previously found event. | |
setopt HIST_IGNORE_SPACE # Do not record an event starting with a space. | |
setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to the history file. | |
setopt HIST_VERIFY # Do not execute immediately upon history expansion. | |
setopt HIST_BEEP # Beep when accessing non-existent history. | |
HISTFILE=~/.zhistory | |
HISTSIZE=1000000 | |
SAVEHIST=1000000000 | |
setopt autocd beep extendedglob nomatch notify | |
bindkey -e | |
# Alias | |
# Record session | |
alias ts="script -a $HOME/$(date '+%y%m%d-%H%M%S')_typescript.txt" | |
# Lists the ten most used commands | |
alias history-stat="history 0 | awk '{print \$2}' | sort | uniq -c | sort -n -r | head" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment