From 23c57ff24840c6f612ffd19effbac70a2c218865 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Fri, 15 Jan 2016 19:27:34 +0100 Subject: cern-scripts: package --- .../cern-scripts/src/main/resources/bin/dmenu-software.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 packages/cern-scripts/src/main/resources/bin/dmenu-software.sh (limited to 'packages/cern-scripts/src/main/resources/bin/dmenu-software.sh') diff --git a/packages/cern-scripts/src/main/resources/bin/dmenu-software.sh b/packages/cern-scripts/src/main/resources/bin/dmenu-software.sh new file mode 100755 index 0000000..bca5b54 --- /dev/null +++ b/packages/cern-scripts/src/main/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