From 3cbe8700c8c6cb1ac41b506681234f995ca979ba Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Mon, 1 Feb 2016 09:09:31 +0100 Subject: cern-scripts: restructure source directory --- packages/cern-scripts/resources/bin/dmenu-software.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 packages/cern-scripts/resources/bin/dmenu-software.sh (limited to 'packages/cern-scripts/resources/bin/dmenu-software.sh') diff --git a/packages/cern-scripts/resources/bin/dmenu-software.sh b/packages/cern-scripts/resources/bin/dmenu-software.sh new file mode 100755 index 0000000..bca5b54 --- /dev/null +++ b/packages/cern-scripts/resources/bin/dmenu-software.sh @@ -0,0 +1,13 @@ +#!/bin/bash -l + +sysenv='System native environment' + +env=`(echo "$sysenv"; plain_list_envs) | dmenu` + +test -f "$HOME/.cache/dmenu_run" && rm -f "$HOME/.cache/dmenu_run" + +if [ "$env" == "$sysenv" ]; then + dmenu_run +else + bash -l -c "activate $env; dmenu_run" +fi -- cgit v1.2.1