summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zsh/zshrc2
-rw-r--r--.zshenv5
2 files changed, 6 insertions, 1 deletions
diff --git a/.zsh/zshrc b/.zsh/zshrc
index c185ef6..8768b52 100644
--- a/.zsh/zshrc
+++ b/.zsh/zshrc
@@ -54,7 +54,7 @@ alias FF='noglob firefox'
alias bt="bsdtar"
# suffixes
-alias -s exe='wine'
+[[ -n $_IS_WINDOWS ]] || alias -s exe='wine'
alias -s pdf='xdg-open'
alias -s JPG='feh -F'
alias -s jpg='feh -F'
diff --git a/.zshenv b/.zshenv
index a562fc7..1054766 100644
--- a/.zshenv
+++ b/.zshenv
@@ -16,6 +16,11 @@ path=(
# other variables
_kw="~amd64"
+if [[ $(</proc/sys/kernel/osrelease) =~ 'Microsoft$' ]]; then
+ _IS_WINDOWS=1
+ umask 022
+fi
+
# exports
export PASSWORD_STORE_CLIP_TIME=20
export ECHANGELOG_USER="René Neumann (Necoro) <gentoo@necoro.eu>"