Skip to content

Instantly share code, notes, and snippets.

@rickdaalhuizen90
Created July 13, 2020 18:03
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rickdaalhuizen90/2ce9eb662e71024ca12e0635cfb44dab to your computer and use it in GitHub Desktop.
Save rickdaalhuizen90/2ce9eb662e71024ca12e0635cfb44dab to your computer and use it in GitHub Desktop.
Enhance your terminal with zsh and Prezto
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Customize to your needs...
fpath=( ~/.zfunc "${fpath[@]}" )
export ZPLUG_HOME=/usr/local/opt/zplug
source $ZPLUG_HOME/init.zsh
# Plugins
zplug "plugins/git", from:oh-my-zsh
zplug "plugins/osx", from:oh-my-zsh
zplug "zsh-users/zsh-autosuggestions"
zplug "clvv/fasd"
zplug "b4b4r07/enhancd"
zplug "junegunn/fzf"
zplug "Peltoche/lsd"
zplug "g-plane/zsh-yarn-autocompletions"
zplug "romkatv/powerlevel10k", as:theme, depth:1
# Aliases
alias untar='tar -zxvf' # Unpack .tar file
alias wget='wget -c' # Download and resume
alias getpass='openssl rand -base64 20' # Generate password
alias sha='shasum -a 256' # Check shasum
alias ping='ping -c 5' # Limit ping to 5'
alias www='php -S localhost:8000' # Run local webserver
# Custom functions
hello_world () {
echo "Hello world"
}
hello() {
echo "Hello $@, how are you?"
}
hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment