sunhat/defaults/bash/aliases

28 lines
583 B
Plaintext
Raw Normal View History

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