Adjust locale settings for local usage
This commit is contained in:
parent
734e5e4c73
commit
417ed15f47
6 changed files with 187 additions and 22 deletions
14
.local/bin/ssh
Executable file
14
.local/bin/ssh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Mask the exotic `LC_*` values from ~/.config/shell/locale on remote hosts
|
||||
#
|
||||
# Debian's /etc/ssh/ssh_config forwards them via `SendEnv LANG LC_*`,
|
||||
# which cannot be cleared from ~/.ssh/config
|
||||
# => Send `LC_ALL` on top, which overrides all `LC_*` and `LANG` remotely
|
||||
#
|
||||
# `C.UTF-8` is built into `glibc` and thus available on every host
|
||||
#
|
||||
# Found via the `$PATH` by `git`, `rsync`, `sshfs`, scripts, and GUI apps;
|
||||
# `scp` and `sftp` call /usr/bin/ssh directly and have their own wrappers
|
||||
|
||||
exec /usr/bin/ssh -o SetEnv=LC_ALL=C.UTF-8 "$@"
|
||||
Loading…
Reference in a new issue