Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My Terminal Configuration (oh-my-zsh+iTerm2)
# Path to your oh-my-zsh installation.
export ZSH=/Users/SumonMSelim/.oh-my-zsh
# Set name of the theme to load.
ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_MODE="awesome-fontconfig"
# User configuration
export TERM="xterm-256color"
export SHELL="/bin/zsh"
export EDITOR="nano"
export LANG=en_US.UTF-8
export DEFAULT_USER="SumonMSelim"
export ARCHFLAGS="-arch x86_64"
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
# Path configuration
export PATH=/usr/local/sbin:$PATH
export PATH=$PATH:$HOME/.composer/vendor/bin
# powerlevel9k customizations
prompt_zsh_show_status () {
state=`osascript -e 'tell application "Spotify" to player state as string'`;
if [ $state = "playing" ]; then
artist=`osascript -e 'tell application "Spotify" to artist of current track as string'`;
track=`osascript -e 'tell application "Spotify" to name of current track as string'`;
echo -n "$artist - $track";
fi
}
POWERLEVEL9K_SHORTEN_DIR_LENGTH=4
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon context dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time battery ram time zsh_show_status)
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 node git osx brew composer common-aliases copyfile docker web-search yarn zsh-syntax-highlighting)
test -f $ZSH/oh-my-zsh.sh && source $ZSH/oh-my-zsh.sh
test -e $HOME/.iterm2_shell_integration.zsh && source $HOME/.iterm2_shell_integration.zsh
# custom aliases
alias python='python3'
alias zshrc='nano ~/.zshrc'
alias nginxr='brew services restart nginx'
alias idehelper='php artisan clear-compiled && php artisan ide-helper:generate && php artisan ide-helper:meta'
alias idemodel='php artisan clear-compiled && php artisan ide-helper:models'
alias rmds="find . -name '*.DS_Store' -type f -delete"
archey -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment