manjaro-zsh-config
manjaro-zsh-config copied to clipboard
setopt command
If I run:
./.zshrc ✔
/usr/share/zsh/manjaro-zsh-config: line 2: setopt: command not found
/usr/share/zsh/manjaro-zsh-config: line 3: setopt: command not found
/usr/share/zsh/manjaro-zsh-config: line 4: setopt: command not found
/usr/share/zsh/manjaro-zsh-config: line 5: setopt: command not found
/usr/share/zsh/manjaro-zsh-config: line 6: setopt: command not found
/usr/share/zsh/manjaro-zsh-config: line 7: setopt: command not found
/usr/share/zsh/manjaro-zsh-config: line 8: setopt: command not found
/usr/share/zsh/manjaro-zsh-config: line 9: setopt: command not found
/usr/share/zsh/manjaro-zsh-config: line 10: setopt: command not found
/usr/share/zsh/manjaro-zsh-config: line 11: setopt: command not found
/usr/share/zsh/manjaro-zsh-config: line 12: setopt: command not found
/usr/share/zsh/manjaro-zsh-config: line 14: zstyle: command not found
/usr/share/zsh/manjaro-zsh-config: line 15: ${(s.:.)LS_COLORS}: bad substitution
I get errors with setopt in the scripts, even when I write my own in .zshrc
Running something like the following in my terminal works with no errors.
setopt interactivecomments
Do I have something setup incorrectly?
I have been trying to have a way of passing in a variable command to run a long and a short version of commands in my zshrc aliases which works in bashrc but not in zshrc, so I was wondering if something to do with the setopt errors might be blocking it from running?
#~/.zshrc -l True
while getopts l: option
do
case "${option}"
in
l) long=${OPTARG};; #Activate long edition true/false
esac
done
if [[ -e ~/.zsh_aliases ]]; then
source ~/.zsh_aliases -l $long
fi
That's probably because you're executing the file that should be sourced into your running shell. Also your .zshrc
as well as /usr/share/zsh/manjaro-zsh-config
don't have a shebang at the beginning, so that your zshrc is executed with sh
instead of zsh
.
To source your zshrc use source .zshrc
.