diff options
| author | David Kaufmann <astra@ionic.at> | 2016-05-06 02:32:14 +0200 |
|---|---|---|
| committer | David Kaufmann <astra@ionic.at> | 2016-05-06 02:32:14 +0200 |
| commit | 0aeed6f73a22bc1c789367ab8faff3be021ea8aa (patch) | |
| tree | f8577f42be224bdb079b98acc303784192570f90 /skel | |
| parent | e89a4d8d62c1621a4066bda182fb24eee53fbcc4 (diff) | |
| download | config-0aeed6f73a22bc1c789367ab8faff3be021ea8aa.tar.gz | |
only import current ssh keys
Diffstat (limited to 'skel')
| -rw-r--r-- | skel/.zprofile | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/skel/.zprofile b/skel/.zprofile index ec97cef..f608c93 100644 --- a/skel/.zprofile +++ b/skel/.zprofile @@ -1,15 +1,17 @@ -LANG='en_US.UTF-8'; export LANG +export LANG='en_US.UTF-8' if [[ -x /usr/bin/locale ]]; then - if /usr/bin/locale -a | grep -q de_AT.utf8; then - LC_TIME='de_AT.UTF-8'; export LC_TIME - LC_MONETARY='de_AT.UTF-8'; export LC_MONETARY - elif locale -a | grep -q de_DE.utf8; then - LC_TIME='de_DE.UTF-8'; export LC_TIME - LC_MONETARY='de_DE.UTF-8'; export LC_MONETARY + local mylocale + mylocale=`/usr/bin/locale -a` + if [[ $mylocale =~ "de_AT.utf8" ]]; then + export LC_TIME='de_AT.UTF-8' + export LC_MONETARY='de_AT.UTF-8' + elif [[ $mylocale =~ "de_DE.utf8" ]]; then + export LC_TIME='de_DE.UTF-8' + export LC_MONETARY='de_DE.UTF-8' fi fi -LIBGL_DRI3_DISABLE=1; export LIBGL_DRI3_DISABLE +export LIBGL_DRI3_DISABLE=1 SSH_ENV="$HOME/.ssh/environment" @@ -19,7 +21,7 @@ function start_agent { chmod 600 "${SSH_ENV}" . "${SSH_ENV}" > /dev/null if [[ -x /usr/bin/ssh-add ]]; then - for key in $(find ${HOME}/.ssh/ -name 'id_*' | egrep -v '.pub$'); do + for key in $(find ${HOME}/.ssh/ -maxdepth 1 -name 'id_*' | egrep -v '.pub$'); do /usr/bin/ssh-add $key done fi |
