setopt histignorealldups sharehistory # Use emacs keybindings even if our EDITOR is set to vi bindkey -e export VISUAL=vim export EDITOR=vim export LANG=en_US.UTF-8 export GPG_TTY=$(tty) # Edit command line autoload -U edit-command-line zle -N edit-command-line bindkey '^x^e' edit-command-line # Keep 1000 lines of history within the shell and save it to ~/.zsh_history: HISTSIZE=1000 SAVEHIST=1000 HISTFILE=~/.zsh_history source $HOME/.path source $HOME/.env [[ -r /usr/share/z/z.sh ]] && source /usr/share/z/z.sh [[ -r /usr/local/etc/profile.d/z.sh ]] && source /usr/local/etc/profile.d/z.sh # System Specific case `uname` in Darwin) # Alias alias ls='ls -G' alias ll='ls -lhG' source ~/.macos ;; Linux) # commands for Linux ;; FreeBSD) # commands for FreeBSD ;; esac # zplug if [ ! -d ~/.zplug ]; then echo 'Installing zplug ... ' git clone https://github.com/zplug/zplug.git ~/.zplug fi source ~/.zplug/init.zsh zplug "plugins/git", from:oh-my-zsh zplug "zsh-users/zsh-completions" zplug "zsh-users/zsh-syntax-highlighting" zplug "dracula/zsh", as:theme if ! zplug check --verbose; then printf "Install? [y/N]: " if read -q; then echo; zplug install fi fi zplug load source $HOME/.aliases source $HOME/.functions [ -f $HOME/.zsh_local ] && source $HOME/.zsh_local [ -f $HOME/.nnnrc ] && source $HOME/.nnnrc [ -f $HOME/.fzfrc ] && source $HOME/.fzfrc