Added /etc/zshenv
This commit is contained in:
parent
db76ea028c
commit
a3fd84ef5b
3 changed files with 13 additions and 1 deletions
|
@ -1,11 +1,14 @@
|
||||||
{{- if (eq .host.distro.family "linux") -}}
|
{{- if (eq .host.distro.family "linux") -}}
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# @file Global Profile Setup
|
# @file Global Profile Setup
|
||||||
# @brief Configures `/etc/environment` to include environment variables that should be applied globally
|
# @brief Configures `/etc/environment` to include environment variables that should be applied globally and adds a `/etc/zshenv` file
|
||||||
# @description
|
# @description
|
||||||
# This script modifies the `/etc/environment` file on Linux devices to include:
|
# This script modifies the `/etc/environment` file on Linux devices to include:
|
||||||
#
|
#
|
||||||
# * `export QT_STYLE_OVERRIDE=kvantum-dark` which is required for the Linux GNOME / KDE themeing that relies on Kvantum.
|
# * `export QT_STYLE_OVERRIDE=kvantum-dark` which is required for the Linux GNOME / KDE themeing that relies on Kvantum.
|
||||||
|
#
|
||||||
|
# It also copies the `~/.config/shell/exports.sh` file to `/etc/zshenv` so that non-interactive ZSH sessions have all of the same
|
||||||
|
# environment PATH variables as interactive sessions. This was initially required to make Cakebrew work on macOS.
|
||||||
|
|
||||||
{{ includeTemplate "universal/profile" }}
|
{{ includeTemplate "universal/profile" }}
|
||||||
{{ includeTemplate "universal/logg" }}
|
{{ includeTemplate "universal/logg" }}
|
||||||
|
@ -20,4 +23,8 @@ else
|
||||||
logg info 'Added QT_STYLE_OVERRIDE to /etc/environment'
|
logg info 'Added QT_STYLE_OVERRIDE to /etc/environment'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### Ensure /etc/zshenv is populated
|
||||||
|
# No equivalent type of file for Bash
|
||||||
|
logg info "Copying ${XDG_CONFIG_HOME:-$HOME/.config}/shell/exports.sh to /etc/zshenv" && sudo cp -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/exports.sh" /etc/zshenv
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
# This script is included by `~/.bashrc` and `~/.zshrc` to provide environment variables that play harmoniously with
|
# This script is included by `~/.bashrc` and `~/.zshrc` to provide environment variables that play harmoniously with
|
||||||
# the default Install Doctor configurations.
|
# the default Install Doctor configurations.
|
||||||
|
|
||||||
|
### Language / Fonts
|
||||||
|
export LANG="en_US"
|
||||||
|
export LC_ALL="en_US.UTF-8"
|
||||||
|
|
||||||
### Licensing
|
### Licensing
|
||||||
export ACCEPT_EULA=y
|
export ACCEPT_EULA=y
|
||||||
|
|
||||||
|
|
|
@ -5084,6 +5084,7 @@ softwarePackages:
|
||||||
_github: https://github.com/keybase/client
|
_github: https://github.com/keybase/client
|
||||||
_home: https://keybase.io/
|
_home: https://keybase.io/
|
||||||
_name: Keybase
|
_name: Keybase
|
||||||
|
_post:cask: if [ ! -f /usr/local/bin/keybase ] && [ -f /Applications/Keybase.app/Contents/SharedSupport/bin/keybase ]; then echo "Fixing missing keybase executable symlink permission issue" && sudo ln -s /Applications/Keybase.app/Contents/SharedSupport/bin/keybase /usr/local/bin/keybase; fi
|
||||||
_when:ansible: '! test -f /opt/keybase/Keybase'
|
_when:ansible: '! test -f /opt/keybase/Keybase'
|
||||||
_when:cask: '! test -d /Applications/Keybase.app && ! test -d $HOME/Applications/Keybase.app'
|
_when:cask: '! test -d /Applications/Keybase.app && ! test -d $HOME/Applications/Keybase.app'
|
||||||
ansible: professormanhattan.keybase
|
ansible: professormanhattan.keybase
|
||||||
|
|
Loading…
Reference in a new issue