-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_aliases
55 lines (44 loc) · 1.39 KB
/
.bash_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
# Interactive operation...
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
export LS_OPTIONS='--color=auto'
if [ -x "$(command -v dircolors)" ]; then
eval "$(SHELL=${SHELL:-/bin/bash} dircolors)"
else
#export LS_OPTIONS=''
export CLICOLOR=1
fi
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -lh'
alias l='ls $LS_OPTIONS -lhA'
# Default to human-readable figures
alias df='df -h'
alias du='du -h'
# Misc
alias less='less -R' # RAW control characters
alias whence='type -a' # where, of a sort
alias grep='grep --color=auto' # show differences in colour
alias egrep='egrep --color=auto' # show differences in colour
alias fgrep='fgrep --color=auto' # show differences in colour
alias rsynca='rsync -avzP'
alias h='history'
alias please='sudo $(fc -nl -1)'
alias bat="batcat"
alias sshagentstart='eval `ssh-agent -s` && ssh-add'
# Git
alias gg='git context-graph --first-parent --pretty=graph-dyn'
alias gga='git context-graph --first-parent --pretty=graph-dyn --all'
alias ggp='git-context-graph-page'
alias ggs='git-graph-status-page'
alias lg='lazygit'
# Git - mu-repo
alias gm='git mu'
alias gmst='git mu status --short --branch'
alias gmr='git mu register'
alias gml='git mu list'
alias gmg='git mu group'
alias gmgs='git mu group switch'
# Docker
alias dc='docker compose'
alias lzd='lazydocker'