You are not logged in.
Hello, I have a new install of arch which I'm planning to use mainly over ssh.
I have set up tmux, starship and neovim. When I launch them locally (using a window manager) they
work properly and show the appropriate nerd font symbols, both within tmux and out
I also have set up an ssh config entry so that when I login to the machine using ssh it automatically
starts and joins a tmux session
Host tmx-arch
IdentitiesOnly yes
RemoteCommand tmux new -A -s tp
RequestTTY yes
EscapeChar none
I have used without issue similar configurations (to connect to an Ubuntu VM as well as an Ubuntu
laptop) and it always worked without creating issues, however when I run "ssh tmx-arch" it log into
tmux but where I'd expect symbols to appear I just get placeholders (an underscore, not a typical
tofu if it has any significance)
Weirdly enough connecting through ssh and only then spawning a tmux session does not present
the same issue
Does anyone have any idea what the problem might be?
Thanks for your help, I tried to look around but couldn't find any similar issues
Last edited by arlort (2023-06-07 07:02:38)
Offline
Weirdly enough connecting through ssh and only then spawning a tmux session does not present
the same issue
This will depend on something in your environment, I'd compare the environment of (likely) the tmux but also the shell process between the two invocations.
tr '\0' '\n' < /proc/$PID/environEdit: and I'd especially look for the locale variables…
Last edited by seth (2023-06-05 14:13:30)
Offline
Simple ssh -> zsh, symbols work:
USER=
LOGNAME=
HOME=
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
SHELL=/usr/bin/zsh
TERM=xterm-256color
MOTD_SHOWN=pam
MAIL=
XDG_SESSION_ID=5
XDG_RUNTIME_DIR=/run/user/1000
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_SESSION_TYPE=tty
XDG_SESSION_CLASS=user
SSH_CLIENT=192.168.1.209 33524 22
SSH_CONNECTION=192.168.1.209 33524 192.168.1.213 22
SSH_TTY=/dev/pts/0Ssh -> zsh -> tmux, symbols work
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS=https://debuginfod.archlinux.org
HOME=
LANG=en_US.UTF-8
LESS=-R
LOGNAME=
LSCOLORS=Gxfxcxdxbxegedabagacad
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01
;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.j
pg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;3
5:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=
00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:
MAIL=
MOTD_SHOWN=pam
OLDPWD=
PAGER=less
PATH=/home//.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin:/var/lib/snapd/snap/bin
PWD=
SHELL=/usr/bin/zsh
SHLVL=1
SSH_CLIENT=192.168.1.209 33524 22
SSH_CONNECTION=192.168.1.209 33524 192.168.1.213 22
SSH_TTY=/dev/pts/0
STARSHIP_SESSION_KEY=1770047214376274
STARSHIP_SHELL=zsh
TERM=screen-256color
TERM_PROGRAM=tmux
TERM_PROGRAM_VERSION=3.3a
TMUX=/tmp/tmux-1000/default,24117,0
TMUX_PANE=%0
USER=
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_ID=5
XDG_SESSION_TYPE=tty
ZSH=/home//.oh-my-zsh
_=/usr/bin/tmuxSsh -> tmux directly, no symbols
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS=https://debuginfod.archlinux.org
HOME=
LANG=en_US.UTF-8
LESS=-R
LOGNAME=
LSCOLORS=Gxfxcxdxbxegedabagacad
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01
;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.j
pg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;3
5:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=
00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:
MAIL=
MOTD_SHOWN=pam
OLDPWD=
PAGER=less
PATH=/home//.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin
PWD=
SHELL=/usr/bin/zsh
SHLVL=1
SSH_CLIENT=192.168.1.209 33524 22
SSH_CONNECTION=192.168.1.209 28542 192.168.1.213 22
SSH_TTY=/dev/pts/0
STARSHIP_SESSION_KEY=1770047214376274
STARSHIP_SHELL=zsh
TERM=screen-256color
TERM_PROGRAM=tmux
TERM_PROGRAM_VERSION=3.3a
TMUX=/tmp/tmux-1000/default,24323,1
TMUX_PANE=%1
USER=
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_ID=5
XDG_SESSION_TYPE=tty
ZSH=/home//.oh-my-zsh
_=/usr/bin/tmuxLast edited by arlort (2023-06-06 07:45:05)
Offline
Please use [code][/code] tags, not "quote" tags. Edit your post in this regard.
The obvious one is the starship stuff… (and generally OMZ exists merely to break zsh in various funny ways)
Edit:
where I'd expect symbols to appear I just get placeholders (an underscore, not a typical tofu if it has any significance)
itr I assume "where I'd expect" /is/ the starship stuff?
Last edited by seth (2023-06-06 07:36:35)
Offline
Fixed the quote, didn't realize there was a separate formatting for code
The starship prompt is one such case but neovim is also not showing them and I've tested with the nerdfont script
and that too works in one case and breaks in the other.
I tried also by removing the zsh customizations and the problem persists (tested with the script and nvim)
Offline
Do you have comparative screenshots for the "underscore, not a typical tofu"?
The "bad" environment lacks
:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin:/var/lib/snapd/snap/binOffline
Do you have comparative screenshots for the "underscore, not a typical tofu"?
I'm leaving this here just in case anyone's curious https://imgur.com/a/BLpLHIW
Thanks for noticing the missing paths. Not sure what the specific cause was but it's something
due to the ssh command not executing in a login shell and so not sourcing /etc/profile
I fixed it by executing the command through a login shell instead:
RemoteCommand exec $SHELL -lc "tmux new -A -s win-tp"Offline