Fix launch_alacritty script
This commit is contained in:
		
							parent
							
								
									369625b965
								
							
						
					
					
						commit
						a2cfb6637d
					
				|  | @ -14,9 +14,9 @@ if [ $RUNNING_SSH == true ]; then | ||||||
|     PORT=$(ss -tnpa | grep ssh | grep "pid=$CHILD_PID" | awk '{ print $4 }' | grep -o '[0-9]*$') |     PORT=$(ss -tnpa | grep ssh | grep "pid=$CHILD_PID" | awk '{ print $4 }' | grep -o '[0-9]*$') | ||||||
|     alacritty -e ssh $CLIENT -t "cd \"\$(readlink -e /proc/\$(cat /tmp/ssh_session_$PORT)/cwd)\"; zsh --login" |     alacritty -e ssh $CLIENT -t "cd \"\$(readlink -e /proc/\$(cat /tmp/ssh_session_$PORT)/cwd)\"; zsh --login" | ||||||
| else | else | ||||||
|     if [ $(ps -p $1 -o comm=) == "alacritty" ]; then |     if [ "$(ps -p $1 -o comm=)" == "alacritty" ]; then | ||||||
|         CWD=$(readlink -e /proc/$CHILD_PID/cwd) |         CWD=$(readlink -e /proc/$CHILD_PID/cwd) | ||||||
|         if [ $CWD != "" ]; then |         if [ "$CWD" != "" ]; then | ||||||
|             alacritty --working-directory "$CWD" |             alacritty --working-directory "$CWD" | ||||||
|         else |         else | ||||||
|             alacritty |             alacritty | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue