好奇的探索者,理性的思考者,踏实的行动者。
Table of Contents:
alias
查看所有alias
Before beginning, create a file called ~/.bash_alias:
$ touch ~/.bash_aliases
Then, make sure that this code appears in your ~/.bashrc file:
if [ -e $HOME/.bash_aliases ]; then
source $HOME/.bash_aliases
fi
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias cmake='cmake3'
alias ll="ls -lha"
## get rid of command not found ##
alias cd..='cd ..'
## a quick way to get out of current directory ##
alias ..='cd ..'
alias ...='cd ../../../'
alias ....='cd ../../../../'
alias .....='cd ../../../../'
alias .4='cd ../../../../'
alias .5='cd ../../../../..'
alias note='cd /mnt/d/project/other/my-blog'
vim ~/.config/fish/config.fish
然后在alias复制到里面