Skip to content

Commit

Permalink
add .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghao7 committed Apr 8, 2019
1 parent 0a86ef9 commit 3bd021e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.swp
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -28,4 +30,4 @@ where options include:
-rf remove fake dirs
-R remove all dirs

```
```
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function install_bin {
rm sd
fi
ln -s $dir/sd.sh sd
cd $dir
}

check_bin
Expand Down
8 changes: 1 addition & 7 deletions sd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 3bd021e

Please sign in to comment.