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...
Overthrow asked 28/3, 2013 at 12:58

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...
Cuttlefish asked 7/3, 2011 at 2:54

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...
Guzel asked 16/10, 2015 at 19:35

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[...
Bravissimo asked 13/5, 2010 at 2:4

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...
Boles asked 5/10, 2012 at 10:2

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?
Analyzer asked 24/10, 2020 at 11:56

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...
Julianejuliann asked 24/3, 2022 at 18:28

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...
Russophobe asked 11/12, 2013 at 7:24

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...
zsh
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...
Pas asked 27/2, 2016 at 13:53

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...
Draper asked 17/7, 2012 at 20:7

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...
Borek asked 18/7, 2009 at 18:28

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/...
Washable asked 15/3, 2017 at 23:29

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...
Tulley asked 5/3, 2023 at 9:46

11

Solved

Everytime I open the terminal, I have to source .bash_profile to enable the $JAVA_HOME or other variables.
Atbara asked 15/4, 2014 at 17:20

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...
Serica asked 22/8, 2021 at 19:8

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: ...
Hydroxyl asked 8/11, 2022 at 10:54

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...
Devil asked 22/1, 2012 at 23:59

© 2022 - 2024 — McMap. All rights reserved.