File tree 3 files changed +40
-0
lines changed
3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ .PHONY : fun.sh
2
+ fun.sh :
3
+ grep ' ' README.md | sed -e ' s/ //' > fun.sh
Original file line number Diff line number Diff line change
1
+ # dir
2
+
3
+ > create a folder and enter into it
4
+
5
+ [ ![ KLP] ( https://img.shields.io/badge/kiss-literate-orange.svg )] ( http://g14n.info/kiss-literate-programming )
6
+
7
+ ## Installation
8
+
9
+ Just copy and paste the ` dir ` function below in your profile or do somwthing like
10
+
11
+ ``` bash
12
+ mkdir -p ~ /.bash
13
+ cd ~ /.bash
14
+ git clone git://github.com/fibo/dir.git
15
+ echo " source ~/.bash/dir/fun.sh" >> ~ /.bashrc
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ Simple as
21
+
22
+ ``` bash
23
+ dir /path/to/my/folder
24
+ ```
25
+
26
+ ## Annotated source
27
+
28
+ dir() {
29
+ mkdir -p $1 && cd $_
30
+ }
31
+
32
+ ## License
33
+
34
+ [ MIT] ( http://g14n.info/mit-license )
Original file line number Diff line number Diff line change
1
+ dir () {
2
+ mkdir -p $1 && cd $_
3
+ }
You can’t perform that action at this time.
0 commit comments