diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/README.md b/README.md index b78adad..820761d 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ In my daily work, I often have to switch among lots of directories in shell: cd `sudo ./install.sh` to install **sd** to your /usr/local/bin or /usr/bin +Please make sure install.sh and sd.sh are in the same directory. + ### Usage After installation, type `sd -h` to see helping entries @@ -28,4 +30,4 @@ where options include: -rf remove fake dirs -R remove all dirs -``` \ No newline at end of file +``` diff --git a/install.sh b/install.sh index 096d30c..04f8bc1 100755 --- a/install.sh +++ b/install.sh @@ -39,6 +39,7 @@ function install_bin { rm sd fi ln -s $dir/sd.sh sd + cd $dir } check_bin diff --git a/sd.sh b/sd.sh index 2a4c667..ae28540 100755 --- a/sd.sh +++ b/sd.sh @@ -100,13 +100,7 @@ function sel_dir() { fi done - #alias 666="cd $sel_dir" - shopt -s expand_aliases - shopt expand_aliases - alias 666="cd aa/bbb" - source ~/.bashrc - 666 - #cd $sel_dir + echo "cd $sel_dir" } function rem_all_dirs() {