Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Fish alias

# 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"
 
PREVIOUS NEXT
Tagged: #Fish #alias
ADD COMMENT
Topic
Name
9+6 =