~smlavine/dots

ref: 8c7adbeead47b28a3d8799b66003508a0ab6d3da dots/src/.config/bash/aliases -rw-r--r-- 1.6 KiB
8c7adbeeSebastian LaVine Revert "bash/aliases: Add --show-signature to gsh" 2 months ago
                                                                                
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
65
66
67
68
69
#!/bin/bash

# Source env_vars file.
[ -f ~/.config/bash/env_vars ] && source ~/.config/bash/env_vars

# Source personal aliases.
[ -f "$SMLSS_PERSONAL_ALIASES" ] && source "$SMLSS_PERSONAL_ALIASES"

# Alias definitions.


alias ls='ls --color=auto'
alias l='ls -CAF'
alias ll='ls -AlhF'

alias dir='dir --color=auto'
alias vdir='vdir --color=auto'

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'

alias info='info --vi-keys'

alias py='python3'

alias cl='clear; l'

# Sorted list of biggest files/directories in current directory. Only lists
# items in current directory -- that's what the grep does (removing anything
# with more than one directory level to it)
alias dh="du -h | sort -h | grep -v '.*/.*/.*'"

alias v='nvim'

alias dba="nvim $SMLSS_DIR/dots/bash/aliases"
alias dbe="nvim $SMLSS_DIR/dots/bash/env_vars"

alias cs="cd $SMLSS_DIR && pwd && git status && l"

alias ga='git add'
alias gb='git branch'
alias gc='git commit'
alias gd='git diff'
alias gk='git checkout'
alias gl='git log'
alias gp='git push'
alias gpa='git remote | xargs -I x git push x'
alias gpl='git pull'
alias gr='git restore'
alias gra="git status | grep '^[^a-z]*modified' | awk '{ print \$2 }' |
	xargs git restore"
alias gre='git remote -v'
alias grl='git reflog'
alias gs='git status'
alias gsl='git shortlog'
alias gsh='git show --format=fuller'
alias gt='git tag'

alias f='firefox'
alias z='zathura'

alias yay='yay --sudoloop' # prevents sudo timeout on long builds

# Sums up numbers on each line in standard input
alias count='paste -sd+ - | bc'

alias sp='sudo protonvpn'