Enhance your terminal with zsh and Prezto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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