Skip to content

Commit 1c256a2

Browse files
committed
Added gitignore helper
1 parent 73ca175 commit 1c256a2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

helper-bash-functions.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
function mkcd() {
55
mkdir -p "$*" && cd "$_"
66
}
7+
8+
$ mkcd foo
79
```
810

911

@@ -12,5 +14,17 @@ function mkcd() {
1214
function myip() {
1315
ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}'
1416
}
17+
18+
$ myip
19+
```
20+
21+
## gitignore 쉽게 만들기
22+
23+
```bash
24+
function gi() {
25+
curl -L -s https://www.gitignore.io/api/$@
26+
}
27+
28+
$ gi intellij > .gitignore
1529
```
1630

0 commit comments

Comments
 (0)