Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • rspencer/awit-zsh-superawesome
1 result
Show changes
# Set oh my zsh theme
ZSH_THEME="powerlevel9k"
# Setup powerlevel9k
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir dir_writable vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator command_execution_time background_jobs history time)
POWERLEVEL9K_MODE=nerdfont-complete
# Shorten directory length
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
# Fix up icons a bit
POWERLEVEL9K_OS_ICON_BACKGROUND="white"
POWERLEVEL9K_OS_ICON_FOREGROUND="blue"
POWERLEVEL9K_DIR_HOME_FOREGROUND="white"
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="white"
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="white"
# Fix icon widths
POWERLEVEL9K_HOME_SUB_ICON="\uE18D "
POWERLEVEL9K_AWS_ICON="\uF270 "
POWERLEVEL9K_TEST_ICON="\uF188 "
POWERLEVEL9K_TODO_ICON="\uF133 "
POWERLEVEL9K_DISK_ICON="\uF0A0 "
POWERLEVEL9K_OK_ICON="\uF00C "
POWERLEVEL9K_SYMFONY_ICON="\uE757 "
POWERLEVEL9K_APPLE_ICON="\uF179 "
POWERLEVEL9K_WINDOWS_ICON="\uF17A "
POWERLEVEL9K_ANDROID_ICON="\uF17B "
POWERLEVEL9K_LINUX_ICON="\uF17C "
POWERLEVEL9K_HOME_ICON="\uF015 "
POWERLEVEL9K_HOME_SUB_ICON="\uF07C "
POWERLEVEL9K_FOLDER_ICON="\uF115 "
POWERLEVEL9K_NETWORK_ICON="\uF1EB "
POWERLEVEL9K_SWAP_ICON="\uF464 "
POWERLEVEL9K_RAM_ICON="\uF0E4 "
POWERLEVEL9K_SERVER_ICON="\uF0AE "
POWERLEVEL9K_VCS_UNTRACKED_ICON="\uF059 "
POWERLEVEL9K_VCS_UNSTAGED_ICON="\uF06A "
POWERLEVEL9K_VCS_STAGED_ICON="\uF055 "
POWERLEVEL9K_SWIFT_ICON="\uE755 "
POWERLEVEL9K_PUBLIC_IP_ICON="\UF0AC "
POWERLEVEL9K_EXECUTION_TIME_ICON="\uF252 "
POWERLEVEL9K_SSH_ICON="\uF489 "
setopt EXTENDED_GLOB
# Useful variables for our ZSH environment
test "x$HOSTNAME" = "x" && export HOSTNAME=$(hostname)
export VISUAL=/usr/bin/vim
export EDITOR=/usr/bin/vim
export GIT_EDITOR=/usr/bin/vim
export SHELL=/bin/zsh
# Path to your oh-my-zsh installation.
ZSH=$HOME/.zsh/oh-my-zsh
# Custom directory
ZSH_CUSTOM=$HOME/.zsh/custom
# Set cache directory
ZSH_CACHE=$HOME/.zsh/cache
# User configuration
source $ZSH/oh-my-zsh.sh
# Useful functions
mcd () { mkdir -p "$1"; cd "$1"; }
odx () { od -t x4 -A x "$@" ; }
odx1 () { od -t x1 -A x "$@" ; }
# Git related handy-handy stuff
make-project () { mcd "$1"; git init; cp /usr/share/common-licenses/$2 COPYING; git add COPYING; git commit -m "This project is under the $2 licence at this time"; }
# Alias definitions.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# Setting -F to the users home dir will ignore the system ssh_config
# We do this because:
# - The system has SendEnv set to send locale environment variables to the server, LANG and LC_ALL
alias ssh="/usr/bin/ssh -F ~/.ssh/config"
# Patch %d in prompt to %~
PS1=$(echo "$PS1" | sed -e 's/%d/%4~/')
# Add highlight color to prompt
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
typeset -gA ZSH_HIGHLIGHT_STYLES
ZSH_HIGHLIGHT_STYLES[cursor]='bold'
ZSH_HIGHLIGHT_STYLES[alias]='fg=green,bold'
ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=green,bold'
ZSH_HIGHLIGHT_STYLES[builtin]='fg=green,bold'
ZSH_HIGHLIGHT_STYLES[function]='fg=green,bold'
ZSH_HIGHLIGHT_STYLES[command]='fg=green,bold'
ZSH_HIGHLIGHT_STYLES[precommand]='fg=green,bold'
ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=green,bold'
# Ignore everything in this directory
*
# Except this file
!.gitignore