| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,15 @@ |
| 0 |
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[white]%}["
|
|
| 1 |
+ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
|
|
| 2 |
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}●%{$reset_color%}"
|
|
| 3 |
+ZSH_THEME_GIT_PROMPT_CLEAN="" |
|
| 4 |
+ |
|
| 5 |
+#Customized git status, oh-my-zsh currently does not allow render dirty status before branch |
|
| 6 |
+git_custom_status() {
|
|
| 7 |
+ local cb=$(current_branch) |
|
| 8 |
+ if [ -n "$cb" ]; then |
|
| 9 |
+ echo " $ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX" |
|
| 10 |
+ fi |
|
| 11 |
+} |
|
| 12 |
+ |
|
| 13 |
+ |
|
| 14 |
+PROMPT='%~$(git_custom_status) ❯ %b' |
| ... | ... |
@@ -5,7 +5,7 @@ export ZSH=$HOME/.oh-my-zsh |
| 5 | 5 |
# Look in ~/.oh-my-zsh/themes/ |
| 6 | 6 |
# Optionally, if you set this to "random", it'll load a random theme each |
| 7 | 7 |
# time that oh-my-zsh is loaded. |
| 8 |
-export ZSH_THEME="gentoo" |
|
| 8 |
+export ZSH_THEME="cinan" |
|
| 9 | 9 |
|
| 10 | 10 |
# Set to this to use case-sensitive completion |
| 11 | 11 |
# export CASE_SENSITIVE="true" |
| ... | ... |
@@ -21,7 +21,7 @@ export DISABLE_AUTO_UPDATE="true" |
| 21 | 21 |
|
| 22 | 22 |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) |
| 23 | 23 |
# Example format: plugins=(rails git textmate ruby lighthouse) |
| 24 |
-plugins=(git github git-flow cap gem lol zsh-syntax-highlighting bundler heroku vim) |
|
| 24 |
+plugins=(git git-flow cap gem zsh-syntax-highlighting) |
|
| 25 | 25 |
|
| 26 | 26 |
source /etc/profile |
| 27 | 27 |
source $ZSH/oh-my-zsh.sh |
| ... | ... |
@@ -64,22 +64,39 @@ bindkey "^[OC" forward-word |
| 64 | 64 |
|
| 65 | 65 |
alias noh="unsetopt sharehistory" |
| 66 | 66 |
|
| 67 |
-unsetopt auto_name_dirs # rvm_rvmrc_cwd fix |
|
| 68 |
-[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. |
|
| 69 |
-unset RUBYOPT |
|
| 70 |
-cd . # to rvm reload |
|
| 67 |
+#unsetopt auto_name_dirs # rvm_rvmrc_cwd fix |
|
| 68 |
+#[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. |
|
| 69 |
+#unset RUBYOPT |
|
| 70 |
+#cd . # to rvm reload |
|
| 71 | 71 |
|
| 72 |
-if [[ -x `which hitch` ]]; then |
|
| 73 |
- hitch() {
|
|
| 74 |
- command hitch "$@" |
|
| 75 |
- if [[ -s "$HOME/.hitch_export_authors" ]] ; then source "$HOME/.hitch_export_authors" ; fi |
|
| 76 |
- } |
|
| 77 |
- alias unhitch='hitch -u' |
|
| 78 |
- hitch |
|
| 79 |
-fi |
|
| 80 | 72 |
|
| 81 | 73 |
alias nogit="disable_git_prompt_info; compdef -d git" |
| 82 |
-alias nog="nogit" |
|
| 83 |
-alias npm_bin="PATH=`pwd`/node_modules/.bin:$PATH; rehash" |
|
| 74 |
+alias pacman="pacman-color" |
|
| 75 |
+alias cal="cal -m" |
|
| 76 |
+alias du="du -hs" |
|
| 77 |
+alias df="df -h" |
|
| 78 |
+alias grep="grep --colour -i" |
|
| 79 |
+alias vi="vim -u ~/.vimrc" |
|
| 80 |
+alias xterm="LANG=sk_SK.utf8 xterm" |
|
| 81 |
+alias rtorrent="rtorrent -o http_capath=/etc/ssl/certs" |
|
| 82 |
+alias m="cd /media/data/" |
|
| 83 |
+alias toclip="xclip -selection clipboard" |
|
| 84 |
+alias fromclip="xclip -selection clipboard -o" |
|
| 85 |
+alias cpuspeed="watch grep \\\"cpu MHz\\\" /proc/cpuinfo" |
|
| 86 |
+alias rm="rm -v" |
|
| 87 |
+alias mv="mv -v" |
|
| 88 |
+alias cp="cp -v" |
|
| 89 |
+alias y="yaourt -Syu --aur" |
|
| 84 | 90 |
|
| 85 |
-PATH=~/bin/:~/node_modules/.bin/:$PATH |
|
| 91 |
+export EDITOR="vim" |
|
| 92 |
+export TERM=xterm-256color |
|
| 93 |
+export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd' |
|
| 94 |
+#--laf javax.swing.plaf.metal.MetalLookAndFeel |
|
| 95 |
+#--laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel |
|
| 96 |
+ |
|
| 97 |
+export HISTFILE=~/.zsh_history |
|
| 98 |
+export HISTSIZE=10000 |
|
| 99 |
+export SAVEHIST=10000 |
|
| 100 |
+ |
|
| 101 |
+export PATH=$PATH:/home/cinan/.gem/ruby/1.9.1/bin |
|
| 102 |
+export GEM_HOME=$GEM_HOME:/home/cinan/.gem/ruby/1.9.1 |
|
| 86 | 103 |
\ No newline at end of file |