Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

execution in zshrc



Here enclosed, my script from my zshrc file, to select current running
linux udistribtion.
At start (e.g. starting a konsole session)  it cannot match any linux
brand (although 'uname -v' works). therefore exiting with 'unknown
distribution'.
Yet, sourcing /etc/zshrc  at terminal prompt, the correct runnig
linux distibution is found.

Any  hints  to fix my  script?

thank you

paolo


--- myzsh script ---
#     System admin aliases depending on the linux distribution
#     Checking for the running system

          case `uname -v` in
           (#i)*ubuntu*)   ubuntu_system; echo '**** ubuntu linux
****'  #  ubuntu linux distribution
                  ;;
           (#i)*suse*)   suse_system; echo 'suse linux distribution'
#  suse linux distribution
                  ;;
          *)     echo 'unknown linux distribution'  # unknown linux distribution
                  ;;
--- end  ----



Messages sorted by: Reverse Date, Date, Thread, Author