This commit is contained in:
Gregory Eremin
2013-05-21 10:57:41 +04:00
parent a6d50c675c
commit 29bc4bc769
16 changed files with 3215 additions and 470 deletions
+1
View File
@@ -10,6 +10,7 @@ export CLICOLOR=true
fpath=($ZSH/zsh/functions $fpath)
autoload -U $ZSH/zsh/functions/*(:t)
autoload -U $ZSH/zsh/completion/*(:t)
HISTFILE=~/.zsh_history
HISTSIZE=10000
+1
View File
@@ -1,4 +1,5 @@
export PATH=~/.dotfiles/bin:$PATH
export PATH=/usr/local/share/npm/bin:$PATH
export PATH=/usr/local/share/python:$PATH
export PATH=~/.misc/git-achievements:$PATH
export PATH=/Applications/Sublime\ Text\ 3.app/Contents/SharedSupport/bin:$PATH
+8 -7
View File
@@ -15,9 +15,9 @@ git_dirty() {
else
if [[ "$st" =~ ^nothing ]]
then
echo " %F{002}($(git_prompt_info))%f"
echo "%F{002}($(git_prompt_info))%f"
else
echo " %F{001}($(git_prompt_info))%f"
echo "%F{001}($(git_prompt_info))%f"
fi
fi
}
@@ -42,7 +42,7 @@ need_push () {
then
echo ""
else
echo " %F{005}↑↑%f"
echo "%F{006}✖%f "
fi
}
@@ -60,15 +60,16 @@ current_time(){
}
directory_name(){
echo "%F{003%}%1/%\%f"
echo "%F{012%}%1/%\%f"
}
export PROMPT=$'\n$(directory_name)$(git_dirty)$(need_push)$(git_need_commit) '
export PROMPT=$'\n$(directory_name)$(git_need_commit) '
set_prompt () {
export RPROMPT="$(rb_prompt)"
export RPROMPT="$(need_push)$(git_dirty)"
}
precmd() {
title "zsh" "%m" "%55<...<%~"
# No longer setting title. Because tmux
# title "zsh" "%m" "%55<...<%~"
set_prompt
}
+1
View File
@@ -0,0 +1 @@
[[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] && source $HOME/.tmuxinator/scripts/tmuxinator
+2
View File
@@ -1,3 +1,5 @@
export EDITOR="subl -n -w"
# shortcut to this dotfiles path is $ZSH
export ZSH=$HOME/.dotfiles