Skip to content

Instantly share code, notes, and snippets.

@Lucky-Loek
Last active August 25, 2021 23:09
Show Gist options
  • Save Lucky-Loek/edc3e15d184441e8e5122a7c845aa5ee to your computer and use it in GitHub Desktop.
Save Lucky-Loek/edc3e15d184441e8e5122a7c845aa5ee to your computer and use it in GitHub Desktop.
Basic .zshrc for GNU/Linux with Syntax Highlighting and TheFuck
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/loek/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="amuse"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(sudo)
source $ZSH/oh-my-zsh.sh
# User configuration
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
## Unalias everything first
unalias -m '*'
## Now my aliases!
alias termconfig="vim ~/.zshrc"
alias termreload="source ~/.zshrc"
## Credits to Taylor Otwell
alias nope="git reset --hard;git clean -df;"
## Credits to Jeffrey Way
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
## Credits to Tjeerd Bijlsma: "Gulp.open.stream, dit is mijn software"
alias glup="gulp"
## TheFuck!
eval "$(thefuck --alias)"
## For when I'm with clients and I want to be cool but not offensive
alias oops="fuck"
# Zsh syntax highlighting
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment