all repos — dotfiles @ d9063a1e2aaeab2e231b1e12ccb8f30413743923

my *nix dotfiles

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

 1alias vime="vim ~/.vimrc"
 2alias o="xdg-open"
 3alias gc="git commit -v -S"
 4alias gst="git status --short"
 5alias ga="git add"
 6alias gd="git diff --minimal"
 7alias gl="git log --oneline --decorate --graph"
 8alias vim="nvim"
 9alias k="kubectl"
10
11nvmon() {
12	source ~/.nvm/nvm.sh
13}
14
15envac() {
16	source .env/bin/activate
17}
18
19vpn() {
20	~/bin/vpnon.sh
21}
22
23dt() {
24    time.sh -n
25}
26
27ggp() {
28    [[ "$1" == "-f" ]] && {
29        git push "$(git remote show)" -f "$(git branch --show-current)"
30    }
31    git push "$(git remote show)" "$(git branch --show-current)"
32}
33
34ls() {
35    case "$OSTYPE" in
36        "darwin"*)
37            /bin/ls -G "$@"
38            ;;
39        *"bsd"*)
40            colorls -G "$@"
41            ;;
42    esac
43}
44
45m() {
46    case "$OSTYPE" in
47        "darwin"*)
48            s-nail "$@"
49            ;;
50        *"bsd"*)
51            nail "$@"
52            ;;
53    esac
54}