Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
execution in zshrc
- X-seq: zsh-users 23389
- From: "Pol (Admin)" <xtekhne@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: execution in zshrc
- Date: Fri, 11 May 2018 12:07:54 +0200
- Cc: Paolo Pumilia <paolo.pumilia@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to:cc; bh=GvnsrtsO2iNoqfdvSNSq5fMEWmyiPnPUw/caGhrNNq4=; b=ZjZ5Jj4U6wJervlcw2zYe4daCMs04z5Vh8NvRBALBYKNEgeeOrm89pTTrBCcYLfu4P P26gVNnaGH/InVS2CdKXuHbsYpDELVVD+UewBtQwTswmv/QWoN+nStKwDxPU+c953yH3 5huUyA+g1CgpckAR55oY7y8F+Zs4ZJ/chSrKz8QGQ8IEzRabzqDAbRW7PgaiuJqUbGNp W+kVuC4oT69HpCvrRg/v2QMFf9iquK4R+t43Nw7uKOIl1k62+Yp4ahE92sUvCxzJ86Zx m+vzQ2SQ30korDncKJttvCx4CzbX4kszXJ2lpTfTJzuOm/qWlc2kDjvZhd1aTuPESHOv JrmQ==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Sender: paolo.m.pumilia.gnarini@xxxxxxxxx
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