dissimulo does not use vim. Removes the editor, its config tree, its plugin
manager, and everything that would reinstall it on a re-bootstrap.
Deleted (82 files):
vim/ (64) the whole config tree, 1.7M
doc/vim/ (8) its documentation
.vimrc, vimrc, .vim
bin/yadr/vundle.rb, yadr-vim-{add,delete,list}-plugin
bin/fix_macvim_external_display.sh MacVim on macOS, dead here anyway
vimify/ vi keybindings for readline/libedit, dropped on request
Edited:
Rakefile drop the vundle require, the vim install block, the
vundle_migration and install_vundle tasks, their two helper
methods, and the macvim homebrew line. Without this a
re-bootstrap would pull all of it straight back.
install.sh .vim/.vimrc out of the symlink list
zsh/vi-mode.zsh EDITOR/VISUAL now nano. The zsh vi keybindings stay; they
are not vim.
zsh/aliases.zsh yav/ydv/ylv, the MacVim detection block and ve removed;
ae/ze/gi now open nano
git/gitconfig mvimdiff mergetool removed, editor set to nano
.tmux.conf vim-tmux-navigator replaced with direct select-pane binds.
It ran ps piped to grep on EVERY C-h/j/k/l press to ask
whether vim held the pane: two forks per pane switch for a
question that can now only answer no. mode-keys and
status-keys vi stay, being tmux own key style, unrelated to
the editor.
.gitignore/.dockerignore/Dockerfile dead paths and the vim package
Also renames the installer banner to DRUNKENDOTFILES, piped through lolcat
when present with a plain-text fallback.
Left alone: the .yadr paths (renaming the checkout is a separate job), generic
swap-file ignores, the fasd viminfo support (third-party), and prose mentions.
202 lines
5.2 KiB
Bash
202 lines
5.2 KiB
Bash
# Aliases in this file are bash and zsh compatible
|
|
|
|
# Don't change. The following determines where YADR is installed.
|
|
yadr=$HOME/.yadr
|
|
|
|
# Get operating system
|
|
platform='unknown'
|
|
unamestr=$(uname)
|
|
if [[ $unamestr == 'Linux' ]]; then
|
|
platform='linux'
|
|
elif [[ $unamestr == 'Darwin' ]]; then
|
|
platform='darwin'
|
|
fi
|
|
|
|
# YADR support
|
|
alias yup='yadr update-plugins'
|
|
alias yip='yadr init-plugins'
|
|
|
|
# PS
|
|
alias psa="ps aux"
|
|
alias psg="ps aux | grep "
|
|
alias psr='ps aux | grep ruby'
|
|
|
|
# Moving around
|
|
alias cdb='cd -'
|
|
alias cls='clear;ls'
|
|
|
|
# Show human friendly numbers and colors
|
|
alias df='df -h'
|
|
alias du='du -h -d 2'
|
|
|
|
if [[ $platform == 'linux' ]]; then
|
|
alias ll='ls -alh --color=auto'
|
|
alias ls='ls --color=auto'
|
|
elif [[ $platform == 'darwin' ]]; then
|
|
alias ll='ls -alGh'
|
|
alias ls='ls -Gh'
|
|
fi
|
|
|
|
# show me files matching "ls grep"
|
|
alias lsg='ll | grep'
|
|
|
|
# Alias Editing
|
|
TRAPHUP() {
|
|
source $yadr/zsh/aliases.zsh
|
|
}
|
|
|
|
alias ae='nano $yadr/zsh/aliases.zsh' #alias edit
|
|
alias ar='source $yadr/zsh/aliases.zsh' #alias reload
|
|
alias gar="killall -HUP -u \"$USER\" zsh" #global alias reload
|
|
|
|
|
|
alias :q='exit'
|
|
|
|
|
|
# zsh profile editing
|
|
alias ze='nano ~/.zshrc'
|
|
|
|
# Git Aliases
|
|
alias gs='git status'
|
|
alias gstsh='git stash'
|
|
alias gst='git stash'
|
|
alias gsp='git stash pop'
|
|
alias gsa='git stash apply'
|
|
alias gsh='git show'
|
|
alias gshw='git show'
|
|
alias gshow='git show'
|
|
alias gi='nano .gitignore'
|
|
alias gcm='git ci -m'
|
|
alias gcim='git ci -m'
|
|
alias gci='git ci'
|
|
alias gco='git co'
|
|
alias gcp='git cp'
|
|
alias ga='git add -A'
|
|
alias gap='git add -p'
|
|
alias guns='git unstage'
|
|
alias gunc='git uncommit'
|
|
alias gm='git merge'
|
|
alias gms='git merge --squash'
|
|
alias gam='git amend --reset-author'
|
|
alias grv='git remote -v'
|
|
alias grr='git remote rm'
|
|
alias grad='git remote add'
|
|
alias gr='git rebase'
|
|
alias gra='git rebase --abort'
|
|
alias ggrc='git rebase --continue'
|
|
alias gbi='git rebase --interactive'
|
|
alias gl='git l'
|
|
alias glg='git l'
|
|
alias glog='git l'
|
|
alias co='git co'
|
|
alias gf='git fetch'
|
|
alias gfp='git fetch --prune'
|
|
alias gfa='git fetch --all'
|
|
alias gfap='git fetch --all --prune'
|
|
alias gfch='git fetch'
|
|
alias gd='git diff'
|
|
alias gb='git b'
|
|
# Staged and cached are the same thing
|
|
alias gdc='git diff --cached -w'
|
|
alias gds='git diff --staged -w'
|
|
alias gpub='grb publish'
|
|
alias gtr='grb track'
|
|
alias gpl='git pull'
|
|
alias gplr='git pull --rebase'
|
|
alias gps='git push'
|
|
alias gpsh='git push -u origin `git rev-parse --abbrev-ref HEAD`'
|
|
alias gnb='git nb' # new branch aka checkout -b
|
|
alias grs='git reset'
|
|
alias grsh='git reset --hard'
|
|
alias gcln='git clean'
|
|
alias gclndf='git clean -df'
|
|
alias gclndfx='git clean -dfx'
|
|
alias gsm='git submodule'
|
|
alias gsmi='git submodule init'
|
|
alias gsmu='git submodule update'
|
|
alias gt='git t'
|
|
alias gbg='git bisect good'
|
|
alias gbb='git bisect bad'
|
|
alias gdmb='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d'
|
|
|
|
# Common shell functions
|
|
alias less='less -r'
|
|
alias tf='tail -f'
|
|
alias l='less'
|
|
alias lh='ls -alt | head' # see the last modified files
|
|
alias screen='TERM=screen screen'
|
|
alias cl='clear'
|
|
|
|
# Zippin
|
|
alias gz='tar -zcvf'
|
|
|
|
# Ruby
|
|
alias c='rails c' # Rails 3
|
|
alias co='script/console' # Rails 2
|
|
alias cod='script/console --debugger'
|
|
|
|
#If you want your thin to listen on a port for local VM development
|
|
#export VM_IP=10.0.0.1 <-- your vm ip
|
|
alias ts='thin start -a ${VM_IP:-127.0.0.1}'
|
|
alias ms='mongrel_rails start'
|
|
alias tfdl='tail -f log/development.log'
|
|
alias tftl='tail -f log/test.log'
|
|
|
|
alias ka9='killall -9'
|
|
alias k9='kill -9'
|
|
|
|
# Gem install
|
|
alias sgi='sudo gem install --no-ri --no-rdoc'
|
|
|
|
# TODOS
|
|
# This uses NValt (NotationalVelocity alt fork) - http://brettterpstra.com/project/nvalt/
|
|
# to find the note called 'todo'
|
|
alias todo='open nvalt://find/todo'
|
|
|
|
# Forward port 80 to 3000
|
|
alias portforward='sudo ipfw add 1000 forward 127.0.0.1,3000 ip from any to any 80 in'
|
|
|
|
alias rdm='rake db:migrate'
|
|
alias rdmr='rake db:migrate:redo'
|
|
|
|
# Zeus
|
|
alias zs='zeus server'
|
|
alias zc='zeus console'
|
|
alias zr='zeus rspec'
|
|
alias zrc='zeus rails c'
|
|
alias zrs='zeus rails s'
|
|
alias zrdbm='zeus rake db:migrate'
|
|
alias zrdbtp='zeus rake db:test:prepare'
|
|
alias zzz='rm .zeus.sock; pkill zeus; zeus start'
|
|
|
|
# Rspec
|
|
alias rs='rspec spec'
|
|
alias sr='spring rspec'
|
|
alias src='spring rails c'
|
|
alias srgm='spring rails g migration'
|
|
alias srdm='spring rake db:migrate'
|
|
alias srdt='spring rake db:migrate'
|
|
alias srdmt='spring rake db:migrate db:test:prepare'
|
|
|
|
|
|
# Sprintly - https://github.com/nextbigsoundinc/Sprintly-GitHub
|
|
alias sp='sprintly'
|
|
# spb = sprintly branch - create a branch automatically based on the bug you're working on
|
|
alias spb="git checkout -b \`sp | tail -2 | grep '#' | sed 's/^ //' | sed 's/[^A-Za-z0-9 ]//g' | sed 's/ /-/g' | cut -d"-" -f1,2,3,4,5\`"
|
|
|
|
alias hpr='hub pull-request'
|
|
alias grb='git recent-branches'
|
|
|
|
# Finder
|
|
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
|
|
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
|
|
|
|
alias dbtp='spring rake db:test:prepare'
|
|
alias dbm='spring rake db:migrate'
|
|
alias dbmr='spring rake db:migrate:redo'
|
|
alias dbmd='spring rake db:migrate:down'
|
|
alias dbmu='spring rake db:migrate:up'
|
|
|
|
# Homebrew
|
|
alias brewu='brew update && brew upgrade && brew cleanup && brew doctor'
|