Skip to content

Instantly share code, notes, and snippets.

@Tset-Noitamotua
Last active January 15, 2017 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tset-Noitamotua/8354a0925f0f0d602b931909cff25db5 to your computer and use it in GitHub Desktop.
Save Tset-Noitamotua/8354a0925f0f0d602b931909cff25db5 to your computer and use it in GitHub Desktop.
my .dotfiles
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/MyMac/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="bullet-train"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git virtualenvwrapper)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# BULLET-TRAIN THEME SETTINGS
# NOTE: need one of the cool Nerd Fonts to display all icons correctly
# https://github.com/ryanoasis/nerd-fonts
# I use Hack.zip from http://nerdfonts.com/ which has the 'Knack Nerd Font'
# NOTE: seems that it can be installed with brew (but I have not tested this)
# check: https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Hack/font-info.md#desktop-installation
BULLETTRAIN_PROMPT_ORDER=(
time
status
virtualenv
context
dir
git
cmd_exec_time
custom
)
# timer I
#     
#     
#  
prompt_custom() {
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
if [[ -n $(git status --porcelain --ignore-submodules) ]]; then
# this just avoids that ,, icons are to close to the border
prompt_segment 197 000 "%F{255}%F{025}"
fi
fi
prompt_segment 230 236 "%F{236} %F{223} "
}
BULLETTRAIN_VIRTUALENV_PREFIX=""
BULLETTRAIN_GIT_PREFIX="%F{230}  %F{230}"
BULLETTRAIN_GIT_SUFFIX="%F{196}"
BULLETTRAIN_PROMPT_CHAR=
# COLOR INDEX: https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg
#BULLETTRAIN_TIME_BG=025 # blue
#BULLETTRAIN_TIME_FG=032 # neongruen 118
BULLETTRAIN_TIME_BG=236 # grey dark
BULLETTRAIN_TIME_FG=230 # creme
BULLETTRAIN_VIRTUALENV_BG=039 # python blue
BULLETTRAIN_VIRTUALENV_FG=227 # python yellow
BULLETTRAIN_DIR_BG=238 # blue
BULLETTRAIN_DIR_FG=039
BULLETTRAIN_DIR_CONTEXT_SHOW=false # show username & hostname
#
BULLETTRAIN_GIT_BG=236 # dark grey
BULLETTRAIN_GIT_FG=230 # creme
BULLETTRAIN_GIT_CLEAN="%F{230}  %F{000}"
BULLETTRAIN_GIT_DIRTY="%F{230}  %F{000}"
BULLETTRAIN_GIT_MODIFIED="%F{230} %F{000}"
BULLETTRAIN_GIT_ADDED="%F{230} %F{000}"
BULLETTRAIN_GIT_DELETED="%F{230} %F{000}"
# BULLETTRAIN_GIT_RENAMED=
BULLETTRAIN_GIT_UNTRACKED="%F{230} %\ %F{000}"
BULLETTRAIN_GIT_AHEAD="%F{230} %\ %\ "
BULLETTRAIN_GIT_BEHIND="%F{039} %\ %\ "
BULLETTRAIN_GIT_DIVERGED="%F{039} %\ %\ "
BULLETTRAIN_GIT_UNMERGED="%F{039} %\ %\ "
BULLETTRAIN_GIT_COLORIZE_DIRTY=true
BULLETTRAIN_GIT_COLORIZE_DIRTY_BG_COLOR=197 # dark grey
BULLETTRAIN_GIT_COLORIZE_DIRTY_FG_COLOR=230 # black
# COOL ICONS COLLECTION
#        
#               
#           
# ➞ ❬...❭ ❲ ❨  ❩ ❳ ❬❭ ❰❱ ⦗ ⦘ ❮❯
#
# 0. Python:   
# 0. Github / Bb / ?    /   /    
# 01. Repo clean:           
# 02. Repo Dirty:        
# 03. Files added:       
# 04. Files deleted:         
# 05. Files modified:         
# 06. Files untracked:       
# 07. Ahead remote:         
# 08. Behind remote:         
# 09. Diverged f remote .
# 10. Unmerged .
#
#
#BULLETTRAIN_GIT_CLEAN="%F{green} ✔%F{black}"
#BULLETTRAIN_GIT_DIRTY="%F{red} ⚠️ %F{black}"
#BULLETTRAIN_GIT_MODIFIED="%F{039} ❖%F{black}"
#BULLETTRAIN_GIT_ADDED="%F{green} +%F{black}"
#BULLETTRAIN_GIT_DELETED="%F{196} -%F{black}"
#BULLETTRAIN_GIT_UNTRACKED="%F{246} ⚑%F{black}"
#BULLETTRAIN_GIT_COLORIZE_DIRTY=true
#BULLETTRAIN_GIT_COLORIZE_DIRTY_BG_COLOR=253 # grau hell
#BULLETTRAIN_GIT_COLORIZE_DIRTY_FG_COLOR=196 # rot
#BULLETTRAIN_GIT_FG=000 # black
#BULLETTRAIN_GIT_BG=253 # hellgrau
########### BACKUP ###########################################
# VENV
#BULLETTRAIN_VIRTUALENV_BG=118 # gruen neon (118 auch gut)
#BULLETTRAIN_VIRTUALENV_FG=236 # grau dunkel
# TIMESTAMP
#BULLETTRAIN_TIME_FG=113 # gruen blass
#BULLETTRAIN_TIME_BG=236 # dunkelgrau 236
# CWD
#BULLETTRAIN_DIR_FG=118 # gruen neon
#BULLETTRAIN_DIR_BG=236 # grau dunkel
#BULLETTRAIN_DIR_CONTEXT_SHOW=true # show username & hostname
# GIT
#
# ⚠️ Warnschild UTF-8: E2 9A A0 EF B8 8F
# 🕶 Dunkle Sonnenbrille UTF-8: F0 9F 95 B6
# ❖ 𝌡 (modified files)
# ⚑ (untracked files)
# - (deleted files)
# + (added files)
########### BACKUP ###########################################
# `vim` opens MacVim as VIM editor
alias vim="/Applications/MacVim.app/Contents/MacOS/Vim"
# `vi` opens pyvim as VIM editor
alias vi=nvim
export EDITOR=nvim
# Changes default ls to be cool:
# -G --> colorizes output
# -F --> adds '/' to directory names, '*' to execuables and '@' to symlinks
# -h --> makes file sizes human readable
alias ls='ls -GFh'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment