Skip to content

Instantly share code, notes, and snippets.

@bsrz
Last active May 7, 2023 01:27
Show Gist options
  • Select an option

  • Save bsrz/c7e71adc1ef6648bfe8c9da17e24aaa3 to your computer and use it in GitHub Desktop.

Select an option

Save bsrz/c7e71adc1ef6648bfe8c9da17e24aaa3 to your computer and use it in GitHub Desktop.
Publish Description
$ cd ~
$ git init
# avoiding conflicts with the main branch of the existing repo:
$ git checkout -b temp && git branch -D main
$ git remote add origin git@<git-server>:<username>/<home-folder-repo>
$ git fetch --all
$ git checkout main
$ git branch -D temp # removing the temporary branch
$ cd ~/.oh-my-zsh/themes/
$ git clone [email protected]:romkatv/powerlevel10k.git
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Oh My ZSH!
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export ZSH=/Users/`whoami`/.oh-my-zsh
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Theme
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ZSH_THEME="powerlevel10k/powerlevel10k"
POWERLEVEL9K_ASDF_PYTHON_BACKGROUND="green"
POWERLEVEL9K_ASDF_PYTHON_ICON=""
POWERLEVEL9K_ASDF_PYTHON_PROMPT_ALWAYS_SHOW=true
POWERLEVEL9K_ASDF_RUBY_BACKGROUND="red"
POWERLEVEL9K_ASDF_RUBY_FOREGROUND="white"
POWERLEVEL9K_ASDF_RUBY_ICON=""
POWERLEVEL9K_ASDF_RUBY_PROMPT_ALWAYS_SHOW=true
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="white"
POWERLEVEL9K_DIR_HOME_FOREGROUND="white"
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="white"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon dir vcs)
POWERLEVEL9K_MODE='awesome-fontconfig'
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=''
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%K{white}%F{black} \UE12E `date +%T` %f%k%F{white}%f "
POWERLEVEL9K_OS_ICON_BACKGROUND="white"
POWERLEVEL9K_OS_ICON_FOREGROUND="blue"
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status asdf time)
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
POWERLEVEL9K_STATUS_OK_IN_NON_VERBOSE=true
POWERLEVEL9K_STATUS_VERBOSE=false
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Plugins
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
plugins=(bundler common-aliases gem git gradle sudo vscode)
source $ZSH/oh-my-zsh.sh
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# homebrew config
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eval "$(/opt/homebrew/bin/brew shellenv)"
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# asdf config
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. /opt/homebrew/opt/asdf/libexec/asdf.sh
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# User Aliases
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alias c="code ."
alias ded="rm -rf ~/Library/Developer/Xcode/DerivedData/"
alias dev="cd ~/Developer/"
alias f="fork ."
alias fl="bundle exec fastlane"
alias ls="ls -FGkl"
alias o="open ."
alias studio="/Applications/Android\ Studio.app/Contents/MacOS/studio"
alias x="xed ."
alias pr="gh pr view --web"
alias repo="gh repo view --web"
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Misc
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function wtc() { curl whatthecommit.com/index.txt; } # the best way to create commit messages 😎
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment