From 674a0d29ec4c97ba4b7f70a1631dd1a166849043 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Mon, 1 Nov 2021 10:58:48 -0700 Subject: [PATCH] zsh: fix for termux on android (for real this time) --- .zshrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index a48648e..08645c8 100644 --- a/.zshrc +++ b/.zshrc @@ -501,7 +501,8 @@ { # setopt correct # Auto correct mistakes setopt extendedglob # Extended globbing. Allows using regular expressions with * - setopt nocaseglob # Case insensitive globbing + [ -z "$TERMUX_VERSION" ] && + setopt nocaseglob # Case insensitive globbing (and fix for termux) setopt rcexpandparam # Array expension with parameters setopt checkjobs # Warn about running processes when exiting setopt numericglobsort # Sort filenames numerically when it makes sense @@ -595,7 +596,7 @@ export LESS_TERMCAP_ue=$'\E[0m' export LESS_TERMCAP_us=$'\E[01;36m' export LESS=-R autoload -U compinit colors zcalc -compinit -d 2>&1 > /dev/null +compinit -d colors # <<< ### Various manjaro ZSH functions >>> @@ -728,6 +729,9 @@ add-zsh-hook chpwd save_working_dir load_working_dir && cd - > /dev/null + +[ -n "$TERMUX_VERSION" ] && + setopt nocaseglob # Case insensitive globbing (fix for termux) # <<< # <<<