1.增加ck.sh
LOCAL_DIR=$(pwd)
if [[ $LOCAL_DIR == *"src_path"* ]]; then
cd "${LOCAL_DIR%src_path*}src_path/linux/kernel/"
fi
2.vim ~/.bashrc,增加下面的
alias ck="source ~/bin/ck.sh"
1.增加ck.sh
LOCAL_DIR=$(pwd)
if [[ $LOCAL_DIR == *"src_path"* ]]; then
cd "${LOCAL_DIR%src_path*}src_path/linux/kernel/"
fi
2.vim ~/.bashrc,增加下面的
alias ck="source ~/bin/ck.sh"