all repos — dotfiles @ 5f5761bb63ecf770eb02f00e6466f78a0a568436

my *nix dotfiles

bash/.bashrc.d/90-aliases.bash (view raw)

 1alias o="xdg-open"
 2alias gc="git commit -v -S"
 3alias gst="git status --short"
 4alias ga="git add"
 5alias gd="git diff --minimal"
 6alias gl="git log --oneline --decorate --graph"
 7alias vim="nvim"
 8alias k="kubectl"
 9
10nvmon() {
11	source ~/.nvm/nvm.sh
12}
13
14envac() {
15	source .env/bin/activate
16}
17
18vpn() {
19	~/bin/vpnon.sh
20}
21
22dt() {
23    time.sh -n
24}
25
26ggp() {
27    [[ "$1" == "-f" ]] && {
28        git push "$(git remote show)" -f "$(git branch --show-current)"
29    }
30    git push "$(git remote show)" "$(git branch --show-current)"
31}
32
33gpl() {
34    git pull -r "$(git remote show)" "$(git branch --show-current)"
35}
36
37gpm() {
38    git pull -r origin master
39}
40
41gco() {
42    [[ "$1" == "" ]] && return 1
43
44    git rev-parse --verify "$1" &> /dev/null
45    if [ $? -eq 0 ]; then
46        git checkout "$1"
47    else
48        git checkout -b "$1"
49    fi
50}
51
52ls() {
53    case "$OSTYPE" in
54        "linux"*)
55            /bin/ls "$@"
56            ;;
57        "darwin"*)
58            /bin/ls -G "$@"
59            ;;
60        *"bsd"*)
61            colorls -G "$@"
62            ;;
63    esac
64}
65
66m() {
67    case "$OSTYPE" in
68        "darwin"*)
69            s-nail "$@"
70            ;;
71        *"bsd"*)
72            nail "$@"
73            ;;
74    esac
75}