codinn / core-shell-scripts

Handy scripts for using with Core Shell
MIT License
4 stars 2 forks source link

support hostname reporting in zsh and on devices without the $HOSTNAME variable set #1

Closed henderea closed 4 years ago

henderea commented 5 years ago

I have updated the script to support both bash and zsh (tested on a CentOS machine running bash, and a Ubuntu Server machine running zsh), and have also added some hostname-related code from the iTerm2 shell integration (https://github.com/gnachman/iterm2-website/blob/master/source/shell_integration/zsh#L136) because the Ubuntu Server machine I tested zsh on didn't set $HOSTNAME.

yangyubo commented 4 years ago

Zsh is officially supported in commit c7779a30f19126070575f40377f8f3cb42e85d97, thanks a lot for the inspiration.