forked from bhudgens/benvironment
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaliases
More file actions
140 lines (130 loc) · 5.44 KB
/
aliases
File metadata and controls
140 lines (130 loc) · 5.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#! /usr/bin/env bash
#######################################################################
# Author: Benjamin Hudgens
# Date: April 9, 2015
#
# Description: Aliases and Shortcuts
#######################################################################
#############################################################################
# Rapid Reverts
#############################################################################
# -New- rv.. purges previous dir
alias nrv='rm -rf "${DIR_REVERTS}"; mkdir -p "${DIR_REVERTS}"; cd "${DIR_REVERTS}"'
alias rv='mkdir -p "${DIR_REVERTS}"; cd "${DIR_REVERTS}"'
# Revert the last normal commit
alias gr='git revert HEAD~1..HEAD'
# Revert the last commit if it's a merge
alias gmr='git revert -m 1 HEAD~1..HEAD'
#############################################################################
# Quick Edits
#############################################################################
alias t='atom /Users/benjamin/Dropbox/code/templates'
alias sql='code /Users/benjamin/Dropbox/code/sql'
#############################################################################
# Navigation
#############################################################################
alias priv='cat ${HOME}/.ssh/id_rsa | pbcopy'
alias pub='cat ${HOME}/.ssh/id_rsa.pub | pbcopy'
alias glg='cd "${DIR_GLG}"'
alias sd='cd ${DIR_STARPHLEET_DEV}'
alias term='"${DIR_GLG}"/starphleet-enhance/terminate-instance'
alias ssh='ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null'
# ls shortcuts
alias ls='ls -G'
alias ll='ls -lh'
alias lsa='ls -lah'
alias la='ls -lAh'
alias l='ls -lah'
#############################################################################
# Screen Saver
#############################################################################
alias ss='open -a /System/Library/CoreServices/ScreenSaverEngine.app'
#############################################################################
# Shell Shortcuts
#############################################################################
alias flushdns='sudo killall -HUP mDNSResponder'
alias md='mkdir -p'
alias history='fc -l 1'
alias denv='vi ${HOME}/.devenv; source ${HOME}/.devenv'
alias ndm='bash -c "$(STARPHLEET_HEADQUARTERS=git@github.com:glg/template-hq-dev.git#master curl -s https://raw.githubusercontent.com/glg/starphleet-dev-webinstalls/master/template)"'
alias ol='app https://outlook.office.com/owa/'
alias vpn="sudo vpn-client --openVpnBinaryPath $(which openvpn)"
alias vpne="sudo vpn-client -e"
alias new="cp -r ${HOME}/Dropbox/code/glg/node_boilerplate "
alias ttl="sudo sysctl -w net.inet.ip.ttl=65"
alias bus="sudo sysctl -w net.inet.ip.ttl=66"
alias remap="xmodmap ${HOME}/.keymaps"
alias dm="${HOME}/reverts/devmode/bin/devmode \
--ldapUsername bhudgens \
--starphleetSourceDir '${HOME}/reverts/starphleet'"
#############################################################################
# Git Shortcuts
#############################################################################
alias g='git'
alias ggpull='git pull origin $(current_branch)'
alias gwc='git whatchanged -p --abbrev-commit --pretty=medium'
alias gunwip='git log -n 1 | grep -q -c 'wip' && git reset HEAD~1'
alias glgga='git log --graph --decorate --all'
alias ggpush='git push origin $(current_branch)'
alias gsd='git svn dcommit'
alias grbc='git rebase --continue'
alias gts='git tag -s'
alias gdt='git difftool'
alias gstp='git stash pop'
alias gsps='git show --pretty=short --show-signature'
alias gc='git commit -v'
alias gcp='git cherry-pick'
alias gcl='git config --list'
alias grh='git reset HEAD'
alias gsta='git stash'
alias gg='git gui citool'
alias grbi='git rebase -i'
alias gcs='git commit -S'
alias gup='git pull --rebase'
alias grba='git rebase --abort'
alias gc!='git commit -v --amend'
alias gm='git merge'
alias glp='_git_log_prettily'
alias glgg='git log --graph --max-count=10'
alias gbr='git branch --remote'
alias gdc='git diff --cached'
alias gsts='git stash show --text'
alias ggpur='git pull --rebase origin $(current_branch)'
alias gunignore='git update-index --no-assume-unchanged'
# alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
alias grv='git remote -v'
alias gst='git status'
alias gcm='git checkout master'
alias gcount='git shortlog -sn'
alias glo='git log --oneline --decorate --color'
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
alias gba='git branch -a'
alias gca!='git commit -v -a --amend'
alias gap='git add --patch'
alias gga='git gui citool --amend'
alias gwip='git add -A; git ls-files --deleted -z | xargs -r0 git rm; git commit -m '--wip--''
alias gsr='git svn rebase'
alias grup='git remote update'
alias gk='gitk --all --branches'
alias gco='git checkout'
alias gstd='git stash drop'
alias gpoat='git push origin --all && git push origin --tags'
alias gd='git diff'
alias gmt='git mergetool --no-prompt'
alias grrm='git remote remove'
alias gca='git commit -v -a'
alias gignore='git update-index --assume-unchanged'
alias grset='git remote set-url'
alias gp='git push'
alias gb='git branch'
alias grhh='git reset HEAD --hard'
alias gclean='git reset --hard && git clean -dfx'
alias glog='git log --oneline --decorate --color --graph'
alias ga='git add'
alias gvt='git verify-tag'
alias gcmsg='git commit -m'
alias gl='git pull'
alias gss='git status -s'
alias zoom='open https://glgroup.zoom.us/my/bhudgens && echo https://glgroup.zoom.us/my/bhudgens | pbcopy'
alias xcodeaccept="sudo xcodebuild -license accept"
# All finished