Skip to content

Instantly share code, notes, and snippets.

@fredchu
Created December 21, 2016 13:08
Show Gist options
  • Save fredchu/9635489b83f61c41b68208f1a06515ef to your computer and use it in GitHub Desktop.
Save fredchu/9635489b83f61c41b68208f1a06515ef to your computer and use it in GitHub Desktop.
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias p='cd ~/pinkoi/pinkoi'
alias reg='sudo restart gunicorn CONF=fredchu'
alias rer='sudo restart rmq-consumer CONF=fredchu'
alias mmmbuild='mrbuild --skipintl --rootdir=/home/fredchu/www/pinkoi && reg'
alias tmux=tmux-next
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/fredchu/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
source ~/.zplug/init.zsh
# Use the package as a command
# And accept glob patterns (e.g., brace, wildcard, ...)
# zplug "Jxck/dotfiles", as:command, use:"bin/{histuniq,color}"
# Can manage everything e.g., other person's zshrc
# zplug "tcnksm/docker-alias", use:zshrc
# Disable updates using the "frozen" tag
# zplug "k4rthik/git-cal", as:command, frozen:1
# Grab binaries from GitHub Releases
# and rename with the "rename-to:" tag
# zplug "junegunn/fzf-bin", \
# from:gh-r, \
# as:command, \
# rename-to:fzf, \
# use:"*linux*amd64*"
#
# Supports oh-my-zsh plugins and the like
# zplug "plugins/git", from:oh-my-zsh
# Also prezto
# zplug "modules/prompt", from:prezto
# Load if "if" tag returns true
# zplug "lib/clipboard", from:oh-my-zsh, if:"[[ $OSTYPE == *darwin* ]]"
# Run a command after a plugin is installed/updated
# Provided, it requires to set the variable like the following:
# ZPLUG_SUDO_PASSWORD="********"
# zplug "jhawthorn/fzy", \
# as:command, \
# rename-to:fzy, \
# hook-build:"
# {
# make
# sudo make install
# } &>/dev/null
# "
#
# Supports checking out a specific branch/tag/commit
# zplug "b4b4r07/enhancd", at:v1
# zplug "mollifier/anyframe", at:4c23cb60
# Can manage gist file just like other packages
# zplug "b4b4r07/79ee61f7c140c63d2786", \
# from:gist, \
# as:command, \
# use:get_last_pane_path.sh
# Support bitbucket
# zplug "b4b4r07/hello_bitbucket", \
# from:bitbucket, \
# as:command, \
# hook-build:"chmod 755 *.sh", \
# use:"*.sh"
# Group dependencies
# Load "emoji-cli" if "jq" is installed in this example
zplug "stedolan/jq", \
from:gh-r, \
as:command, \
rename-to:jq
zplug "b4b4r07/emoji-cli", \
on:"stedolan/jq"
# Note: To specify the order in which packages should be loaded, use the defer
# tag described in the next section
# Set the priority when loading
# e.g., zsh-syntax-highlighting must be loaded
# after executing compinit command and sourcing other plugins
# (If the defer tag is given 2 or above, run after cominit command)
zplug "zsh-users/zsh-syntax-highlighting", defer:2
# Can manage local plugins
# zplug "~/.zsh", from:local
# Load theme file
zplug "lib/completion", from:oh-my-zsh
zplug "zsh-users/zsh-history-substring-search"
zplug "plugins/git", from:oh-my-zsh
zplug "plugins/zsh_reload", from:oh-my-zsh
zplug "plugins/colorize", from:oh-my-zsh
zplug "lib/theme-and-appearance", from:oh-my-zsh
# zplug "zakaziko99/agnosterzak-ohmyzsh-theme", as:theme
zplug "zakaziko99/agnosterzak-ohmyzsh-theme", use:agnosterzak.zsh-theme, defer:2
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
zplug install
fi
# Then, source plugins and add commands to $PATH
zplug load --verbose
# export ZPLUG_HOME="${DOTFILES_ROOT}/submodule/zplug"
# source "${ZPLUG_HOME}/init.zsh"
# export ZSH="$ZPLUG_HOME/repos/robbyrussell/oh-my-zsh"
# autoload colors && colors
# setopt prompt_subst
# zplug "lib/theme-and-appearance", from:oh-my-zsh
# zplug "plugins/brew", from:oh-my-zsh, if:"[[ $OSTYPE == *darwin* ]]"
# zplug "plugins/brew-cask", from:oh-my-zsh, if:"[[ $OSTYPE == *darwin* ]]"
# zplug "plugins/osx", from:oh-my-zsh, if:"[[ $OSTYPE == *darwin* ]]"
# # zplug "lib/clipboard", from:oh-my-zsh, if:"[[ $OSTYPE == *darwin* ]]"
# zplug "lib/completion", from:oh-my-zsh
# zplug "zsh-users/zsh-history-substring-search"
# zplug "plugins/git", from:oh-my-zsh
# zplug "plugins/zsh_reload", from:oh-my-zsh
# zplug "plugins/colorize", from:oh-my-zsh
# # zplug 'themes/sorin', from:oh-my-zsh, defer:2
# zplug "zakaziko99/agnosterzak-ohmyzsh-theme", use:agnosterzak.zsh-theme, as:theme, defer:2
# zplug 'zsh-users/zsh-autosuggestions', use:zsh-autosuggestions.zsh
# zplug "zsh-users/zsh-syntax-highlighting", defer:2
# zplug "lukechilds/zsh-nvm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment