-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.shortcuts.sh
executable file
·68 lines (56 loc) · 1.95 KB
/
.shortcuts.sh
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
# Setting
export EDITOR='vim'
# Easier navigation
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
# Shortcuts - Navigation
alias d="cd ~/Desktop"
alias pdev="cd /Users/$(whoami)/Desktop/Personal_Dev"
alias dr="cd /Users/$(whoami)/Google_Drive"
alias o="open ."
alias mk="mkdir"
# Work navigation and shortcuts
alias dev="cd /Users/$(whoami)/Desktop/DevWork"
alias dRestart="osascript -e 'quit app \"Docker\"'; open -a Docker"
# Switch karabiner files
alias lkeys="cp ~/.config/karabiner/karabiner-no-key.json ~/.config/karabiner/karabiner.json"
alias dkeys="cp ~/.config/karabiner/karabiner-desktop.json ~/.config/karabiner/karabiner.json"
# Work shortcuts
alias bigmac='sudo launchctl unload /Library/LaunchDaemons/com.mcafee.*'
alias killMc='/usr/local/McAfee/fmp/bin/fmp stop'
alias startMc='/usr/local/McAfee/fmp/bin/fmp start'
alias vac="wine C:/\\Murexapp/\\MxwClt.exe /remote /program:vac"
# Git shortcuts
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit -m'
alias gd='git diff'
alias go='git checkout '
alias gk='gitk --all&'
alias gx='gitx --all'
alias gp='git pull'
alias gss='git stash'
alias gsp='git stash pop'
alias gPer='git config user.email "[email protected]"'
# Docker shortcuts
alias dcd='docker-compose down'
alias dcp='docker-compose pull'
alias dcu='docker-compose up'
alias dfRun="dcd; dcp; dcu;"
alias drmi='docker rmi $(docker images --filter "dangling=true" -q --no-trunc)'
alias drm='docker rm $(docker ps -qa --no-trunc --filter "status=exited")'
alias dKillAll='docker kill $(docker ps -q)'
alias dStart='dcd; dcp; dcu;'
alias dClear='drm; drmi;'
alias dockQUp="docker-compose down; rm -rf webapps/* && docker-compose up"
alias dockFUp="docker-compose down; docker-compose pull; rm -rf webapps/*; docker-compose up"
# Spelling corrections
alias got='git '
alias get='git '
# Shortcuts - Files
alias hosts='sudo vim /etc/hosts'
### Functions
. ~/scripts/functions.sh