forked from tobinvanpelt/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.linux
64 lines (58 loc) · 2 KB
/
profile.linux
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
# set PATH
PATH=/usr/local/bin:$PATH
PATH=/usr/local/share/npm/bin:$PATH
PATH=$HOME/.dot/bin:$PATH
PATH=$HOME/.local/bin:$PATH
export PATH
# set editors
export EDITOR=vim
export VISUAL=vim
# use nvim when possible - faster
alias vim="nvim"
alias vi="nvim"
#if [ -f ~/.bash_profile ]; then
#source ~/.bash_profile
#fi
# fzf vim plugin
export FZF_DEFAULT_COMMAND='rg --files --follow --hidden'
alias lsa='ls -lah' # l for list style, a for all including hidden, h for human readable file sizes
alias h='history' # Show history
alias c='clear' # Clear terminal
alias ..='cd ..' # Move up 1 dir
alias ...='cd ../..' # Move up 2 dirs
alias rbash=". ~/.bash_profile" # reloads bash profile
alias ebash='mate ~/.bashrc ~/.bash_aliases ~/.inputrc' # Open our bash config files in textmate.
alias ping='ping -c 5' # Limit command to ping the specified server only 5 times.
alias psc='ps ux' # Good overview of running processes.
alias fkill='kill -9' # For those hard to kill processes.
#######
# GIT #
#######
alias gs='git status'
alias GS='git status'
alias Gs='git status'
alias gS='git status'
alias pusho="git push origin"
alias pullo="git pull origin"
alias gd='git diff | mate'
alias gaa="git add --all"
alias gco='git checkout'
alias greset="git reset HEAD ."
alias gundo='git reset --soft HEAD^'
alias gpushup='git push --set-upstream origin'
alias gdc='git diff --cached'
# automatically stage all tracked files (including deleted ones)
alias adderall='git add -u .'
# git remove all removed tracked files
alias removeall='git rm $(git ls-files --deleted)'
# git link to origin
alias linkbranch='git branch -u origin'
# --no-pager is underrated
alias glnp="git --no-pager log --oneline -n30"
alias gitpretty="git log --graph --oneline --decorate --all"
alias gitprettyall="git log --oneline --decorate --all -- graph --stat"
alias gfiles="git show --pretty='' --name-only $1"
alias gitstat="git log --stat"
alias gitchangelog="git log --oneline --no-merges ${1}..HEAD"
alias gittopcontrib="git shortlog -ns"
alias gitdiff="git difftool $1"