arch-dots/.config/zsh/aliases.zsh

38 lines
851 B
Bash
Raw Normal View History

2024-06-20 17:26:20 +02:00
#!/bin/sh
# Check ssd state
alias ssd-check="sudo smartctl -a /dev/nvme0n1 | grep -E -- 'Data Units Read:|Data Units Written:|Percentage Used:'"
# Add colors to regular commands
alias grep='grep --color=auto'
alias cp='cp -iv'
alias rm='rm -iv'
alias mkd='mkdir -pv'
alias less='less -R'
# neovim
alias vi='nvim'
# nnn
alias nnn='LC_COLLATE="C" nnn -xeaiH'
# Human readable + better output
alias df='df -h -x devtmpfs -x tmpfs -x usbfs -x loop'
alias free='free -mht'
# nicer ps
alias ps='ps auxf'
# continue download by default
alias wget='wget -c'
# Just cause I can't remember the command at all
alias update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg'
# Quickly see the hogger in the directory
alias dust='du -hd1 | sort -hr | sed "s/.\///g" | sed "/\.$/d"'
alias b='buku -p'
# cryptography
alias rot13="tr 'A-Za-z' 'N-ZA-Mn-za-m'"