-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases
31 lines (27 loc) · 1.03 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
HISTSIZE=100000
HISTFILESIZE=100000
alias ..='cd ..'
alias dl="cd ~/Downloads"
alias docs='cd ~/txt'
alias fakt="cd ~/Documents/faktury/2024"
alias hosts='sudo vim /etc/hosts'
alias la='ls -Al'
alias ll='ls --color -lX'
alias l='ls --color'
alias ls='ls --color'
alias lx='xdg-open .'
alias var='vim ~/Documents/var.diff'
alias vim='vim -p'
alias which='type -a'
alias x=exit
alias g="git"
alias gamend="git commit -a --amend --no-edit && git push --force-with-lease --force-if-includes"
alias gche='git cherry-pick'
alias glist='git stash list'
alias glog="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' -6"
alias graph="git log --oneline --graph"
alias greb="git pull --rebase origin develop"
alias noedit="git commit -a --amend --no-edit"
function gg() {
[ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ] && git grep -in "$@" || rg -i "$@"
}