작은 바이트의 bash 별명과 함수

나는 내가 가장 좋아하는 bash 별명과 함수를 공유하고 싶다.보답으로 나는 단지 네가 평론에서 자신의 생각을 공유할 것을 요구할 뿐이다.
# Set up ls to use my preferences
alias ls='ls -l --color=auto --group-directories-first'

# Quickly add things to a todo-list. Usage: remember milk
alias remember="xargs -I TODO  echo \"[ ] TODO\" >> ~/remember <<<"

# I often find files that I don't know what to do with, but I don't want to delete. So I just move them to dev-hell. usage: devhell mysuperniftyfunctionthatiwillneveruse.js
alias devhell='mv -t ~/dev-hell/'

# I don't know how many times I typed this in before I made it an alias. Usage: pid vim
alias pid="ps -aux | grep "

# I use the following function and alias to jump back and forth between home and the current directory.
function home() {
        PREVIOUS=$(pwd)
        cd ~
}
alias back="cd $PREVIOUS"

# I use Arch Linux, and often download from AUR. Usage: aur chromium
alias aur="xargs -I FILENAME git clone https://aur.archlinux.org/FILENAME <<<"

좋은 웹페이지 즐겨찾기