Skip to content

Instantly share code, notes, and snippets.

@fliiiix
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fliiiix/920db6c245be186835d4 to your computer and use it in GitHub Desktop.
Save fliiiix/920db6c245be186835d4 to your computer and use it in GitHub Desktop.
# completion
autoload -U compinit
compinit
## Command history configuration
HISTFILE=$HOME/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt append_history
setopt extended_history
setopt hist_expire_dups_first
setopt hist_ignore_dups # ignore duplication command history list
setopt hist_ignore_space
setopt hist_verify
setopt inc_append_history
setopt share_history # share command history data
# prompt
autoload -U promptinit
promptinit
PROMPT='[%n@%m:%d]$ '
#functions
sshcreate() {
ssh-keygen -b 4096 -f $1 -C hi@l33t.name && echo "your public key:" && cat $1.pub
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment