Skip to content

Instantly share code, notes, and snippets.

@thraizz
Last active April 2, 2020 10:29
Show Gist options
  • Save thraizz/191562faf52a55d565b424118c8da867 to your computer and use it in GitHub Desktop.
Save thraizz/191562faf52a55d565b424118c8da867 to your computer and use it in GitHub Desktop.
Oh-my-zshrc
if [ -f "$HOME/.oh-my-zsh" ]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
export ZSH="$HOME/.oh-my-zsh"
export PATH=/usr/bin:/bin:/usr/local/bin:${PATH}
#source $ZSH/.zsh_themes
ZSH_THEME="refined"
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
source $HOME/.config/zsh_functions
source $ZSH/oh-my-zsh.sh
ENABLE_CORRECTION="true"
DISALE_CORRECTION="false"
export HISTCONTROL=ignoredups:ignorespace
export HISTFILESIZE=99999
export HISTSIZE=999
export HISTTIMEFORMAT='%Y-%m-%d %H:%M.%S | '
export HISTIGNORE="ls:exit:history:[bf]g:jobs"
unsetopt share_history
unsetopt inc_append_history
setopt correct_all
# Alias
alias python="python3.7"
alias note="vim $HOME/note.md"
# This logs the current path for opening a new terminal in same path
logpath() { pwd > /tmp/whereami }
precmd_functions+=logpath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment