So does tmux grab it from there that and use it as the shell?
Нет. Выбор оболочки для запуска описан в
man tmux
:default-shell path
Specify the default shell. This is used as the login shell for new windows when the default-command option is set to empty, and must be the full path of the executable. When started tmux tries to set a default value from the first suitable of the SHELL environment variable, the shell returned by getpwuid(3), or /bin/sh. This option should be configured when tmux is used as a login shell.
Сначала
tmux
запускает$SHELL
.$SHELL
обычно устанавливается в самом ранней стадии, когда вы входите в свою систему, например, с помощью вашего X менеджер входа.Затем он анализирует
/etc/passwd
, используяgetpwuid()
, который вы можете прочитать подробнее вman getpwuid
. Наконец, если оба метода не работают, он запускается/bin/sh
.Как видите,
/etc/shells
вовсе не используетсяtmux
для того, чтобы определить, какую оболочку запускать. Вы даже можете временно переименовать его иtmux
по-прежнему будет работать:sudo mv /etc/shells /etc/shells.bak
/etc/shells
указывает Пути допустимых оболочек входа в систему (необязательный)как описано в ФХС . Для например, он используетсяchsh
для проверки имени оболочки.
Вы можете использоватьrclone
Rclone has powerful cloud equivalents to the unix commands rsync, cp, mv, mount, ls, ncdu, tree, rm, and cat. Rclone's familiar syntax includes shell pipeline support, and --dry-run protection. It is used at the command line, in scripts or via its API (Emphasis mine)
Работает с Google Диском и многими другими продуктами .