Created
April 20, 2016 07:56
-
-
Save SumonMSelim/c181a46716ab85c7dfbaae397e839d85 to your computer and use it in GitHub Desktop.
My ZSH Configuration on MAC OSX with Powerline
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
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/sumonselim/.oh-my-zsh | |
# Set name of the theme to load. | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
# powerlevel9k customizations | |
POWERLEVEL9K_MODE='awesome-patched' | |
POWERLEVEL9K_SHORTEN_DIR_LENGTH=3 | |
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle" | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(status os_icon context dir vcs) | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(load battery time) | |
POWERLEVEL9K_SHOW_CHANGESET=true | |
POWERLEVEL9K_CHANGESET_HASH_LENGTH=6 | |
# use case-sensitive completion. | |
CASE_SENSITIVE="true" | |
# display red dots whilst waiting for completion. | |
COMPLETION_WAITING_DOTS="true" | |
# command execution time stamp shown in the history command output. | |
HIST_STAMPS="dd.mm.yyyy" | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
plugins=(zsh-autosuggestions) | |
# User configuration | |
export LANG=en_US.UTF-8 | |
export DEFAULT_USER="$USER" | |
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
export EDITOR='subl -w' | |
source $ZSH/oh-my-zsh.sh | |
# Preferred editor for local and remote sessions | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='nano' | |
else | |
export EDITOR='subl -w' | |
fi | |
# aliases | |
alias zshconfig="subl ~/.zshrc" | |
alias showFiles="defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app" | |
alias hideFiles="defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app" | |
alias ohmyzsh="subl ~/.oh-my-zsh" | |
archey -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment