Skip to content

Commit

Permalink
Optimized startup time for VIM, and ZSH.
Browse files Browse the repository at this point in the history
- removed unnecessary functions/scripts from ZSH
- updated Airline theme to match current theme in Vim
- updated prompt and optimized it
- updated tmux appearance after recent changes
- prompt now displays a red line if error occurs on previous command
- removed GEM_HOME entry, and other speed optimizations in ZSH
- updated tmux configuration to allow more windows to appear on status bar.
- also, added a sub to work with git and PivotalTracker easily.
  • Loading branch information
nikhgupta committed Aug 16, 2015
1 parent 96d8773 commit b5bad66
Show file tree
Hide file tree
Showing 11 changed files with 618 additions and 695 deletions.
8 changes: 4 additions & 4 deletions gemrc
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
:verbose: true
gem: --no-rdoc --no-ri
:update_sources: true
:benchmark: false
:backtrace: false
:bulk_threshold: 1000
:ssl_verify_mode: 0
:sources:
- https://rubygems.org
- http://gems.rubyforge.org
- http://gems.github.com
- http://gemcutter.org
:benchmark: false
:backtrace: false
:bulk_threshold: 1000
:ssl_verify_mode: 0
5 changes: 3 additions & 2 deletions git-template/hooks/ctags
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/sh
# This file is copied to the git repo upon initialization.
set -e
PATH="/usr/local/bin:$PATH"
dir="`git rev-parse --git-dir`"
trap "rm -f \"$dir/$$.tags\"" EXIT
git ls-files | ctags --tag-relative -L - -f"$dir/$$.tags" \
--languages=-javascript,sql --exclude=.git --exclude=log --exclude=tmp
# git ls-files | ctags --tag-relative -L - -f"$dir/$$.tags" --languages=-javascript,sql --exclude=.git --exclude=log --exclude=tmp
ripper-tags --tag-relative=yes --extra=q -f "$dir/$$.tags" $(git ls-files | grep --color=never '.*\.rb$')
mv "$dir/$$.tags" "$dir/tags"
1 change: 0 additions & 1 deletion scripts/dotcastle/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@ warn() { echo "${undylw}Warning${txtrst}: $@"; }
error() { echo "${undred}Error${txtrst}: $@"; exit 1; }
action() { echo "${txtpur}ACTION${txtrst}: $@"; }
highlight(){ echo -ne "\n👉 ${txtblu}$@${txtrst}\n"; }
# highlight(){ echo -ne "\n${txtblu} ----- $@ ----- ${txtrst}\n\n"; }
2 changes: 1 addition & 1 deletion scripts/jarvis
Submodule jarvis updated from 6c4f93 to fb9fdf
17 changes: 9 additions & 8 deletions tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,15 @@
# bind-key p paste-buffer
# }}}
# Appearance: everything has a right to look awesome {{{
# set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]⮀'

# messages should be displayed in a distinctive bg color to notice them easily
# bg: blue, fg: white
set -g message-command-style fg=colour0,bg=colour4
set -g message-style fg=colour0,bg=colour2
# set -g message-attr bold

# pane borders should distinguish between active and inactive panes
set -g pane-border-style fg=colour20
set -g pane-active-border-style fg=colour196
set -g pane-border-style fg=colour101
set -g pane-active-border-style fg=colour123

# have a beautiful statusline that mimics vim airline
set -g status on
Expand All @@ -160,10 +158,13 @@
set -gw window-status-separator " "

# show a beautiful powerline and display a notification when `prefix` is typed
set -g status-left "#[bg=colour#{?client_prefix,1,3},fg=colour0] tmux  #S #[bg=colour241,fg=colour#{?client_prefix,1,3},none]"
set -g status-right "#[fg=colour#{?client_prefix,1,3},bg=colour241,none]#[fg=colour0,bg=colour#{?client_prefix,1,3}] %Y-%m-%d  %H:%M #[fg=colour19,bg=colour#{?client_prefix,1,3},none]#[bg=colour19,fg=colour20] #($DOTCASTLE/tmux/status_line battery) #[bg=colour19,fg=colour#{?client_prefix,1,3},none]#[bg=colour#{?client_prefix,1,3},fg=colour0] #h  UnknownStatus "
set -gw window-status-format "#[bg=colour241]#[fg=colour21]#I #[fg=colour19] #[fg=colour20]#W "
set -gw window-status-current-format "#[fg=colour241,bg=colour21,none]#[fg=colour18,bg=colour21] #I  #W #[fg=colour21,bg=colour241,none] "
set -g status-left "#[bg=colour#{?client_prefix,1,3},fg=colour0] #S #[bg=colour241,fg=colour#{?client_prefix,1,3},none]"
set -g status-right "#[fg=colour#{?client_prefix,1,3},bg=colour241,none]#[fg=colour0,bg=colour#{?client_prefix,1,3}] %d/%m/%Y %H:%M #[fg=colour241,bg=colour#{?client_prefix,1,3}]#[bg=colour241,fg=colour3] #($DOTCASTLE/tmux/status_line battery) "
# set -g status-left "#[bg=colour#{?client_prefix,1,3},fg=colour0] tmux  #S #[bg=colour241,fg=colour#{?client_prefix,1,3},none]"
# set -g status-right "#[fg=colour#{?client_prefix,1,3},bg=colour241,none]#[fg=colour0,bg=colour#{?client_prefix,1,3}] %Y-%m-%d  %H:%M #[fg=colour19,bg=colour#{?client_prefix,1,3},none]#[bg=colour19,fg=colour20] #($DOTCASTLE/tmux/status_line battery) #[bg=colour19,fg=colour#{?client_prefix,1,3},none]#[bg=colour#{?client_prefix,1,3},fg=colour0] #h  #(curl http://ipecho.net/plain || echo 'OFFLINE') "
# set -gw window-status-format "#[bg=colour241]#[fg=colour21]#I#[fg=colour19]#[fg=colour20]#W"
set -gw window-status-format "#[bg=colour241]#[fg=colour245]#I#[fg=colour241]#[fg=colour252]#W"
set -gw window-status-current-format "#[fg=colour241,bg=colour255,none]#[fg=colour12,bg=colour255] #I  #W #[fg=colour255,bg=colour241,none]"
# }}}
# Tweaks: various hacks to make things stick {{{
# patch for OS X pbpaste and pbcopy under tmux.
Expand Down
Loading

0 comments on commit b5bad66

Please sign in to comment.