git.cweiske.de
/
paste
/
374.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a217472
)
(no commit message)
master
author
Christian Weiske
<cweiske@cweiske.de>
Tue, 17 Mar 2020 10:07:44 +0000
(11:07 +0100)
committer
www-cweiske
<www-cweiske@ahso3>
Tue, 17 Mar 2020 10:07:44 +0000
(11:07 +0100)
setup.sh
patch
|
blob
|
history
diff --git
a/setup.sh
b/setup.sh
index a52a672daa12c595b0fedf7686fadba0741aaa5c..55ac215717954ea18b3ec9f8c283126ba0112162 100644
(file)
--- a/
setup.sh
+++ b/
setup.sh
@@
-1,3
+1,7
@@
function dbash() { docker exec -it "$1" bash; }
\r
_dbash() { cur="${COMP_WORDS[COMP_CWORD]}"; __docker_complete_containers_running; }
\r
complete -F _dbash dbash
\r
+
\r
+# automatically login as www-data user
\r
+function dbashwww() { docker exec -it "$1" su -s /bin/bash www-data; }
\r
+complete -F _dbash dbashwww
\r