Another post about the excellent Fish Shell, this time about how to configure it to automatically start "Screen"
Using the simple and clean fish shell language, I whipped up this little function, which will start screen, reattaching to the old session if possible, and starting a new one instead if not:
function screen_auto_attach
if [ -z "$STY" ]
exec screen -dR
end
end
Then just call it from your .config/fish/config.fish shell with “screen_auto_attach”.

Recent Comments