Date: Sun, 03 Mar 2024 22:03:59 +0000 From: Simon Connah <simon.n.connah@protonmail.com> To: Daniel Tameling <tamelingdaniel@gmail.com> Cc: questions@freebsd.org Subject: Re: Remote development with neovim, tmux and SSH from macOS? Message-ID: <jVlT24-_PVJVyNv6ON4rohRMutMiiJswFlXpdnWkXPdaGIa54828G-k5Rxm2RvNEwNGIhgtnVe9LK5mA3ugDuwyl834kseSWt4PDi-VwXvQ=@protonmail.com> In-Reply-To: <ZeLXqyU0lmPLXwOt@mail.gmail.com> References: <6-vIFoipZvllLfrAwkIMmQ72B1mFYwcw7IRtdlG0JxM_2y5iN2WPWwMF1PVY8YWHw4jrx270Rg3PlA2qaVeJIPyudjoOhd-kdGd1Bt0M7m4=@protonmail.com> <ZeLXqyU0lmPLXwOt@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------38caf39ace4d60f7a7026a3e66934f2605a8aa6f25326f354556dd045b316dfc Content-Type: multipart/mixed;boundary=---------------------fa51029d277022002ce23e929cb8ffc6 -----------------------fa51029d277022002ce23e929cb8ffc6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain;charset=utf-8 On Saturday, 2 March 2024 at 07:39, Daniel Tameling <tamelingdaniel@gmail.= com> wrote: > = > = > On Wed, Feb 28, 2024 at 04:30:22PM +0000, Simon Connah wrote: > = > > I've just set up a FreeBSD server and was curious about the best pract= ices for when it comes to developing on FreeBSD? I have a Mac Studio but I= 'm not used to neovim or tmux at all and I get the feeling that learning t= hem is going to take some time. > > = > > What do you use for developing on FreeBSD servers? Unfortunately I can= 't install FreeBSD on my machine (well I can but it would be in VMware Fus= ion Pro). > > = > > Looking forward to hearing what other people do. > > = > > Simon. > = > = > I generally use emacs and at work I use tmux for working on remote > servers. The main reason is that I can detach from the session > shutdown my laptop and continue right where I left off the next day. > I don't use any plugins or have much in my .tmux.conf. I remapped > splitting to Prefix+h and Prefix+v, and have some shortcuts for easier > movement: > = > # more intuitive keybindings for splitting > unbind % > bind h split-window -v > unbind '"' > bind v split-window -h > = > # switch windows using Alt-arrow without prefix > bind -n M-Left select-window -t:-1 > bind -n M-Right select-window -t:+1 > # switch panes using Shift-arrow without prefix > bind -n S-Left select-pane -L > bind -n S-Right select-pane -R > bind -n S-Up select-pane -U > bind -n S-Down select-pane -D > # move window left and right with Alt-Shift-arrow > bind-key -n M-S-Left swap-window -d -t -1 > bind-key -n M-S-Right swap-window -d -t +1 > = > The rest is just stuff you find in every tmux setup guide. > = > = > Just throwing out two options of what I have seen other people do: > = > 1) Mount remote folders locally with sshfs and then use your favourite > editor on the machine itself. > = > 2) Connect with x2go to the remote machine and run a desktop > environment on the remote machine. > = > I don't know whether these two work on MacOS or how difficult they are > to setup. > = > -- > Best regards, > Daniel Thank you very much! I'll have a play around with tmux. From what I can te= ll you can have sessions on multiple virtual servers and just switch betwe= en them with a couple of key presses? Sounds good to me. -----------------------fa51029d277022002ce23e929cb8ffc6-- --------38caf39ace4d60f7a7026a3e66934f2605a8aa6f25326f354556dd045b316dfc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wnUEARYKACcFgmXk874JkFrvKC74ta6lFiEEXOYF9uqFRn4815bYWu8oLvi1 rqUAAA3QAQDwNrwnFlHtj8jABlITVhhgr2O9FlOjTgX0LvpgbDQn2QD/Y7x9 0HRGI6l+6+3sJzOXwIe/+aj3KoLshhY6WcHmkgA= =YhIo -----END PGP SIGNATURE----- --------38caf39ace4d60f7a7026a3e66934f2605a8aa6f25326f354556dd045b316dfc--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?jVlT24-_PVJVyNv6ON4rohRMutMiiJswFlXpdnWkXPdaGIa54828G-k5Rxm2RvNEwNGIhgtnVe9LK5mA3ugDuwyl834kseSWt4PDi-VwXvQ=>