Search
 
SCRIPT & CODE EXAMPLE
 

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"
Comment

add fish alias

vim ~/.config/fish/config.fish

# Add alias in config.fish

alias c="clear"
Comment

create fish alias

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'
Comment

PREVIOUS NEXT
Code Example
Shell :: Microsoft.PowerShell_profile.ps1 
Shell :: create jar with maven commandline 
Shell :: mv all files in directory to parent 
Shell :: install passport local 
Shell :: superclass mismatch for class Command 
Shell :: login to github terminal 
Shell :: bash ls show link 
Shell :: git clone with subrepos 
Shell :: unmount linux disk 
Shell :: aws extend volume ubuntu 
Shell :: linux change azert 
Shell :: vscode safe mode 
Shell :: install kind kubernetes 
Shell :: sudo shutdown 
Shell :: download brew 
Shell :: Push a New Branch To Remote Repository in git command 
Shell :: grafana docker 
Shell :: flutter run all devices 
Shell :: set git origin url 
Shell :: install cloudinary storage command 
Shell :: install go 
Shell :: @react-navigation/stack install npm 
Shell :: make shortcut folder in htdocs 
Shell :: tailwind vite 
Shell :: create and copy folder in ubuntu 
Shell :: linux back cd 
Shell :: bash how to delete ^M at the end of every line 
Shell :: python not found. install python-is-python3 
Shell :: View network transfer RX / TX (Linux) 
Shell :: install cuda in ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =