# Basics
alias c "clear"
alias . "cd"
alias .. "cd .."
alias ... "cd ../../"
# Listing
alias ll "exa -l -g --icons"
alias l "exa -g --icons"
alias la "exa -g -a"
alias lla "ll -a"
# Tree view
alias lt "l --tree --level=1"
alias ltt "l --tree --level=2"
alias lttt "l --tree --level=3"
# Filter only dot files
alias dot "l -d .*"
alias dott "l -d .* --tree --level=2"
# Filter by extension
alias js "lt *.js"
alias json "lt *.json"
alias html "lt *.html"
# Filter name
alias flt "l | grep"
# Package manager
alias sp "sudo apt-get install"
alias spu "sudo apt-update"
alias spd "sudo apt-get remove -purge"
alias spc "sudo apt-get clean"
# vim/nvim
alias v "vim"
alias nv "nvim"
# Configs
alias fishconf "nvim ~/.config/fish/config.fish"
alias i3conf "nvim ~/.config/i3/config"
# Handling Files and Folders
alias del "rm -rf"
# Git
alias gch "git checkout"
alias gb "git checkout -b"
alias gc "git commit -m"
alias ga "git add ."
alias gms "git checkout master"
alias glist "git branch -l"
alias gi "git init"
vim ~/.config/fish/config.fish
# Add alias in config.fish
alias c="clear"
alias rmi="rm -i"
# This is equivalent to entering the following function:
function rmi --wraps rm --description 'alias rmi=rm -i'
rm -i $argv
end
# This needs to have the spaces escaped or "Chrome.app..."
# will be seen as an argument to "/Applications/Google":
alias chrome='/Applications/Google Chrome.app/Contents/MacOS/Google Chrome banana'