依序輸入下列命令
cd ~
wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
echo ". git-completion.bash" >> .bashrc
#!/bin/bash | |
if [ $#=1 ];then | |
message="change something" | |
else | |
message=$2 | |
fi | |
if [ "x$1" = "x" ];then | |
echo "error:You can't miss [file name]" | |
else |
alias ls='ls -shC1 --color=auto' | |
alias tree='tree -Cha' | |
alias home='cd ~' | |
alias bin='cd ~/bin' | |
alias code='cd ~/git' | |
alias rm='rm -r' | |
alias cp='cp -r' | |
alias pwd=dirs | |
alias r='vi README.*' | |
alias ..='cd ../' |
依序輸入下列命令
cd ~
wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
echo ". git-completion.bash" >> .bashrc