Zsh - Move MSYS to zshrc

This commit is contained in:
Mateusz Słodkowicz 2026-06-10 11:40:00 +02:00
parent c159b6dfdd
commit 9afcf62bf3
Signed by: materus
SSH Key Fingerprint: SHA256:rzVduzTiiszuYfLPYD0SDZV+g8lxhpcRgpbOZA1X0Uo
2 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1 @@
#MSYS
if [[ "$(uname -s)" =~ ^MSYS_NT.* ]]; then
export MSYS=winsymlinks:nativestrict
fi
__MATERUS_HM_ZSH=1 __MATERUS_HM_ZSH=1

View File

@ -16,6 +16,13 @@ if zmodload zsh/terminfo && (( "$terminfo[colors]" >= "256" )); then
__MATERUS_ZSH_256COLORS="${__MATERUS_ZSH_256COLORS:-0}"; __MATERUS_ZSH_256COLORS="${__MATERUS_ZSH_256COLORS:-0}";
fi fi
#MSYS
if [[ "$(uname -s)" =~ ^MSYS_NT.* ]]; then
#Use windows symlink instead copy
export MSYS=winsymlinks:nativestrict
fi
#region Plugins #region Plugins
# Clone plugins if not exists # Clone plugins if not exists
[ -d $ZSH_DATA_DIR/plugins/powerlevel10k ] || git clone https://github.com/romkatv/powerlevel10k $ZSH_DATA_DIR/plugins/powerlevel10k [ -d $ZSH_DATA_DIR/plugins/powerlevel10k ] || git clone https://github.com/romkatv/powerlevel10k $ZSH_DATA_DIR/plugins/powerlevel10k