zsh Questions
6
I am trying to get ZSH config working correctly on Mac OSX. I installed it using curl: curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh. Then I modified my zshrc f...
6
Solved
I want to write this bash loop for zsh
while true; do echo "print something"; read -p "pause"; done
This loop echos, then waits for the user to press enter. If I enter it as is, the read stateme...
4
Solved
I am using Prezto + zsh as my shell. I would like to change the color of
directories when I ls my directory. For instance, here is what I currently
have:
Obviously, this is no fun, as I’m har...
4
Solved
I wanted to achieve the same as asked here Saving current directory to bash history but within Zsh shell. I haven't done any Zsh trickery before but so far I have:
function precmd {
hpwd=$history[...
32
Solved
I'm having some problems installing vows via npm in zsh. Here's what I get. I tried installing it with and without the -g option. Do you have any idea what's wrong here?
[❤ ~/Desktop/sauce-node-dem...
3
Solved
Is there a way to source the ~/.config/nvim/init.vim file from within nvim?
With vanilla vim you can source .vimrc with :so % : Is there an equivalent method do with similarly in neovim?
5
Solved
I want to set tab for zsh autocomplition plugin. There is related part of config:
# Widgets that accept the entire suggestion
(( ! ${+ZSH_AUTOSUGGEST_ACCEPT_WIDGETS} )) && {
typeset -ga Z...
Bever asked 28/11, 2019 at 18:50
1
How to set PS1 that make both git and conda can show in the bash?
Bash command prompt with virtualenv and git branch
I've found the following about how to do this in bash shell but i'm using zsh wi...
5
I am using oh-my-zsh for my terminal. I have set IntelliJ to use /bin/zsh as the shell path. However no environment variable in my .zshrc file ever seems to get picked up. I'm defining environment ...
Yardmaster asked 27/4, 2020 at 22:52
10
Solved
Can I configure my prompt to show a new line after each command?
To give you an example. In the following screenshot I did run cat .zshrc. I want to have a new line between the last output line of...
4
Solved
I am new at zsh.
I've installed the plugin zsh-autosuggestions in oh-my-zsh using instruction mentioned here. I am using Linux (Fedora 26).
What my problem is I want to change the color of the te...
Crowl asked 15/11, 2017 at 14:54
4
So I've got ZSH doing all this cool stuff now, but what would be REALLY awesome is if I could get it to run 'ls -a' implicitly after every time I call 'cd'. I figure this must go in the .zlogin fil...
Breland asked 18/10, 2010 at 22:50
1
Is there a way to make git's output to show colors for the important words such as "error", "warning", or "aborting"? (case insensitive).
There are times when I do a git pull and the output is sev...
31
Solved
I use rvm to manage different rubies and their gemsets. My shell is zsh with oh-my-zsh configured with basic settings. Enabled oh-my-zsh plugins are ruby, rails, osx, and git. Here's the command I ...
Temperamental asked 17/10, 2011 at 2:59
13
Solved
I'm using zsh terminal, and I'm trying to add a new entry (/home/david/pear/bin) to the PATH variable. I don't see a reference to the PATH variable in my ~/.zshrc file, but doing echo $PATH returns...
4
In my .zshrc I've set up suffix completion aliases like this so that I can open files more easily:
alias -s -- txt='mate -w'
Which allows me to open text files in my text editor without prependi...
4
Solved
After updated mac OS to Catalina 10.15.4 and XCode 11.4 and VS 2019 16.5.1
I can't pairing to mac from VS, there is getting the error in VS:
"An error occurred while trying to start Broker ...".
...
Barbra asked 28/3, 2020 at 11:7
5
Solved
Get an error when I use standard git command:
[~/site]$ git branch
git:1: maximum nested function level reached
.zshrc:
plugins=(git osx colored-man gem brew go bundler rake rails)
source $ZSH/...
4
Solved
I'm using argcomplete to have Tab completion in Bash.
argcomplete offers global completion for bash, but doesn't for zsh.
I would like to create a file ~/.zsh_completion, to contain the to be com...
Yonne asked 4/6, 2015 at 7:41
1
I want to create a widget bound to a hotkey that prints the current command description in rich text below the prompt, then erases it after a keypress. Like so (simplified):
widget() {
zle -R &quo...
11
Solved
Everytime I open the terminal, I have to source .bash_profile to enable the $JAVA_HOME or other variables.
3
Solved
I try to install gke-gcloud-auth-plugin on a Mac M1 with zsh, following the gcloud docs.
The installation ran without issue and trying to re-run gcloud components install gke-gcloud-auth-plugin I g...
Kowalewski asked 28/10, 2022 at 9:34
4
I am using hyper terminal. I wrote the following code to change the theme, but it gave the following error.
Command to change theme: hyper i verminal
zsh: command not found: hyper
How can I solve...
2
I can scp files to a remote host, but if I try to scp -r a directory it does not work
scp -r mydir [email protected]:/where/the/dir/has/to/go/
scp: realpath /whatever/mydir: No such file
scp: ...
5
Solved
Inspired by this question:
What should an if statement do when the condition is a command substitution where the command produces no output?
NOTE: The example is if $(true); then ..., not if true...
© 2022 - 2024 — McMap. All rights reserved.