diff options
Diffstat (limited to 'root')
-rw-r--r-- | root/.bash_aliases | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/root/.bash_aliases b/root/.bash_aliases index 07114ac..806d572 100644 --- a/root/.bash_aliases +++ b/root/.bash_aliases @@ -62,3 +62,14 @@ then alias binwalk="binwalk --run-as=root" fi PATH=$PATH:~/.local/bin +function d () { + w=`xwininfo | grep "Window id" | sed -e 's/.*"\(.*\)"/\1/'` + r=`cut -d\ -f1 <<<$w | sed s/://` + if [ `whoami`@`hostname` = $r ] + then + cd `cut -d\ -f2 <<<$w | sed s,~,$HOME,` + else + ssh -t $r "cd `cut -d\ -f2 <<<$w`; exec bash -i" + fi +} +alias de='docker exec -it `docker ps | tail -n1 | cut -d\ -f1` /bin/bash' |