-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
55 lines (47 loc) · 1.72 KB
/
.aliases
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
# fixing common commands, ls etc
alias la='ls -A'
alias ll='ls -AlF'
alias ii='explorer'
alias now='echo $(curl -s "http://www.timeapi.org/gmt/now?\a%20\b%20\d%20\k:\M:\S%20\Y")'
alias joke='curl https://icanhazdadjoke.com/ && echo'
alias tct='tiny-care-terminal'
# git aliases
alias gs='git status -sb'
alias gst='git stash'
alias gd='git diff'
alias ga='git add'
alias gpu='git push'
__git_complete gpu _git_push
alias gpl='git pull'
alias gdc='git diff --cached'
alias gdt='git difftool'
alias gc='git commit'
alias gca='git commit -a'
alias gb='git branch'
alias gco='git checkout'
__git_complete gco _git_checkout
alias gl='git lg -15'
alias gll='git lg'
alias gla='git lg --all'
# docker aliases
alias dc='docker-compose'
alias dcu='docker-compose up'
alias dcub='docker-compose up --build'
alias dcd='docker-compose down'
alias dcs='docker-compose stop'
alias dcr='docker-compose restart'
alias dps="docker ps --format '{{.ID}} ~ {{.Names}} ~ {{.Status}} ~ {{.Image}}'"
# applications (windows)
if [ "$(~/bin/getos)" = "Windows" ]; then
alias st='launchexe "C:\Program Files (x86)\Atlassian\SourceTree\SourceTree.exe"'
alias vs12='launchexe "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe"'
alias vs13='launchexe "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe"'
alias vs15='launchexe "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe"'
alias gx='launchexe "C:\Program Files (x86)\GitExtensions\GitExtensions.exe"'
alias gk='launchexe "C:\Users\ryan.morrin\AppData\Local\gitkraken\app-1.9.3\gitkraken.exe"'
alias killssh='taskkill //f //im ssh-agent.exe'
fi
# helper functions
function launchexe() {
(nohup "$@" &>/dev/null &)
}