Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

The hostname in monitor does not work in fish shell. #17

Open
kerwino opened this issue Mar 6, 2022 · 2 comments
Open

The hostname in monitor does not work in fish shell. #17

kerwino opened this issue Mar 6, 2022 · 2 comments

Comments

@kerwino
Copy link

kerwino commented Mar 6, 2022

When I monitor my Linux server with Ubuntu, it uses the fish shell as the default shell and displays an error message in the monitor's hostname project, as shown below:

fish: Unsupported use of '||'. In fish, please use 'COMMAND; or COMMAND'. ([ -f /proc/sys/kernel/hostname ] && cat /proc/sys/kernel/hostname )|| echo "localhost" ^
When I switch the default terminal to ZSH shell, it works normally, but it affects my use. I need to manually switch to Fish shell every time I log in.

@Lakr233
Copy link
Owner

Lakr233 commented Mar 7, 2022

I need a discuss with my friend on this, may be we will provide customization on monitor command.

@Lakr233
Copy link
Owner

Lakr233 commented Mar 7, 2022

And after getting SFTP to work, this should solve the problem in a better way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants