fig icon indicating copy to clipboard operation
fig copied to clipboard

ssh has multiple option as same

Open iWECon opened this issue 1 year ago • 9 comments

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 replicated the issue again

Operating system

macOS 13.2.1 (22D68)

Expected behaviour

Only one option for each different IP for ssh root@.

Actual behaviour

After linking the same ssh several times, when I type ssh root@ again, the option multiple identical options appear: image

I checked ~/.ssh/known_hosts, and it is correct: Screenshot 2023-03-31 at 09 44 31

Steps to reproduce

Yes, it is easy to reproduce.

Just only need to link the same ssh multiple times.

Environment

fig-details:
  - 2.15.0
hardware-info:
  - model: 
  - model-id: 
  - chip-id: Apple M2
  - cores: 8
  - mem: 16.00 GB
os-info:
  - macOS 13.2.1 (22D68)
environment:
  - shell: /bin/zsh
  - terminal: iterm
  - cwd: /Users/i
  - exe-path: /opt/homebrew/bin/fig
  - install-method: brew
  - env-vars:
    - FIGTERM_SESSION_ID: 89b9b238-8876-48ad-8434-99fe1d4241c4
    - FIG_SET_PARENT_CHECK: 1
    - FIG_TERM: 2.15.0
    - PATH: /Users/i/.local/share/fig/plugins/git-open:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/i/.fig/bin:/Users/i/.local/bin
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - __CFBundleIdentifier: com.googlecode.iterm2
    - FIG_PID: 17099
    - FIG_SET_PARENT: 89b9b238-8876-48ad-8434-99fe1d4241c4

iWECon avatar Mar 31 '23 01:03 iWECon