2019-05-16 03:45:06 +00:00
|
|
|
### ALIASES ###
|
|
|
|
|
2020-10-27 03:10:32 +00:00
|
|
|
# Nag on overwrite, and show your work
|
|
|
|
alias mv='mv -iv'
|
|
|
|
|
|
|
|
# Recurse by default, nag on overwrite, and show your work
|
|
|
|
alias cp='cp -riv'
|
|
|
|
|
|
|
|
# Create parents if necessary, and show your work
|
|
|
|
alias mkdir='mkdir -vp'
|
|
|
|
|
2021-06-24 01:24:48 +00:00
|
|
|
# Show your work
|
|
|
|
alias rm='rm -v'
|
|
|
|
|
2019-05-16 03:45:06 +00:00
|
|
|
# Colorize all `ls` output:
|
|
|
|
alias ls='ls -AF --color=auto'
|
|
|
|
|
|
|
|
# Map "la" to `ls -la`
|
|
|
|
alias la='ls -laFh --color=auto'
|
|
|
|
|
|
|
|
# Colorize `grep` output
|
|
|
|
alias grep='grep --color=auto'
|
|
|
|
|
|
|
|
# Change layout of lsblk to include FSTYPE and remove MAJ:MIN, RM, and RO collumns.
|
|
|
|
alias lsblk='lsblk -o NAME,FSTYPE,SIZE,TYPE,MOUNTPOINT'
|
|
|
|
|
|
|
|
# Always use sudo when using nmap.
|
|
|
|
alias nmap='sudo -E nmap'
|
|
|
|
|
2020-07-03 01:11:55 +00:00
|
|
|
# Output only the UUID of the target device
|
|
|
|
alias printuuid='blkid -o value -s UUID'
|
|
|
|
|
|
|
|
# Output only the PARTUUID of the target device
|
|
|
|
alias printpartuuid='blkid -o value -s PARTUUID'
|
2020-10-22 15:43:15 +00:00
|
|
|
|
2021-03-13 23:23:34 +00:00
|
|
|
# Show count of updates after the output of checkupdates
|
|
|
|
alias countupdates='checkupdates | tee >(wc -l)'
|
2020-10-27 03:04:16 +00:00
|
|
|
|
2020-11-03 19:58:54 +00:00
|
|
|
# Grep through updates listed by checkudpdates
|
|
|
|
alias grepupdates='checkupdates | grep'
|