nice terminal starting script

This commit is contained in:
Adrian Amaglio 2022-02-26 17:06:53 +01:00
parent 216aa488d3
commit 862e50a6e0

3
term Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
cd "$(readlink -f "/proc/$(pgrep -P $(xdotool getwindowpid "$(xdotool getactivewindow)"))/cwd")" &>/dev/null || cd "$HOME"
exec st "${SHELL:-bash}"