sunhat/defaults/bash/aliases
2024-06-10 14:12:05 -05:00

38 lines
1006 B
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 rnr="ranger"
alias startsunshine="systemctl --user restart sunshine.service"
alias jump="wine /home/gib/.wine/drive_c/Program\ Files/Phase\ Five\ Systems/Jump\ Desktop/JumpClient.exe & disown"
alias n.="nvim ."
# 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 g='git'
# 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"