sunhat/defaults/bash/aliases

25 lines
531 B
Plaintext
Raw Normal View History

2024-05-25 15:52:00 -05:00
# File system
alias ls='eza -lh --group-directories-first --icons'
alias lt='eza --tree --level=2 --long --icons --git'
alias ff="fzf --preview 'batcat --style=numbers --color=always {}'"
2024-05-26 12:59:30 -05:00
# Directories
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
2024-05-25 15:52:00 -05:00
# Tools
alias n='nvim'
alias g='git'
alias d='docker'
alias bat='batcat'
# Git
alias gcm='git commit -m'
alias gcam='git commit -a -m'
alias gcad='git commit -a --amend'
2024-05-26 16:24:02 -05:00
# Compression
compress() { tar -czf "${1%/}.tar.gz" "${1%/}"; }
alias decompress="tar -xzf"