zsh-users
 help / color / mirror / code / Atom feed
From: "Pol  (Admin)" <xtekhne@gmail.com>
To: zsh-users@zsh.org
Cc: Paolo Pumilia <paolo.pumilia@gmail.com>
Subject: execution in zshrc
Date: Fri, 11 May 2018 12:07:54 +0200	[thread overview]
Message-ID: <CABkwP4fWp2mEhzG7wHmxJ7GKy9HR5_uwSb7R0gmdcqjHzvGajQ@mail.gmail.com> (raw)

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  ----


             reply	other threads:[~2018-05-11 10:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180511100941epcas3p2a7f5d1bcbf7649f3dd5be354200d3858@epcas3p2.samsung.com>
2018-05-11 10:07 ` Pol  (Admin) [this message]
2018-05-11 11:31   ` Peter Stephenson
2018-05-11 12:30     ` Pol  (Admin)
2018-05-11 14:15       ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABkwP4fWp2mEhzG7wHmxJ7GKy9HR5_uwSb7R0gmdcqjHzvGajQ@mail.gmail.com \
    --to=xtekhne@gmail.com \
    --cc=paolo.pumilia@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).