1
0
Fork 0

I no longer need sublime text and zsh configs

This commit is contained in:
Gregory Eremin 2013-06-23 16:04:42 +07:00
parent f51b218cd7
commit fdecdd2602
23 changed files with 0 additions and 465 deletions

View File

@ -1,8 +0,0 @@
export RUBYOPT="-Ku"
export RUBY_HEAP_MIN_SLOTS=800000
export RUBY_HEAP_FREE_MIN=100000
export RUBY_FREE_MIN=200000
export RUBY_HEAP_SLOTS_INCREMENT=300000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_GC_MALLOC_LIMIT=79000000

View File

@ -1 +0,0 @@
eval "$(rbenv init -)"

View File

@ -1,5 +0,0 @@
# if $(brew &>/dev/null)
# then
# brew install rbenv
# brew install ruby-build
# fi

View File

@ -1,39 +0,0 @@
{
// Themes, Colors and Fonts
"theme": "Soda Dark.sublime-theme",
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"font_face": "Source Code Pro",
"font_size": 12.0,
"font_options": ["subpixel_antialias", "no_bold", "no_italic"],
// Behavior
"drag_text": false,
"highlight_modified_tabs": true,
"close_windows_when_empty": false,
"tree_animation_enabled": false,
// Text & Code
"fallback_encoding": "Cyrillic (Windows 1251)",
"default_line_ending": "unix",
"translate_tabs_to_spaces": true,
"ensure_newline_at_eof_on_save": true,
"trim_trailing_white_space_on_save": true,
"tab_size": 2,
// Editor
"highlight_line": true,
"rulers": [120],
"line_padding_bottom": 1,
"line_padding_top": 3,
"gutter": true,
"line_numbers": true,
"fold_buttons": false,
"draw_minimap_border": false,
"highlight_modified_tabs": true,
"close_windows_when_empty": false,
// Bullshit
"ignored_packages": ["Vintage"],
"file_exclude_patterns": [".DS_Store", "*.sublime-*"],
"folder_exclude_patterns": [".git", ".bundle", ".sass-cache"]
}

View File

@ -1,39 +0,0 @@
{
// Themes, Colors and Fonts
"theme": "Soda Light.sublime-theme",
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow.tmTheme",
"font_face": "Source Code Pro",
"font_size": 12.0,
"font_options": ["subpixel_antialias", "no_bold", "no_italic"],
// Behavior
"drag_text": false,
"highlight_modified_tabs": true,
"close_windows_when_empty": false,
"tree_animation_enabled": false,
// Text & Code
"fallback_encoding": "Cyrillic (Windows 1251)",
"default_line_ending": "unix",
"translate_tabs_to_spaces": true,
"ensure_newline_at_eof_on_save": true,
"trim_trailing_white_space_on_save": true,
"tab_size": 2,
// Editor
"highlight_line": true,
"rulers": [120],
"line_padding_bottom": 1,
"line_padding_top": 3,
"gutter": true,
"line_numbers": true,
"fold_buttons": false,
"draw_minimap_border": false,
"highlight_modified_tabs": true,
"close_windows_when_empty": false,
// Bullshit
"ignored_packages": ["Vintage"],
"file_exclude_patterns": [".DS_Store", "*.sublime-*"],
"folder_exclude_patterns": [".git", ".bundle", ".sass-cache"]
}

View File

@ -1,47 +0,0 @@
alias ll="ls -lah"
alias reload!=". ~/.zshrc"
alias please="sudo"
# Ruby & Rails
alias b="bundle exec"
alias rails="bundle exec rails"
alias rake="bundle exec rake"
alias rspec="bundle exec rspec"
alias cap="bundle exec cap"
alias cucumber="bundle exec cucumber"
alias mkbundle="bundle install --path vendor/gems"
alias ss="git up && bundle --quiet && bundle exec rake db:migrate"
alias rc="rails c"
alias rs="rails s"
alias rs1="rails s -p3001"
alias rs2="rails s -p3002"
alias fs="bundle exec foreman start"
# Git
alias git="git-achievements"
alias gl="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
alias gc="git ci -m"
alias ga="git add -u && git add . && git st"
alias gs="git st"
alias gd="git diff"
alias gp="git push"
alias gu="gut up"
alias gb="git br"
# OSX
alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder"
alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder"
# Services start-ups and shut-downs
alias mysql-start="mysql.server start"
alias mysql-stop="mysql.server stop"
alias mysql-restart="mysql.server restart"
alias postgres-start="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start"
alias postgres-stop="pg_ctl -D /usr/local/var/postgres stop -s -m fast"
alias redis-start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist"
alias redis-stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist"
alias redis-restart="redis-stop && redis-start"

View File

@ -1,5 +0,0 @@
# matches case insensitive for lowercase
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# pasting with tabs doesn't perform completion
zstyle ':completion:*' insert-tab pending

View File

@ -1,66 +0,0 @@
#compdef brew
# Brew ZSH completion function
# Drop this somewhere in your $fpath (like /usr/share/zsh/site-functions)
# and rename it _brew
#
# altered from _fink
_brew_all_formulae() {
formulae=(`brew search`)
}
_brew_installed_formulae() {
installed_formulae=(`brew list`)
}
local -a _1st_arguments
_1st_arguments=(
'install:install a formula'
'remove:remove a formula'
'search:search for a formula (/regex/ or string)'
'list:list files in a formula or not-installed formulae'
'link:link a formula'
'unlink:unlink a formula'
'home:visit the homepage of a formula or the brew project'
'info:information about a formula'
'prune:remove dead links'
'update:freshen up links'
'upgrade:upgrade outdated packages'
'log:git commit log for a formula'
'create:create a new formula'
'edit:edit a formula'
)
local expl
local -a formula installed_formulae
_arguments \
'(-v --verbose)'{-v,--verbose}'[verbose]' \
'(--version)--version[version information]' \
'(--prefix)--prefix[where brew lives on this system]' \
'(--cache)--cache[brew cache]' \
'*:: :->subcmds' && return 0
if (( CURRENT == 1 )); then
_describe -t commands "brew subcommand" _1st_arguments
return
fi
case "$words[1]" in
list)
_arguments \
'(--unbrewed)--unbrewed[files in brew --prefix not controlled by brew]' \
'1: :->forms' && return 0
if [[ "$state" == forms ]]; then
_brew_installed_formulae
_requested installed_formulae expl 'installed formulae' compadd -a installed_formulae
fi ;;
install|home|log|info)
_brew_all_formulae
_wanted formulae expl 'all formulae' compadd -a formulae ;;
remove|edit|xo)
_brew_installed_formulae
_wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae ;;
esac

View File

@ -1,9 +0,0 @@
#compdef rake
if [ -f Rakefile ]; then
recent=`last_modified .rake_tasks~ Rakefile **/*.rake`
if [[ $recent != '.rake_tasks~' ]]; then
rake --silent --tasks | cut -d " " -f 2 > .rake_tasks~
fi
compadd `cat .rake_tasks~`
fi

View File

@ -1,5 +0,0 @@
zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format '%B%d%b'
zstyle ':completion:*:messages' format '%d'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*' group-name ''

View File

@ -1,49 +0,0 @@
if [[ -n $SSH_CONNECTION ]]; then
export PS1='%m:%3~$(git_info_for_prompt)%# '
else
export PS1='%3~$(git_info_for_prompt)%# '
fi
export LSCOLORS="exfxcxdxbxegedabagacad"
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
SAVEHIST=10000
setopt NO_BG_NICE # don't nice background tasks
setopt NO_HUP
setopt NO_LIST_BEEP
setopt LOCAL_OPTIONS # allow functions to have local options
setopt LOCAL_TRAPS # allow functions to have local traps
setopt HIST_VERIFY
setopt SHARE_HISTORY # share history between sessions ???
setopt EXTENDED_HISTORY # add timestamps to history
setopt PROMPT_SUBST
setopt CORRECT
setopt COMPLETE_IN_WORD
setopt IGNORE_EOF
setopt APPEND_HISTORY # adds history
setopt INC_APPEND_HISTORY SHARE_HISTORY # adds history incrementally and share it across sessions
setopt HIST_IGNORE_ALL_DUPS # don't record dupes in history
setopt HIST_REDUCE_BLANKS
# don't expand aliases _before_ completion has finished
# like: git comm-[tab]
setopt complete_aliases
zle -N newtab
bindkey '^[^[[D' backward-word
bindkey '^[^[[C' forward-word
bindkey '^[[5D' beginning-of-line
bindkey '^[[5C' end-of-line
bindkey '^[[3~' delete-char
bindkey '^[^N' newtab
bindkey '^?' backward-delete-char

View File

@ -1,3 +0,0 @@
#compdef c
_files -W $PROJECTS -/

View File

@ -1,3 +0,0 @@
#compdef h
_files -W ~ -/

View File

@ -1 +0,0 @@
cd $PROJECTS/$1;

View File

@ -1 +0,0 @@
cd ~/$1;

View File

@ -1 +0,0 @@
ls -t $* 2> /dev/null | head -n 1

View File

@ -1,50 +0,0 @@
local sublime_conf_location=~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/Preferences.sublime-settings
local theme="$1"
case $theme in
light)
cp $ZSH/sublime/config-light $sublime_conf_location
osascript <<-END
tell application "iTerm"
repeat with myTerminal in terminals
repeat with mySession in sessions in myTerminal
tell mySession
set background color to {64842, 62778, 56626}
set bold color to {18134, 23373, 25098}
set cursor color to {21257, 26684, 28737}
set cursor_text color to {60037, 58326, 52284}
set foreground color to {21257, 26684, 28737}
set selection color to {60037, 58326, 52284}
set selected text color to {18134, 23373, 25098}
end tell
end repeat
end repeat
end tell
END
;;
dark)
cp $ZSH/sublime/config-dark $sublime_conf_location
osascript <<-END
tell application "iTerm"
repeat with myTerminal in terminals
repeat with mySession in sessions in myTerminal
tell mySession
set background color to {0, 7722, 9941}
set bold color to {33160, 37017, 36937}
set cursor color to {28873, 33398, 33872}
set cursor_text color to {0, 10207, 12694}
set foreground color to {28873, 33398, 33872}
set selection color to {0, 10207, 12694}
set selected text color to {33160, 37017, 36937}
end tell
end repeat
end repeat
end tell
END
;;
esac

View File

@ -1,5 +0,0 @@
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

View File

@ -1,75 +0,0 @@
autoload colors && colors
# Using git from Homebrew instead of default one
git=/usr/local/bin/git
git_branch() {
echo $($git symbolic-ref HEAD 2>/dev/null | awk -F/ {'print $NF'})
}
git_dirty() {
st=$($git status 2>/dev/null | tail -n 1)
if [[ $st == "" ]]
then
echo ""
else
if [[ "$st" =~ ^nothing ]]
then
echo "%F{002}($(git_prompt_info))%f"
else
echo "%F{001}($(git_prompt_info))%f"
fi
fi
}
git_need_commit() {
$git diff --stat 2>/dev/null | awk -F',' '/files? changed/ { lc += $2 + $3 } END {
if (lc > 100) print "\n%F{005}Y U NO COMMIT!?%f"
}'
}
git_prompt_info () {
ref=$($git symbolic-ref HEAD 2>/dev/null) || return
echo "${ref#refs/heads/}"
}
unpushed () {
$git cherry -v @{upstream} 2>/dev/null
}
need_push () {
if [[ $(unpushed) == "" ]]
then
echo ""
else
echo "%F{006}✖%f "
fi
}
rb_prompt(){
if $(which rbenv &> /dev/null)
then
echo "%F{004%}$(rbenv version | awk '{print $1}')%f"
else
echo ""
fi
}
current_time(){
echo 'date +"%d.%m.%Y %H:%M:%S"'
}
directory_name(){
echo "%F{012%}%1/%\%f"
}
export PROMPT=$'\n$(directory_name)$(git_need_commit) '
set_prompt () {
export RPROMPT="$(need_push)$(git_dirty)"
}
precmd() {
# No longer setting title. Because tmux
# title "zsh" "%m" "%55<...<%~"
set_prompt
}

View File

@ -1,6 +0,0 @@
# SSH Agent
result=$(ssh-add -L 2>/dev/null | tail -n 1)
if [[ $result == "The agent has no identities." ]]
then
ssh-add ~/.ssh/id_rsa 2>/dev/null
fi

View File

@ -1 +0,0 @@
[[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] && source $HOME/.tmuxinator/scripts/tmuxinator

View File

@ -1,18 +0,0 @@
# From http://dotfiles.org/~_why/.zshrc
# Sets the window title nicely no matter where you are
function title() {
# escape '%' chars in $1, make nonprintables visible
a=${(V)1//\%/\%\%}
# Truncate command, and join lines.
a=$(print -Pn "%40>...>$a" | tr -d "\n")
case $TERM in
screen)
print -Pn "\ek$a:$3\e\\" # screen title (in ^A")
;;
xterm*|rxvt)
print -Pn "\e]2;$2\a" # plain xterm title ($3 for pwd)
;;
esac
}

View File

@ -1,28 +0,0 @@
export EDITOR="subl -n -w"
# shortcut to this dotfiles path is $ZSH
export ZSH=$HOME/.dotfiles
# your project folder that we can `c [tab]` to
export PROJECTS=~/Code
# source every .zsh file in this rep
for config_file ($ZSH/**/*.zsh) source $config_file
# use .localrc for SUPER SECRET CRAP that you don't
# want in your public, versioned repo.
if [[ -a ~/.localrc ]]
then
source ~/.localrc
fi
# initialize autocomplete here, otherwise functions won't be loaded
autoload -U compinit
compinit
# load every completion after autocomplete loads
# for config_file ($ZSH/**/completion.sh) source $config_file
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"