Using modifiers in scripts
I've added source ~/.cache/wal/colors.sh to my .zshrc to import wal variables. But I'm confused as to how I can make use of the modifiers like {var.strip} in scripts. Do I need to export this in .zshenv? And if so, what's the formatting?
Thanks.
What do you mean by use use modifiers in scripts? Modifiers are only used when replacing values in template files.
If you wanted to do something like export modified variables from wal to your environment, you'd need to write your own template file ~/.config/wal/colors-modified.sh, run wal, and source ~/.cache/wal/colors-modified.sh in your shell rc file.
What do you mean by use use modifiers in scripts? Modifiers are only used when replacing values in template files.
If you wanted to do something like export modified variables from wal to your environment, you'd need to write your own template file ~/.config/wal/colors-modified.sh, run wal, and source ~/.cache/wal/colors-modified.sh in your shell rc file.
I've come to that conclusion as well. Thanks so much for replying.