From 75193faf8c19fec705bfe2ae738bd338fa727d2f Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 3 Mar 2020 10:19:44 +0100 Subject: .config/alacritty/alacritty.yml: Setting decorations to full, as otherwise the application is unusable on macOS. --- .config/alacritty/alacritty.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index ed688b5..9a2588b 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -49,7 +49,7 @@ window: # Values for `decorations` (macOS only): # - transparent: Title bar, transparent background and title bar buttons # - buttonless: Title bar, transparent background, but no title bar buttons - decorations: none + decorations: full # Startup Mode (changes require restart) # -- cgit v1.2.3-70-g09d2 From b5eefb8fe474a501dd1396a68a02cb56e3dd865b Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 3 Mar 2020 10:20:53 +0100 Subject: .zsh.after/export.zsh: If brew is found in PATH, export a few environment variables for it. --- .zsh.after/export.zsh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh index 7ecaa85..db2b22d 100644 --- a/.zsh.after/export.zsh +++ b/.zsh.after/export.zsh @@ -67,6 +67,13 @@ export PIPENV_HIDE_EMOJIS="true" export PIPENV_VENV_IN_PROJECT="true" #export PIPENV_CACHE_DIR="$HOME/.cache/pipenv" +# brew +if command -v brew > /dev/null; then + export HOMEBREW_NO_ANALYTICS="true" + export HOMEBREW_NO_AUTO_UPDATE="true" + export HOMEBREW_NO_EMOJI="true" +fi + # GnuPG export GPG_TTY=$TTY export GPG_AGENT_INFO="" -- cgit v1.2.3-70-g09d2 From ddd0c3ac1fe7c608c7d6827af2d00b9dcbc1fa4d Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 3 Mar 2020 10:21:45 +0100 Subject: .zsh.before/path.zsh: Adding a few GNU tools to PATH, if they were installed via brew. --- .zsh.before/path.zsh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.zsh.before/path.zsh b/.zsh.before/path.zsh index f19b704..4db5668 100644 --- a/.zsh.before/path.zsh +++ b/.zsh.before/path.zsh @@ -8,4 +8,10 @@ [ -d "${HOME}/bin" ] && PATH="${HOME}/bin:${PATH}" # Debilian [ -d "/usr/sbin" ] && [ ! -L "/usr/sbin" ] && PATH="${PATH}:/usr/sbin" - +# whackOS +[ -d "/usr/local/opt/coreutils/libexec/gnubin" ] && PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" +[ -d "/usr/local/opt/gnu-sed/libexec/gnubin" ] && PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH" +[ -d "/usr/local/opt/gnu-tar/libexec/gnubin" ] && PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" +[ -d "/usr/local/opt/gnu-which/libexec/gnubin" ] && PATH="/usr/local/opt/gnu-which/libexec/gnubin:$PATH" +[ -d "/usr/local/opt/findutils/libexec/gnubin" ] && PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH" +[ -d "/usr/local/opt/grep/libexec/gnubin" ] && PATH="/usr/local/opt/grep/libexec/gnubin:$PATH" -- cgit v1.2.3-70-g09d2 From ed0cb6f5d91e0924a0136275ac9025f2696a451f Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 3 Mar 2020 10:23:28 +0100 Subject: Moving the setting of dircolors from .zprofile to .zshrc, as a successful export relies upon finding dircolors in PATH and for that PATH has to be setup properly (which is not the case, when .zprofile is sourced on macOS. --- .zprofile | 4 ---- .zshrc | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.zprofile b/.zprofile index e76fdd3..0d11dbd 100644 --- a/.zprofile +++ b/.zprofile @@ -50,7 +50,3 @@ TMPPREFIX="${TMPDIR%/}/zsh" if [[ ! -d "$TMPPREFIX" ]]; then mkdir -p "$TMPPREFIX" fi - -# dircolors -# Set colors for ls output -eval $(dircolors ~/.dircolors) diff --git a/.zshrc b/.zshrc index 219801b..c99346e 100644 --- a/.zshrc +++ b/.zshrc @@ -4,6 +4,9 @@ for config_file ($HOME/.zsh.functions/*.zsh) source $config_file # zsh.before for config_file ($HOME/.zsh.before/*.zsh) source $config_file +# dircolors +# Set colors for ls output +eval $(dircolors ~/.dircolors) # Environment # -- cgit v1.2.3-70-g09d2