Skip to content

Instantly share code, notes, and snippets.

@chfle
Created June 13, 2021 18:43
Show Gist options
  • Save chfle/c2c518047901faf458a69b4e9dc4ee4c to your computer and use it in GitHub Desktop.
Save chfle/c2c518047901faf458a69b4e9dc4ee4c to your computer and use it in GitHub Desktop.
# Stats
neofetch
# oh my zsh
export ZSH="/Users/chris/.oh-my-zsh"
# Enable colors and change prompt:
autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
#History setup
HISTFILE=$HOME/.zsh_history
HISTSIZE=100000
SAVEHIST=$HISTSIZ
setopt hist_ignore_all_dups # remove older duplicate entries from history
setopt hist_reduce_blanks # remove superfluous blanks from history items
setopt inc_append_history # save history entries as soon as they are entered
setopt share_history # share history between different instances of the shell
setopt auto_cd # cd by typing directory name if it's not a command
setopt correct_all # autocorrect commands
setopt auto_list # automatically list choices on ambiguous completion
setopt auto_menu # automatically use menu completion
setopt always_to_end # move cursor to end if word had one match
zstyle ':completion:*' menu select # select completions with arrow keys
zstyle ':completion:*' group-name '' # group results by category
zstyle ':completion:::::' completer _expand _complete _ignored _approximate #enable approximate matches for completion
# zsh theme
ZSH_THEME="jonathan"
# plugins
plugins=(
git
zsh-autosuggestions
)
source $ZSH/oh-my-zsh.sh
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
#auto suggestion
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ff00ff,bg=cyan,bold,underline"
# stuff
ZSH_DISABLE_COMPFIX="true"
export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment