41 lines
1.0 KiB
Bash
41 lines
1.0 KiB
Bash
### ALIASES ###
|
|
|
|
# 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'
|
|
|
|
# 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'
|
|
|
|
# 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'
|
|
|
|
# Show count of updates after the output of checkupdates
|
|
alias countupdates='checkupdates | tee >(wc -l)'
|
|
|
|
# Grep through updates listed by checkudpdates
|
|
alias grepupdates='checkupdates | grep'
|
|
|
|
# ix.io pastebin
|
|
alias ix="curl -F 'f:1=<-' ix.io"
|