“Alias ​​de peces” Código de respuesta

Alias ​​de peces

# 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"
Agreeable Ant

Agregar alias con cáscara de pescado

# Define alias in shell
alias rmi "rm -i"

# Define alias in config file
alias rmi="rm -i"

# This is equivalent to entering the following function:
function rmi
    rm -i $argv
end

# Then, to save it across terminal sessions:
funcsave rmi
Pleasant Puma

crear alias de peces

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'
DJ Ultimate Disco Party

Respuestas similares a “Alias ​​de peces”

Preguntas similares a “Alias ​​de peces”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código