zshrc | My zshrc, etc -
kandi X-RAY | zshrc Summary
kandi X-RAY | zshrc Summary
My zshrc, etc
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of zshrc
zshrc Key Features
zshrc Examples and Code Snippets
Community Discussions
Trending Discussions on zshrc
QUESTION
specs:
macOs BigSur
Iterm2 with ohmyzsh
preinstalled with python2.7.16 & python 3.9.5
Problem :
i upgraded pip without pyenv , so now both pip and pip3 refer to python 3.9.5
i made an alias for python 3.9.5 to be default in .zshrc file
i also used pip to install flask
Questions :
Do i donwgrade pip for python2.7.16?
Or re install python2.7.16 with its pip?
i know i must have used pyenv but; is it possible now ? after 2 versions already installed?
...ANSWER
Answered 2021-Jun-11 at 17:24You should downgrade the pip
package of your Python 2 installation as Pip 21.0 dropped supported for Python 2.
For some reason, the pip
command on your system refers to the Python 3 installation. One would think there'd be two commands, pip2
and pip3
, just as for the Python interpreter.
Therefore, run the following command to downgrade Pip for Python 2 to the last supported version:
QUESTION
I installing rustc in Linux for school by using the command as explained in the wiki at https://www.rust-lang.org/
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`
The installation got completed and I added . "$HOME/.cargo/env"
in my zshrc file. and when i open new tab I am getting permission error like this zsh: permission denied: /Users/cerys/.cargo/env
. how to fix this
ANSWER
Answered 2021-Jun-11 at 06:31Check if the file $HOME/.cargo/env
has executable permissions. If not then you can add it by doing chmod +x $HOME/.cargo/env
and open a new tab or source it with . $HOME/.zshrc
.
QUESTION
I noticed that tab completion for the source
command in Zsh tries to complete a LOT of files. Maybe everything in $PATH? I tried using a blank .zshrc
file to make sure it wasn't anything in there.
ANSWER
Answered 2021-Jun-02 at 07:46Maybe everything in $PATH?
Yes, that is correct. It offers those, because source
will search your the current dir and your $PATH
for any file name you pass it.
To apply your change without modifying the original file, add this to your .zshrc
file after calling compinit
:
QUESTION
This is my full .zshrc:
...ANSWER
Answered 2021-Jun-02 at 07:14plugins
is an array used by $ZSH/oh-my-zsh.sh
. You need to initialize the former before calling the latter. Just initializing plugins
by itself doesn't do anything in Zsh (apart from creating a plain old array).
zsh-syntax-highlighting
and zsh-autosuggestions
mention explicitly in their documentation that they should be sourced after any other plugins.
Finally, if you're going to manually source
a plugin, then you do not need to add it to Oh-My-Zsh's plugins
array.
So, therefore, for your setup, this is the correct way to do things:
QUESTION
I just got a Mac and I'm trying to customize my Zsh prompt with colors but I can't get colors to work. I'm not sure if its because of LS_COLORS or what.
Here's my .zshrc
...ANSWER
Answered 2021-May-30 at 04:46%F
and %f
act more like 'start color' and 'stop color', so they need to surround the text and operators that you want to colorize. Also, very few named colors are supported (just black, red, green, yellow, blue, magenta, cyan and white); you'll have better luck with the numeric values from the xterm column of this table.
Try this:
QUESTION
I have written a script for use internally in my job (it's not much use to anyone outside of my work). I've got a decent zsh completion script for it now which works great.
I'd like to make a --install-zsh-completions
option on the script, which sets up completions automatically.
I see that there are a variety of different ways that zsh can be set up, depending on whether you use oh-my-zsh, prezto or your own configuration. For example, in oh-my-zsh
, you can just put completion scripts in ~/.oh-my-zsh/completions
and they are loaded.
Is there a standard place or way in zsh to install zsh custom completion scripts? For example, should I just modify the .zshrc and add to the fpath
?
ANSWER
Answered 2021-May-29 at 07:25Is there a standard place or way in zsh to install zsh custom completion scripts?
Yes, there is: Just create a symlink in /usr/local/share/zsh/site-functions
that points to your completion function. That's all there is to it.
This dir is by default in every user's $fpath
. So, when they (or whatever framework they're using) calls compinit
, it will be picked up automatically.
QUESTION
I looked at this Ruby installation (2.2.2) fails in macOS Big Sur
My macOS is Big Sur and the version I have is 11.2 and it was the closest I could find to the issue I'm having with my OS, I followed what I could by trying
...ANSWER
Answered 2021-Feb-23 at 19:38This is not an official solution. I'm sure the rbenv devs are working on an actual solution but this workaround should help others who are setting up their ruby environments on the new M1 chips for Mac.
Make sure your Terminal is using Rosetta. You can find how to do that using Google.
Uninstall your current
rbenv
following these instructions Removing rbenv. Be sure you also remove all the downloaded versions of ruby if you have any (minus the system default) located in/Users//.rbenv/versions/
.Uninstall the ARM version of Homebrew with:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
Install the x86_64 version of Homebrew with:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
If you run
brew install rbenv
should produce output saying "Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!". This is expected.You want to tell brew to install the older architecture x86_64
arch -x86_64 brew install rbenv
Then finally install the version you want using
arch -x86_64 rbenv install x.x.x
(x = some number i.e. 2.7.2)
From there you just need to remember to tell brew arch -x86_64
when installing other versions of Ruby.
Once an actual fix comes through you'll be able to switch back to the newer architecture and not have to use the arch
argument. You also don't have to do this all the time with brew either, just rbenv.
QUESTION
I have a function in my ~/.zshrc
that runs an AppleScript like so
ANSWER
Answered 2021-May-20 at 22:06The following works for me:
QUESTION
I am trying to get git autocomplete working with zsh and am running into a weird error (even though the autocomplete appears to complete successfully):
Installation:
...ANSWER
Answered 2021-May-20 at 19:51Zsh comes with excellent Git completion out of the box. Just throw everything you posted away, except this:
QUESTION
I was trying to use homebrew on my Mac yesterday. After installation. several packages i saw a similar message in the terminal
...ANSWER
Answered 2021-May-18 at 07:46The solution is to simply remove the matching lines from your ~/.zshrc
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install zshrc
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page