diff options
| author | Tslil Clingman <tslil.clingman@gmail.com> | 2015-12-16 23:52:39 -0500 |
|---|---|---|
| committer | Tslil Clingman <tslil.clingman@gmail.com> | 2015-12-16 23:52:39 -0500 |
| commit | 9ada1cffc8a3aff64c9cfe2ec42ad4b3c02bc9cd (patch) | |
| tree | a150e80ea05be6f2410fb1fee700670a8187de85 | |
| parent | 42ee791b2f58cc8fa78b73d058ecba0f0b091798 (diff) | |
runas sends arguments on
- lock now uses ssh-agent because who knows how to get gpg-agent working properly anymore
- there was an extra line being printed in the wls prompt
- alsa now has a binary called bat. yay.
| -rwxr-xr-x | battery (renamed from bat) | 0 | ||||
| -rwxr-xr-x | lock | 1 | ||||
| -rwxr-xr-x | runas | 6 | ||||
| -rwxr-xr-x | wls | 2 |
4 files changed, 6 insertions, 3 deletions
@@ -1,4 +1,5 @@ #!/usr/bin/env sh killall -s HUP gpg-agent +keychain --clear xset dpms force off slock @@ -9,7 +9,7 @@ export LOCALE="en_ZA.UTF-8" export PATH=$PATH:. export HISTFILE=$HOME/.histfile export HISTSIZE=8192 -umask 077 +umask 033 set -o emacs set -o utf8-mode PS1='${ local e=$?; local r=""; (( $e )) && r="<$e>"; @@ -49,6 +49,8 @@ else cd $HOME printf '\033k'"$1"'\033\\' xhost +local: - sudo -u $1 -s /home/$1/$1 + usr=$1 + shift + sudo -u $usr -s /home/$usr/$usr $* xhost -local: fi; @@ -36,7 +36,7 @@ if [ ! -f "$dird/$ssid" ]; then echo Creating new network profile, enter passphrase: read pass wpa_passphrase $ssid "$pass" > $dird/$ssid - echo "Edit file (y/[n])? " + echo -n "Edit file (y/[n])? " read edit if [ "$edit" == "y" ]; then $EDITOR $dird/$ssid |
