Last active
February 8, 2023 13:25
-
-
Save hpstuff/324503e6226e409449178fab1a40daaf to your computer and use it in GitHub Desktop.
terminal
This file contains 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
source ~/.local/bin/bashmarks.sh | |
source ~/.bashrc | |
source ~/.profile | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias pgs="phonegap serve" | |
alias vim="mvim --remote-tab-silent" | |
alias composer="php /usr/bin/composer.phar" | |
alias ga='git add -A' | |
alias gp='git push' | |
alias gl='git llog' | |
alias glog='git log' | |
alias gs='git status' | |
alias gd='git diff' | |
alias gdi='git di' | |
alias gc='git commit -m' | |
alias gca='git commit -am' | |
alias gb='git branch' | |
alias go='git checkout' | |
alias gra='git remote add' | |
alias grr='git remote rm' | |
alias gpu='git pull' | |
alias gcl='git clone' | |
alias gta='git tag -a -m' | |
alias gf='git reflog' | |
alias lmrs='docker-compose exec app php artisan migrate:refresh --seed' | |
alias lgak='docker-compose exec app php artisan api-key:generate' | |
alias ldb='docker-compose exec database mysql --host=localhost --user=homestead -p' | |
alias svnadd="svn status | grep -v \"^.[ \t]*\..*\" | grep \"^?\" | awk '{print $2}' | xargs svn add" | |
alias serve="python -m SimpleHTTPServer 4000" | |
alias chrome-unsecure="pkill Chrome;sleep 1;open /Applications/Google\ Chrome.app/ --args --disable-web-security" | |
export CLICOLOR=1 | |
export LSCOLORS=dxfxcxdxbxegedabagacad | |
alias ls='ls -CFG' | |
PATH="/Applications/Android Studio.app/sdk/tools:/Applications/Android\ Studio.app/sdk/platform-tools:$PATH" | |
export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
source "${GITAWAREPROMPT}/main.sh" | |
export PS2="[\A] 💭 " | |
export PS1="[\A]\u\[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]:\W 💭 " | |
export EDITOR='vim' | |
# Add environment variable COCOS_CONSOLE_ROOT for cocos2d-x | |
export COCOS_CONSOLE_ROOT=/Applications/Cocos/frameworks/cocos2d-x-3.9/tools/cocos2d-console/bin | |
export PATH=$COCOS_CONSOLE_ROOT:$PATH | |
# Add environment variable ANT_ROOT for cocos2d-x | |
export ANT_ROOT=/Applications/Cocos/tools/ant/bin | |
export PATH=$ANT_ROOT:$PATH | |
# Add environment variable COCOS_TEMPLATES_ROOT for cocos2d-x | |
export COCOS_TEMPLATES_ROOT=/Users/rumen/Downloads/cocos2d-x-3.4/templates | |
export PATH=$COCOS_TEMPLATES_ROOT:$PATH | |
# Add environment variable ANDROID_HOME for phonegap | |
export ANDROID_HOME=~/Library/Android/sdk | |
# Add environment variable ANDROID_SDK_ROOT for cocos2d-x | |
export ANDROID_SDK_ROOT=$ANDROID_HOME | |
export PATH=$ANDROID_SDK_ROOT:$PATH | |
export PATH=$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools:$PATH | |
# Add environment variable COCOS_FRAMEWORKS for cocos2d-x | |
export COCOS_FRAMEWORKS=/Applications/Cocos/frameworks | |
export PATH=$COCOS_FRAMEWORKS:$PATH | |
export PATH="~/.composer/vendor/bin:$PATH" | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
###-tns-completion-start-### | |
if [ -f /Users/rumen/.tnsrc ]; then | |
source /Users/rumen/.tnsrc | |
fi | |
###-tns-completion-end-### | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
This file contains 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
###-tns-completion-start-### | |
if [ -f /Users/rumen/.tnsrc ]; then | |
source /Users/rumen/.tnsrc | |
fi | |
###-tns-completion-end-### | |
export PATH="$HOME/.yarn/bin:$PATH" | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" |
This file contains 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
if [[ $OSTYPE = darwin* ]]; then | |
export CLICOLOR=1 | |
export LSCOLORS=dxfxcxdxbxegedabagacad | |
alias ls='ls -CFG' | |
else | |
alias ls='ls --color=auto' | |
eval `dircolors ~/.dircolors` | |
fi | |
This file contains 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
set nocompatible | |
set shiftwidth=2 | |
set softtabstop=2 | |
set hidden | |
set expandtab | |
set number | |
set relativenumber | |
set cindent | |
set smartindent | |
set ignorecase | |
set smartcase | |
set autoindent | |
set guioptions=aAce | |
set modelines=0 | |
set ff=unix | |
set mousehide | |
set foldmethod=indent | |
set foldlevelstart=0 | |
"use system clipboard | |
set clipboard=unnamed | |
set clipboard-=autoselect | |
set guioptions-=a | |
"statusline | |
set laststatus=2 | |
set statusline+=%f%m%=%P | |
"put all swap files in one place | |
set directory^=~/.vimswaps/ | |
filetype plugin indent on | |
syntax on | |
"THEME | |
set background=light | |
colorscheme solarized | |
call togglebg#map("<F5>") | |
hi SignColumn ctermbg=lightgray | |
" MacVim prefs | |
if has("gui_macvim") | |
set vb | |
set fuoptions=maxvert,maxhorz | |
au GUIEnter * set fullscreen | |
set macmeta | |
set guifont=Operator\ Mono\ Book:h17 | |
set linespace=4 | |
endif | |
"KEYMAPPING | |
"use comma for a leader key | |
let mapleader = "," | |
"escape is too far | |
:imap jj <Esc> | |
"a shift less | |
nnoremap ; : | |
"easier increment/decrement | |
nnoremap + <C-a> | |
nnoremap _ <C-x> | |
"easier go to line | |
:nmap <CR> G | |
"fold toggle | |
nnoremap <Space> za | |
"yank to end of line | |
noremap Y y$ | |
"splits | |
nnoremap <C-J> <C-W><C-J> | |
nnoremap <C-K> <C-W><C-K> | |
nnoremap <C-L> <C-W><C-L> | |
nnoremap <C-H> <C-W><C-H> | |
set splitbelow | |
set splitright | |
"buffers | |
map gp :e#<cr> | |
"TextMate-like braces | |
inoremap {<cr> {<cr>}<c-o>O | |
inoremap [<cr> [<cr>]<c-o>O<tab> | |
inoremap (<cr> (<cr>)<c-o>O<tab> | |
"include dash or not? | |
set iskeyword=@,48-57,_,192-255,#,- | |
nnoremap <expr> <F6> ':set isk' . (index(split(&isk, ','), '-') == -1 ? '+' : '-') . '=-<cr>:set iskeyword?<cr>' | |
"indent | |
map <silent> <leader>aa mmgg=G`m^zz | |
imap <silent> <leader>aa mmgg=G`m^zz | |
" Edit and reload .vimrc | |
nmap <leader>vr :ex ~/.vim/settings/<CR> | |
map <silent> <leader>vrr :source $MYVIMRC<CR>:filetype detect<CR>:exe ":echo 'vimrc reloaded'"<CR> | |
" Typescript import | |
map <silent> <leader>tsi :TsuImport<CR> | |
"PLUGINS | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" Vundle | |
Bundle 'gmarik/vundle' | |
Bundle 'Townk/vim-autoclose.git' | |
Bundle 'garbas/vim-snipmate' | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'ervandew/supertab' | |
Bundle 'bronson/vim-trailing-whitespace' | |
Bundle 'alvan/vim-closetag' | |
Bundle 'MarcWeber/vim-addon-mw-utils' | |
Bundle 'altercation/vim-colors-solarized' | |
Bundle 'vim-scripts/IndexedSearch' | |
Bundle 'vim-scripts/tlib' | |
Bundle 'vim-scripts/fakeclip' | |
Bundle 'vim-scripts/matchit.zip' | |
Bundle 'tpope/vim-commentary' | |
Bundle 'tpope/vim-surround' | |
Bundle 'tpope/vim-markdown' | |
Bundle 'tpope/vim-repeat' | |
Bundle 'digitaltoad/vim-pug' | |
Bundle 'pangloss/vim-javascript' | |
Bundle 'mxw/vim-jsx' | |
Bundle 'w0rp/ale' | |
Bundle 'kien/ctrlp.vim' | |
Bundle 'leafgarland/typescript-vim' | |
Bundle 'Quramy/tsuquyomi' | |
Bundle 'editorconfig/editorconfig-vim' | |
Bundle 'dart-lang/dart-vim-plugin' | |
"PLUGIN SETUP | |
"CTRL+P | |
let g:ctrlp_use_caching = 0 | |
let g:ctrlp_map = '<c-p>' | |
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git\|hg\|phonegap\|dist' | |
let g:ctrlp_prompt_mappings = { | |
\ 'AcceptSelection("e")': ['<c-t>'], | |
\ 'AcceptSelection("t")': ['<cr>', '<2-LeftMouse>'], | |
\ } | |
if executable('ag') | |
let g:ctrlp_user_command = 'ag --ignore-case --nogroup --hidden --follow | |
\ -U -p ~/.agignore | |
\ -l -m 50000 | |
\ %s -g ""' | |
endif | |
let g:ctrlp_root_markers = ['package.json'] | |
"jsx | |
let g:jsx_pragma_required = 1 | |
"ale | |
nmap <silent> <C-k> <Plug>(ale_previous_wrap) | |
nmap <silent> <C-j> <Plug>(ale_next_wrap) | |
let g:ale_fix_on_save = 1 | |
let g:ale_javascript_prettier_use_global = 1 | |
let g:ale_javascript_prettier_options = "--print-width 100 --single-quote --trailing-comma es5 --arrow-parens always" | |
let g:ale_linters = { | |
\ 'javascript': ['flow', 'eslint'], | |
\ 'typescript': ['tslint'], | |
\} | |
let g:ale_fixers = { | |
\ 'javascript': ['prettier'], | |
\} | |
"tsuquyomi | |
let g:tsuquyomi_single_quote_import=1 | |
"vim_javascript | |
let g:javascript_plugin_flow=1 | |
let g:javascript_conceal_double_equal="≈" | |
let g:javascript_conceal_triple_equal="≡" | |
let g:javascript_conceal_greater_equal_operator="≥" | |
let g:javascript_conceal_less_equal_operator="≤" | |
let g:javascript_conceal_arrow_function="⇒" | |
let g:javascript_conceal_not_equal_operator="≠" | |
let g:javascript_conceal_not_strict_equal_operator="≢" | |
set conceallevel=1 | |
"LANGUAGES | |
au BufRead,BufNewFile *.js set filetype=javascript.jsx | |
au BufNewFile,BufRead *.es6 set filetype=javascript | |
au BufNewFile,BufRead *.hbs set filetype=html | |
au BufNewFile,BufRead *.ts,*.tsx set filetype=typescript | |
au BufNewFile,BufRead *.dart set filetype=dart | |
autocmd Filetype scss setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype css setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype javascript setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype typescript setlocal ts=2 sts=2 sw=2 | |
"use prettier as a javascript formatter | |
autocmd FileType javascript set formatprg=prettier\ --stdin | |
"autocmd FileType javascript set formatprg=prettier\ --stdin\ --print-width 100\ --single-quote\ --trailing-comma all | |
"better html li indent | |
let g:html_indent_inctags = "li,ul" |
This file contains 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
ZSH_THEME="lambda-pure" | |
export TERM=xterm-256color | |
export LANG=en_US.UTF-8 | |
export ZSH=/Users/rumenrussanov/.oh-my-zsh | |
#autoload -Uz async && async | |
plugins=(zshmarks git colored-man-pages colorize github jira vagrant virtualenv pip python brew osx zsh-syntax-highlighting async) | |
DISABLE_UPDATE_PROMPT=true | |
ZSH_DISABLE_CONPFIX=true | |
source $ZSH/oh-my-zsh.sh | |
zstyle ':vcs_info:*' enable git hg | |
zstyle ':vcs_info:hg*' check-for-changes true | |
zstyle ':vcs_info:hg*' stagedstr '*' | |
zstyle ':vcs_info:hg*' unstagedstr '*' | |
zstyle ':vcs_info:hg*' formats ' %b' 'x%R' '%s' | |
zstyle ':vcs_info:hg*' actionformats '%b|%a%c%u' '%R' | |
source ~/.colors | |
#export CLICOLOR=1 | |
#export LSCOLORS=dxfxcxdxbxegedabagacad | |
prompt_context() { | |
local user=`whoami` | |
if [[ "$user" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then | |
prompt_segment black default " %(!.%{%F{yellow}%}.)$user" | |
fi | |
} | |
prompt_dir() { | |
prompt_segment blue black '%2~' | |
} | |
# Preferred editor for local and remote sessions | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='vim' | |
else | |
export EDITOR='mvim' | |
fi | |
alias -g A="| ag" | |
alias g="jump" | |
alias l="showmarks" | |
alias s="bookmark" | |
alias d="deletemark" | |
alias c="caffeinate" | |
alias python="python3" | |
alias flutter="fvm flutter" | |
alias gn="~/gn" | |
#alias coffe="type=coffe node ~/Work/Experiments/slack/index.js" | |
#alias work="type=work node ~/Work/Experiments/slack/index.js" | |
#alias lunch="type=lunch node ~/Work/Experiments/slack/index.js" | |
#alias workoff="node ~/Work/Experiments/slack/index.js" | |
alias rutracker="node ~/Work/rutracker/index.js" | |
alias serve="python -m SimpleHTTPServer 4000" | |
#export JAVA_HOME=$(/usr/libexec/java_home -v 1.8.0.0_281) | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home | |
export ANDROID_HOME=$HOME/Library/Android/sdk | |
export PATH="$PATH:$HOME/.yarn/bin" | |
export PAHT="$PATH:$ANDROID_HOME" | |
export PATH="$PATH:$ANDROID_HOME/emulator" | |
export PATH="$PATH:$ANDROID_HOME/tools" | |
export PATH="$PATH:$ANDROID_HOME/tools/bin" | |
export PATH="$PATH:$ANDROID_HOME/platform-tools" | |
export PATH="$PATH:$HOME/.pub-cache/bin" | |
export EDITOR=/usr/local/bin/vim | |
export NO_PROXY=127.0.0.1,localhost | |
export PATH="$PATH":"$HOME/fvm/versions/stable/bin" | |
export PATH="$PATH":"$HOME/fvm/versions/stable/.pub-cache/bin" | |
export PATH="$PATH":"$HOME/fvm/versions/stable/bin/cache/dart-sdk/bin" | |
export PATH="/usr/local/lib/ruby/gems/3.1.0/bin/:$PATH" | |
export PATH="/usr/local/opt/ruby/bin:$PATH" | |
export PATH="/Applications/CMake.app/Contents/bin:$PATH" | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
This file contains 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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "ctrl+cmd+w", | |
"command": "editor.action.codeAction", | |
"args": { | |
"kind": "refactor.flutter.wrap.generic" | |
} | |
}, | |
{ | |
"key": "cmd+enter", | |
"command": "editor.action.quickFix" | |
} | |
] |
This file contains 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
{ | |
"vim.disableAnnoyingNeovimMessage": true, | |
"workbench.colorTheme": "Solarized Light", | |
"window.zoomLevel": 0, | |
"editor.fontFamily": "'Noto Mono for Powerline', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontSize": 16, | |
"editor.lineNumbers": "relative", | |
"editor.formatOnSave": true | |
} |
This file contains 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
Dart-Code.dart-code | |
Dart-Code.flutter | |
dbaeumer.vscode-eslint | |
eamodio.gitlens | |
EditorConfig.EditorConfig | |
extr0py.vscode-relative-line-numbers | |
felixrieseberg.vsc-ember-cli | |
flowtype.flow-for-vscode | |
jgw9617.ionic2-vscode | |
johnpapa.Angular2 | |
luanpotter.dart-import | |
ms-vscode.node-debug2 | |
msjsdiag.debugger-for-chrome | |
msjsdiag.debugger-for-ios-web | |
PeterJausovec.vscode-docker | |
pmneo.autoimport | |
Telerik.nativescript | |
Tyriar.terminal-tabs | |
vscodevim.vim | |
vsmobile.vscode-react-native | |
wwwalkerrun.nativescript-ng2-snippets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment