diff options
author | Yves Fischer <yves.fischer@cern.ch> | 2016-01-15 19:27:34 +0100 |
---|---|---|
committer | Yves Fischer <yves.fischer@cern.ch> | 2016-01-15 19:27:34 +0100 |
commit | 23c57ff24840c6f612ffd19effbac70a2c218865 (patch) | |
tree | 8d1360d385258599586bf3f9568d77ec8cdb6f92 /packages/cern-scripts/src/main/resources/bin/dmenu-software.sh | |
parent | 3b7cbbd6a5652b055aa680a1fc4dc1369079c78d (diff) | |
download | debian-packages-23c57ff24840c6f612ffd19effbac70a2c218865.tar.gz debian-packages-23c57ff24840c6f612ffd19effbac70a2c218865.zip |
cern-scripts: package
Diffstat (limited to 'packages/cern-scripts/src/main/resources/bin/dmenu-software.sh')
-rwxr-xr-x | packages/cern-scripts/src/main/resources/bin/dmenu-software.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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 |