File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ COLOR_LIGHT_CYAN=$(tput sgr0 && tput bold && tput setaf 6)
1414COLOR_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
1922pathadd () {
2023 newelement=${1%/ }
@@ -265,13 +268,20 @@ if [ -f ~/.git-completion.bash ]; then
265268 . ~ /.git-completion.bash
266269fi
267270
268- # Docker logs for conatiner with name
271+ # Docker logs for conatiner by name
269272dlog () {
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+
275285deadbash () {
276286 local iid=` docker images | grep $1 | awk ' {print $3}' `
277287 echo " docker run -it ${iid} /bin/bash"
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments