-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.alias
More file actions
61 lines (59 loc) · 1.86 KB
/
.alias
File metadata and controls
61 lines (59 loc) · 1.86 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
# ----------------------------------------------------------------------
# ALIASES
# ----------------------------------------------------------------------
alias al='ssh -t -D 8383 pm tmux-next attach'
alias be='bundle exec'
alias c='clear'
alias cat='bat'
alias du1='du -h --max-depth=1'
alias fm='vr "echo flush_all | nc localhost 11211"'
alias fn='find . -name'
alias g=git
alias gca='git commit --amend --no-edit'
alias gcb='git checkout -b'
alias gco='git checkout'
alias gd='git diff'
alias gds='git diff --stat'
alias gdc='git diff --cached'
alias gf='git fetch'
alias gl="git log"
alias glm='git log --pretty=medium --decorate --graph'
alias glo='git lol'
alias grph='git rev-parse HEAD'
alias gru='git fetch origin && git reset --hard @{upstream}'
alias hgrep='history | grep'
alias hi='history 20'
alias k='kubectl'
alias kgn='k get nodes -o wide'
alias kgp='k get pods -o wide'
alias l.="ls -d .*"
alias la='ls -ah'
alias less='less -XR'
alias ll='ls -l'
alias lol='git lol' #defined in .gitconfig
alias ls='ls -aG'
alias rv='git remote -v'
alias st='git status'
alias ts='/Applications/Tailscale.app/Contents/MacOS/Tailscale'
alias ui='cd ~/code/cxl-ui-components'
alias us='git submodule update --recursive'
alias vc="mvim -c 'call EditConflitedArgs()' \$(git diff --name-only --diff-filter=U --relative)"
alias vim='/Applications/MacVim.app/Contents/MacOS/Vim -g'
# used to refresh ssh connection for tmux
# http://justinchouinard.com/blog/2010/04/10/fix-stale-ssh-environment-variables-in-gnu-screen-and-tmux/
function r() {
if [[ -n $TMUX ]]; then
NEW_SSH_AUTH_SOCK=`tmux showenv|grep ^SSH_AUTH_SOCK|cut -d = -f 2`
if [[ -n $NEW_SSH_AUTH_SOCK ]] && [[ -S $NEW_SSH_AUTH_SOCK ]]; then
SSH_AUTH_SOCK=$NEW_SSH_AUTH_SOCK
fi
fi
}
function link-packages() {
for dir in {nuxt,vuetify}/packages/*; do
# echo "$dir";
cd "$dir";
npm link;
cd -;
done
}