summaryrefslogtreecommitdiffstats
path: root/root
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-09-11 11:49:26 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2023-09-11 11:49:26 +0200
commit45d2df3d103bebc0ac6f28ed3de15dd080e6bc20 (patch)
tree464342c0fa702a5518db482d7eab9e3f7cae66fa /root
parentmerge b+c make.conf (diff)
downloadn-45d2df3d103bebc0ac6f28ed3de15dd080e6bc20.tar
n-45d2df3d103bebc0ac6f28ed3de15dd080e6bc20.tar.gz
n-45d2df3d103bebc0ac6f28ed3de15dd080e6bc20.tar.bz2
n-45d2df3d103bebc0ac6f28ed3de15dd080e6bc20.tar.lz
n-45d2df3d103bebc0ac6f28ed3de15dd080e6bc20.tar.xz
n-45d2df3d103bebc0ac6f28ed3de15dd080e6bc20.tar.zst
n-45d2df3d103bebc0ac6f28ed3de15dd080e6bc20.zip
Diffstat (limited to 'root')
-rw-r--r--root/.bash_aliases11
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'