.zshrc config file syntax error
Remove the spaces from your alias command. The correct syntax is
eeyore% alias g2sites = "cd /Users/MYNAME/Dropbox/Development"
zsh: bad assignment
eeyore% alias g2sites="cd /Users/MYNAME/Dropbox/Development"
eeyore%
in mac always getting zsh: command not found:
It's evident that you've managed to mess up your PATH
variable. (Your current PATH
doesn't contain any location where common utilities are located.)
Try:
PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
export PATH
Alternatively, for "resetting" zsh, specify the complete path to the shell:
exec /bin/zsh
or
exec /usr/bin/zsh
Some .zshrc settings aren't loaded
Something you do in .zshrc
following source ~/.fzf.zsh
breaks it. Make sure ~/.fzf.zsh
occurs after that, most easily accomplished by moving it to the end of the file.
How to specify a custom path for my .zshrc file?
You can symlink
:
ln -s /path/to/original /path/to/symlink
For the zshrc
you can do something like:
ln -s ~/.dotiles/.zshrc ~/.zshrc
How do I reset and put the zshrc file back to default?
There is no such thing as "default". The best you can do, is check if your system has /etc/skel/.zshrc
. If yes copy that into your home.
When you log in first time, your home is populated with everything from /etc/skel
.
Command not found - Oh-My-Zsh
Question:
➜ ~ mvn
zsh: command not found: mvn
Answer:
step 1:
vim ~/.zshrc
step 2:(Add at the end of the file)
source ~/.bash_profile;
step 3:(Execution shell)
> source ~/.bash_profile
You can use mvn :
➜ / mvn
[INFO] Scanning for projects...
.......
Related Topics
.Bashrc Syntax Error: Unexpected End of File
How to Install Valgrind Properly
Pkill Returns 255 in Combination with Another Command via Remote Ssh
Grep Fails Inside Bash Script But Works on Command Line
Create Position Independent Object File from Llvm Bit Code
Bash Scripting - Iterating Through "Variable" Variable Names for a List of Associative Arrays
How to Check If Awk Array Is Empty
How to Count Most Occuring Sequence of 3 Letters Within a Word with a Bash Script
Argument List Too Long When Concatenating Lots of Files in a Folder
Why Does Unitywebrequest Return Unkown Error When I Do a Get Request on Linux
How to Break an Arbitrary Tcp/Ip Connection on Linux
Remove All Text from Last Dot in Bash
How to Use a Seq_File in Linux Kernel Modules
Provide Password Using Shell Script
Compare Md5 Sums in Bash Script
What Does Grep -Po '...\K...' Do? How Else Can That Effect Be Achieved