fig
fig copied to clipboard
Fig prevents Multipass shell from working
Sanity checks
- [X] I have searched github.com/withfig/fig/issues and there are no duplicates of my issue
- [X] I have run
fig doctor
in the affected terminal session - [X] I have run
fig restart
and tested again (tell us if that fixed it)
Issue Details
Description:
Opening a shell into a VM with Multipass doesn't work with Fig.
Steps to reproduce:
- Launch a shell from the Multipass menu bar icon:
This executes the command
multipass shell primary
with the default terminal app to open a shell in the 'primary' VM. - Observe that the terminal app opens, but with a prompt on the local machine, not in the VM. E.g:
/private/var/folders/8j/d546rjq909586w84qc5d9tg80000gn/T/multipass-gui.AHdhcr.command; exit
Last login: Tue Oct 4 16:13:54 on ttys011
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
You can see at the top there that it seems to have run the command scriptlet followed by exit
.
Expectation:
The shell prompt should be inside the VM. E.g. manually running multipass shell primary
from an already open terminal:
$ user@MacBookPro> multipass shell primary
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-48-generic aarch64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Tue Oct 4 16:18:53 BST 2022
System load: 0.05615234375
Usage of /: 29.4% of 4.68GB
Memory usage: 19%
Swap usage: 0%
Processes: 87
Users logged in: 0
IPv4 address for enp0s1: 192.168.64.3
IPv6 address for enp0s1: fd15:3fde:3263:1c37:5054:ff:fe6b:817f
0 updates can be applied immediately.
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
Last login: Tue Oct 4 16:12:12 2022 from 192.168.64.1
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@primary:~$
Environment:
- macOS
- iTerm2 terminal app (although same effect with default Terminal.app)
- Fish shell (set to default shell for my local user)
- Fig installed & doctor reports ok (i.e.
~/.config/fish/conf.d
contains Figpre
andpost
scripts) - Fig iTerm2 integration enabled
Diagnostic steps taken:
If I remove the files ~/.config/fish/conf.d/00_fig_pre.fish
and ~/.config/fish/conf.d/99_fig_post.fish
, then it works as expected.
Environment
fig-details:
- desktop-version: Version 1.0.61 (B538) [Beta] [British]
hardware-info:
- model: MacBook Pro
- model-id: MacBookPro18,2
- chip-id: Apple M1 Max
- cores: 10 (8 performance and 2 efficiency)
- mem: 64 GB
os-info:
- macOS 12.6.0 (21G115)
environment:
- shell: /nix/store/lwaly4qzlf9vmx5jrag1zrzc2df4bpdd-fish-3.4.0/bin/fish
- terminal: iterm
- cwd: /Users/ian/.config/fish/conf.d
- exe-path: /Users/ian/.local/bin/fig
- install-method: brew
- env-vars:
- PATH: /Users/ian/.pyenv/shims:/Users/ian/.pyenv/bin:/Users/ian/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/Users/ian/.config/composer/vendor/bin:/Users/ian/go/bin:/Users/ian/.local/bin:/Users/ian/.fig/bin:/opt/local/bin:/opt/local/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion Tech Preview.app/Contents/Public:/usr/local/MacGPG2/bin:/Users/ian/.nix-profile/bin:/etc/profiles/per-user/ian/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin
- SHELL: /run/current-system/sw/bin/fish
- TERM_SESSION_ID: e154a144-fc63-4427-9334-00ac0cbc2a64
- FIG_SET_PARENT: e154a144-fc63-4427-9334-00ac0cbc2a64
- FIG_TERM_VERSION: 5.2.0
- FIG_TERM: 1
- FIG_PARENT:
- FIG_INTEGRATION_VERSION: 8
- TERM: xterm-256color
- FIG_PID: 1095
- integrations:
- SSH: false
- TMUX: false
- iTerm: installed!
- Hyper: application is not present.
- Visual Studio Code: installed!
- Docker: true