-
Notifications
You must be signed in to change notification settings - Fork 1
/
aliasrc
86 lines (79 loc) · 2.82 KB
/
aliasrc
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/sh
# ALIAS #
# typo friendly #
alias :q=" exit"
alias :Q=" exit"
alias :x=" exit"
alias cd..="cd .."
alias ...="cd ../.."
alias cd...="cd ../.."
# intentionally escaped
alias lhome='ls -lAh --group-directories-first --color=auto $HOME'
alias ls="ls --group-directories-first --color=auto"
alias ll="$LS --group-directories-first -lgh --git"
alias lll="ll -a"
alias llll="lll"
# changed commands #
alias bye=" systemctl poweroff"
alias sbye=" sleep 10; systemctl poweroff"
alias byer=" systemctl reboot"
alias dir="dir --color=auto"
alias vdir="vdir --color=auto"
alias diff="diff --color=auto"
alias du="du -ch"
alias df="df -h"
alias ffmpeg="ffmpeg -hide_banner"
alias mkdir="mkdir -p -v"
alias dmesg="dmesg -HL"
alias grep="grep --color=auto"
alias egrep="egrep --color=auto"
alias fgrep="fgrep --color=auto"
alias dmenu="bemenu"
alias neofetch="fastfetch"
# safety measures #
alias cp="cp -i"
alias ln="ln -i"
alias mv="mv -i"
alias rm="rm -I"
alias chown="chown --preserve-root"
alias chmod="chmod --preserve-root"
alias chgrp="chgrp --preserve-root"
# new commands #
alias battery="acpi -b"
alias decompress="ouch decompress"
alias dsize="du -sh"
alias hist="history | fzf | wl-copy"
alias ka="killall" # requires an argument
alias openports="ss --all --numeric --processes --ipv4 --ipv6"
alias pp="ps -Af | grep" # requires an argument
alias yt="yt-dlp --add-metadata -ic -o '%(title)s.%(ext)s'"
alias yta="yt-dlp -x -f bestaudio/best --audio-format mp3 -o '%(title)s.%(ext)s'"
alias clndep='pacman -Qdtq | sudo pacman -R -' # intentionally escaped
alias clnrep="printf 'Cleaning uninstalled packages\n'; sudo paccache -ruk0; printf 'Leaving last version of installed packages\n'; sudo paccache -rk1"
# abbreviations (intentionally escaped) #
alias f='$FILE'
alias e='$EDITOR'
alias E='sudo -E $EDITOR'
alias v='$EDITOR'
alias p="sudo pacman"
# programs #
alias yay="yay --aur" # prevent partial upgrades
alias raposoflamejante="firefox &"
alias passarinhorelampjante="thunderbird &"
alias calcurse='calcurse -D $HOME/Documents/calcurse -C $HOME/.config/calcurse' # intentionally escaped
alias maxima="mmaxima"
alias ssync="rsnapshot full"
# alias g="git"
# use neovim for vim
alias vim="nvim"
alias vimdiff="nvim -d"
alias cop="gh copilot suggest -t shell"
alias cope="gh copilot explain"
alias authgovt="QT_QPA_PLATFORMTHEME=gtk3 eidguiV2"
# printer #
alias find_scanners="scanimage -L"
alias scan_pdf="scanimage --format=pdf --output-file out-$(date +%s).pdf --progress --resolution 300 -d 'pixma:MG3600_439892000000'"
alias scan_pdf_highest_quality="scanimage --format=pdf --output-file out-$(date +%s).pdf --progress --resolution 1200 -d 'pixma:MG3600_439892000000'"
# boxxy #
alias ansible="boxxy ansible"
alias npm="boxxy npm"