Skip to content

Commit a02ebbb

Browse files
committed
first commit
0 parents  commit a02ebbb

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.PHONY: fun.sh
2+
fun.sh:
3+
grep ' ' README.md | sed -e 's/ //' > fun.sh

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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)

fun.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dir() {
2+
mkdir -p $1 && cd $_
3+
}

0 commit comments

Comments
 (0)