Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local IP section #1222

Open
denysdovhan opened this issue Sep 21, 2022 · 0 comments · May be fixed by #1393
Open

Local IP section #1222

denysdovhan opened this issue Sep 21, 2022 · 0 comments · May be fixed by #1393
Labels
good first issue Issue or PR is friendly to new contributors: easy and simple. help-wanted We need help to resolve this issue or PR. proposal An issue (rarely PR) for feature-requests, ideas, etc

Comments

@denysdovhan
Copy link
Member

The problem

No response

Describe the solution you'd like

Spaceship should display local IPv4 when connected via SSH.

Describe alternatives you've considered

No response

Documentation and adoption

No response

@denysdovhan denysdovhan added help-wanted We need help to resolve this issue or PR. proposal An issue (rarely PR) for feature-requests, ideas, etc good first issue Issue or PR is friendly to new contributors: easy and simple. labels Sep 21, 2022
martonivan pushed a commit to martonivan/spaceship-prompt that referenced this issue Sep 23, 2023
The patch adds the IPv4 address to the host name if connected via SSH.

By default, the related SPACESHIP_HOST_SHOW_IP variable is `false` and
acts as before.

If the variable is set to `true`, it tries to figure out what IP to
show: it will query the ipv4 address of the first default gateway.

If the variable is set to any other string, it will be handled as the
interface to query and show the IPv4 address for.

resolve spaceship-prompt#1222
martonivan pushed a commit to martonivan/spaceship-prompt that referenced this issue Sep 23, 2023
The patch adds the IPv4 address to the host name if connected via SSH.

By default, the related SPACESHIP_HOST_SHOW_IP variable is `false` and
acts as before.

If the variable is set to `true`, it tries to figure out what IP to
show: it will query the ipv4 address of the first default gateway.

If the variable is set to any other string, it will be handled as the
interface to query and show the IPv4 address for.

resolve spaceship-prompt#1222
@martonivan martonivan linked a pull request Sep 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Issue or PR is friendly to new contributors: easy and simple. help-wanted We need help to resolve this issue or PR. proposal An issue (rarely PR) for feature-requests, ideas, etc
Development

Successfully merging a pull request may close this issue.

1 participant