Last active
June 15, 2016 17:00
-
-
Save newmen/2c83cabb542385510e92 to your computer and use it in GitHub Desktop.
my aliases and sublime settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export HISTFILESIZE=100000 | |
export HISTCONTROL=ignoredups | |
export GCC_PATH=/usr/local/Cellar/gcc/5.3.0 | |
export CXX=${GCC_PATH}/bin/g++-5 | |
# REMOVE IT WHEN YOU LEAVE FROM ODIN | |
odin_env=$HOME/.odin_env | |
[[ -e $odin_env ]] && source $odin_env | |
alias ls='ls -Gh' | |
alias ll='ls -l' | |
alias df='df -h' | |
alias less='less -R' | |
alias tf='tail -f' | |
alias irb='pry' | |
alias py='ipython' | |
alias ex='emacs -nw' | |
alias make='make -e -j8' | |
alias vg='vagrant' | |
alias vu='vg up' | |
alias vs='vg ssh' | |
alias vh='vg halt' | |
GREP_CFG="--color=always --exclude-dir=.idea --exclude-dir=target --exclude-dir=.git --exclude-dir=.svn" | |
alias grep="ggrep $GREP_CFG" | |
alias gr='grep -RnI' | |
alias egrep="gegrep $GREP_CFG" | |
alias egr='egrep -RnI' | |
function gc { | |
bgn='[[:cntrl:]][^_[:cntrl:]]*' | |
needle=`echo $@ | sed 's/\\\\b//g'` | |
gr $@ | egrep -v "${bgn}[^#]*#.*${needle}" | egrep -v "${bgn}[^//]*//.*${needle}" | |
} | |
function gb { | |
# gc "\b$1\b" $2 | |
gc "\b$@\b" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
random_message_path=${HOME}/.random_message.sh | |
[[ -f $random_message_path ]] && source $random_message_path | |
aliases_path=${HOME}/.bash_aliases | |
[[ -f $aliases_path ]] && source $aliases_path | |
cmpl_path=$HOME/.git-completion.bash | |
[[ -f $cmpl_path ]] && source $cmpl_path | |
if [ -f "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" ]; then | |
source "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" | |
export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007";setLastCommandState;setGitPrompt' | |
fi | |
if [ -f $HOME/.rvm/scripts/rvm ]; then | |
source $HOME/.rvm/scripts/rvm | |
fi | |
# env | |
export PATH=$PATH:${HOME}/bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aliases_file=$HOME/.bash_aliases.sh | |
[[ -f $aliases_file ]] && source $aliases_file | |
env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"bootstrapped": true, | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"Anaconda", | |
"Case Conversion", | |
"ChangeQuotes", | |
"Dayle Rees Color Schemes", | |
"Enhanced Clojure", | |
"ExpandRegion", | |
"GitGutter", | |
"lispindent", | |
"Package Control", | |
"RSpec", | |
"RubyTest", | |
"SFTP", | |
"SublimeREPL" | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"check_for_rvm": true, | |
"before_callback": "", | |
"after_callback": "", | |
// the internal project directory where ruby code is located and "spec" directory presented | |
"internal_dir": "analyzer" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["ctrl+k", "ctrl+n"], "command": "toggle_setting", "args": { "setting": "line_numbers" } }, | |
{ "keys": ["ctrl+k", "ctrl+p"], "command": "toggle_minimap" }, | |
{ "keys": ["ctrl+k", "ctrl+s"], "command": "toggle_status_bar" }, | |
{ "keys": ["ctrl+k", "ctrl+t"], "command": "toggle_tabs" }, | |
{ "keys": ["ctrl+k", "ctrl+w"], "command": "toggle_setting", "args": { "setting": "word_wrap"} }, | |
{ "keys": ["alt+t"], "command": "reopen_last_file" }, | |
{ "keys": ["alt+d"], "command": "expand_region" }, | |
{ "keys": ["super+'"], "command": "change_quotes" }, | |
{ "keys": ["ctrl+s"], "command": "repl_transfer_current", "args": { "scope": "selection"} }, | |
{ "keys": ["ctrl+f"], "command": "repl_transfer_current", "args": { "scope": "file"} }, | |
{ "keys": ["ctrl+l"], "command": "repl_transfer_current", "args": { "scope": "lines"} }, | |
{ "keys": ["ctrl+b"], "command": "repl_transfer_current", "args": { "scope": "block" }}, | |
// Singlequote for clojure | |
{ "keys": ["'"], "command": "insert_snippet", "args": {"contents": "'"}, "context": | |
[ | |
{ "key": "selector", "operator": "equal", "operand": "source.clojure"} | |
] | |
}, | |
// Change default settings | |
{ "keys": ["super+shift+up"], "command": "swap_line_up" }, | |
{ "keys": ["super+shift+down"], "command": "swap_line_down" }, | |
{ "keys": ["super+shift+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, | |
{ "keys": ["alt+1"], "command": "focus_group", "args": { "group": 0 } }, | |
{ "keys": ["alt+2"], "command": "focus_group", "args": { "group": 1 } }, | |
{ "keys": ["alt+3"], "command": "focus_group", "args": { "group": 2 } }, | |
{ "keys": ["alt+4"], "command": "focus_group", "args": { "group": 3 } }, | |
{ "keys": ["alt+5"], "command": "focus_group", "args": { "group": 4 } }, | |
{ "keys": ["alt+6"], "command": "focus_group", "args": { "group": 5 } }, | |
{ "keys": ["alt+7"], "command": "focus_group", "args": { "group": 6 } }, | |
{ "keys": ["alt+8"], "command": "focus_group", "args": { "group": 7 } }, | |
{ "keys": ["alt+9"], "command": "focus_group", "args": { "group": 8 } }, | |
{ "keys": ["alt+shift+1"], "command": "move_to_group", "args": { "group": 0 } }, | |
{ "keys": ["alt+shift+2"], "command": "move_to_group", "args": { "group": 1 } }, | |
{ "keys": ["alt+shift+3"], "command": "move_to_group", "args": { "group": 2 } }, | |
{ "keys": ["alt+shift+4"], "command": "move_to_group", "args": { "group": 3 } }, | |
{ "keys": ["alt+shift+5"], "command": "move_to_group", "args": { "group": 4 } }, | |
{ "keys": ["alt+shift+6"], "command": "move_to_group", "args": { "group": 5 } }, | |
{ "keys": ["alt+shift+7"], "command": "move_to_group", "args": { "group": 6 } }, | |
{ "keys": ["alt+shift+8"], "command": "move_to_group", "args": { "group": 7 } }, | |
{ "keys": ["alt+shift+9"], "command": "move_to_group", "args": { "group": 8 } }, | |
{ "keys": ["alt+0"], "command": "focus_side_bar" } | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"always_show_minimap_viewport": true, | |
"color_scheme": "Packages/Dayle Rees Color Schemes/sublime/yule.tmTheme", | |
"enable_tab_scrolling": false, | |
"ensure_newline_at_eof_on_save": true, | |
"font_face": "Source Code Pro", | |
"font_size": 12, | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"rulers": | |
[ | |
79, | |
87, | |
114 | |
], | |
"save_on_focus_lost": true, | |
"shift_tab_unindent": true, | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, | |
"trim_trailing_white_space_on_save": true, | |
"word_wrap": "true" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"default_extend_env": {"PATH": "{PATH}:/Users/newmen/bin"}, | |
"getenv_command": ["/Users/newmen/.env-repl-sublime.sh"], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment