5 lines
		
	
	
		
			175 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
		
			175 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| pid="$(xdotool getactivewindow getwindowpid)"
 | |
| [ -n "$pid" ] && cd "$(readlink -f "/proc/$(pgrep -P "$pid")/cwd")" &>/dev/null || cd "$HOME"
 | |
| exec st "${SHELL:-bash}"
 |