Skip to content

Commit 8158b08

Browse files
committed
Merge branch 'master' of github.com:AndrewRayCode/configs
2 parents 927fe62 + 62e0616 commit 8158b08

2 files changed

Lines changed: 31 additions & 3 deletions

File tree

.bashrc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ COLOR_LIGHT_CYAN=$(tput sgr0 && tput bold && tput setaf 6)
1414
COLOR_RESET=$(tput sgr0)
1515

1616
# shellcheck disable=SC1091
17-
source ~/.iterm2_shell_integration.bash
17+
ITERM_SHELL_INTEGRATION="${HOME}.iterm2_shell_integration.bash"
18+
if [ -f "$ITERM_SHELL_INTEGRATION" ]; then
19+
source "$ITERM_SHELL_INTEGRATION"
20+
fi
1821

1922
pathadd() {
2023
newelement=${1%/}
@@ -265,13 +268,20 @@ if [ -f ~/.git-completion.bash ]; then
265268
. ~/.git-completion.bash
266269
fi
267270

268-
# Docker logs for conatiner with name
271+
# Docker logs for conatiner by name
269272
dlog() {
270273
local cid=`docker ps -a | grep $1 | awk '{print $1}'`
271274
echo "docker logs -f ${cid}"
272275
docker logs -f ${cid}
273276
}
274277

278+
# Start shell on container by name
279+
dbash() {
280+
local cid=`docker ps -a | grep $1 | awk '{print $1}'`
281+
echo "docker exec -it ${cid} /bin/sh"
282+
docker exec -it ${cid} /bin/sh
283+
}
284+
275285
deadbash() {
276286
local iid=`docker images | grep $1 | awk '{print $3}'`
277287
echo "docker run -it ${iid} /bin/bash"

code/snippets/javascript.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,23 @@
1414
"}"
1515
],
1616
"description": "For Loop"
17-
}
17+
},
18+
"Console Log String": {
19+
"prefix": "c,",
20+
"body": [
21+
"console.log('$1', ${1});",
22+
],
23+
"description": "Console log string"
24+
},
25+
"React Constructor": {
26+
"prefix": "rc",
27+
"body": [
28+
"constructor(props, context) {",
29+
" super(props, context);",
30+
" $0",
31+
"}",
32+
],
33+
"description": "Console Log"
34+
},
35+
1836
}

0 commit comments

Comments
 (0)