Search Results

Search: Posts Made By: galanom
7,011
Posted By Chubler_XL
Do the print -P when assigning the variables...
Do the print -P when assigning the variables then:

# RED=$(print -P '\e[38;5;196m')
# NORM=$(print -P '\e[0m')
# PS1="%{$RED%}Testing$ %{$NORM%}"
Testing $

or # RED='%{'$(print -P...
8,095
Posted By xbin
"Why zsh does not expand the var M? What I am...
"Why zsh does not expand the var M? What I am doing wrong?"

Zsh supports word splitting but the option is not turned on by default.

zsh --shwordsplit -c 'M="m1 m2 m3 m4 m5"; for x in $M; do...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 07:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy