summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2017-11-18 23:09:09 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2017-11-18 23:09:09 +0100
commit98521abd2f038e06d732226f4eb788be607eb862 (patch)
tree667c9edba19d4a0b70c20788bfe03883b27728bc
parent336b1bedcb52a0a8e129aa4be8e8a20419fbacc6 (diff)
downloaddotfiles-98521abd2f038e06d732226f4eb788be607eb862.tar.gz
dotfiles-98521abd2f038e06d732226f4eb788be607eb862.tar.bz2
dotfiles-98521abd2f038e06d732226f4eb788be607eb862.zip
Some windows setup
-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>"