-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
67 lines (49 loc) · 1.77 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
56
57
58
59
60
61
62
63
64
65
66
67
# ls command (I use eza, an ls alt)
alias ls='eza --all --grid --git --time-style iso'
alias la='eza --all --grid --git --time-style iso'
alias ll='eza --all --long --grid --git --time-style iso'
alias lt='eza --all --long --git --time-style iso --tree'
# cd command behavior
alias ..='cd ..'
up() {
cd $(printf "%0.s../" $(seq 1 "$1"))
}
# Create parent directories on demand
alias mkdir='mkdir -pv'
# Colorize diff output
alias diff='colordiff'
# Mount command Pretty and readable
alias mount='mount | column --table --keep-empty-lines'
# date and time
alias now='date +"%T"'
alias datetime='date +"%d-%m-%Y: %T"'
# networking
alias ports='ss -tupln'
alias ipa='ip address show'
alias ipas='ip address show'
alias wget='wget --no-verbose --continue --show-progress --no-dns-cache --content-disposition'
# safety nets
alias rm='rm -I --preserve-root'
# confirmation
alias mv='mv --interactive'
alias cp='cp --archive --interactive --update'
alias ln='ln --interactive --verbose'
# Parenting changing perms on
alias chown='chown --preserve-root'
alias chmod='chmod --preserve-root'
alias chgrp='chgrp --preserve-root'
# neofetch defaults
alias neofetch='neofetch --title_fqdn on --speed_shorthand on --cpu_temp C --memory_percent on --config none --no_config'
# fzf defaults
alias fzf='fzf --color 16'
# yt-dlp defaults
alias yt-dlp='yt-dlp --no-restrict-filenames --mtime --quiet --progress --prefer-free-formats --write-subs --netrc --audio-quality 0 --embed-metadata --embed-thumbnail --xattrs'
# gallery-dl defaults
alias gallery-dl='gallery-dl --mtime date'
# radeontop defaults
alias radeontop='radeontop --color --ticks 180 --transparency'
# shellcheck with color
alias shellcheck='shellcheck --color=always'
# ps aliases
alias ps='ps -lt'
alias pst='ps axjf'