sunhat/defaults/bash/aliases
2025-01-01 11:02:03 -06:00

58 lines
1.7 KiB
Plaintext

# Aliases I like
alias update="sudo dnf update -y && flatpak update -y"
alias install="sudo dnf install -y"
alias letscode="cd ~/Documents/Code && ranger ."
alias gtext="gnome-text-editor"
alias :q="exit"
alias :wq="exit"
alias cdcode="cd ~/Documents/Code"
alias cdsun="cd ~/.local/share/sunhat"
alias rnr="ranger"
alias startsunshine="systemctl --user restart sunshine.service"
alias sourcerc="source ~/.bashrc"
alias john="~/.local/share/sunhat/packages/JohnTheRipper/run/john"
alias c="clear"
alias shutdown="systemctl poweroff"
alias ts="~/.config/hypr/scripts/snapshot.sh"
alias wifi="mctui"
alias update-grub="sudo grub-mkconfig -o /etc/grub2-efi.cfg"
# File system
alias ls='eza -lh --group-directories-first --icons'
alias lsa='ls -a'
alias lt='eza --tree --level=2 --long --icons --git'
alias lta='lt -a'
alias ff="fzf --preview 'batcat --style=numbers --color=always {}'"
# Directories
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
# Tools
alias n='nvim'
alias n.="nvim ."
alias nlc="nvim lc"
alias g='git'
alias watchsmi="watch -n 3 nvidia-smi"
# Git
alias gcm='git commit -m'
alias gcam='git commit -a -m'
alias gcad='git commit -a --amend'
# Compression
compress() { tar -czf "${1%/}.tar.gz" "${1%/}"; }
alias decompress="tar -xzf"
# ML4W Apps
#alias ml4w='com.ml4w.welcome'
#alias ml4w-settings='com.ml4w.dotfilessettings'
#alias ml4w-hyprland='com.ml4w.hyprland.settings'
#alias ml4w-options='ml4w-hyprland-setup -m options'
#alias ml4w-sidebar='ags toggle sidebar'
#alias ml4w-diagnosis='~/.config/hypr/scripts/diagnosis.sh'
#alias ml4w-hyprland-diagnosis='~/.config/hypr/scripts/diagnosis.sh'
#alias ml4w-qtile-diagnosis='~/.config/ml4w/qtile/scripts/diagnosis.sh'
#alias ml4w-update='~/.config/ml4w/update.sh'