Questions tagged [zshrc]

The .zshrc file is the configuration file for zsh.

Zsh is a feature rich shell, with many of the features of bash, tsch, csh, and ksh. The .zshrc file is the configuration file for that shell, and it allows zsh to be configured to the user's needs.

616 questions
0
votes
2 answers

mysql command does not execute mysql

The path to my bin folder with mysql: usr/local/mysql/bin Here is my zshrc bash config: export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/Users/leon/bin/subl" export…
Leon Gaban
  • 36,509
  • 115
  • 332
  • 529
0
votes
1 answer

In short, what does this mean? rvm ruby oh my zsh

What does this mean? --- ~ » $PATH zsh: no such file or directory:…
Lenocam
  • 331
  • 2
  • 17
0
votes
1 answer

zsh tab completion of directory stack not working

In cd -1, -2, -3 etc in Z shell it appears you can do cd - and cd + to do tab-completion of the directory stack. I think it's supposed to work out of the box on zsh? However this doesn't work for me. I've even tried the suggestions in…
user779159
  • 9,034
  • 14
  • 59
  • 89
0
votes
2 answers

zsh: command not found: modernizr

I installed modernizr: npm install -g modernizr Everything went well without errors: /Users/myusername/npm/bin/modernizr -> /Users/myusername/npm/lib/node_modules/modernizr/bin/modernizr /Users/myusername/npm/lib After install running: modernizr I…
ace
  • 283
  • 1
  • 16
0
votes
2 answers

Homebrew keep showing warning to set PATH on OS X 10.11

I am on Mac OSX 10.11 after running brew doctor And there is a warning in my terminal. Warning: Homebrew's sbin was not found in your PATH but you have installed formulae that put executables in /usr/local/sbin. Consider setting the PATH for…
Zigii Wong
  • 7,766
  • 8
  • 51
  • 79
0
votes
2 answers

Start Zsh with 'Custom Options'

I've got a couple flags in my zsh configuration - and I've been trying to figure out a way to startup a new shell with them set, but haven't found a solution yet. Any suggestions? For example, I'm looking to do something like: zsh --login…
nfarrar
  • 2,291
  • 4
  • 25
  • 33
0
votes
1 answer

pushd > /dev/null permission denied in .zshrc

I'm using the commands pushd and popd in my .zshrc. I don't want these two commands to print anything to the console. Therefore I tried to use it this way: pushd > /dev/null. But now the output is: permission denied: /etc/null. > /dev/null/ works…
winklerrr
  • 13,026
  • 8
  • 71
  • 88
0
votes
0 answers

Gulp-sprite-glue glue is not defined

I have OS Linux Mint 17.2 cinnamon and i'm using ZSH. After installing Gulp and plugin gulp-sprite-glue, when i run it, i got error: ReferenceError: glue is not defined But when i'm typing glue -v i'm getting glue 0.11.1 As i understand, glue is…
Victorino
  • 1,623
  • 11
  • 22
0
votes
1 answer

Can I view my old .zsh_history outputs

I feel like someone would have asked this question before, however, I cannot find anything and it may be because it's too obvious and I'm looking in the wrong file or I'm not searching a good key term to find out. I want to view some of my old…
garrettmac
  • 8,417
  • 3
  • 41
  • 60
0
votes
1 answer

Bundle install fails. Not able to install mysql2 gem

I'm on OS X Yosemite 10.10.2. I dont know what I did for this to happen and I'm struggling to figure what the issue is. Basically all most of my rails commands are failing. I'm using zsh. When I try to run bundle install, I get…
doesey
  • 31
  • 5
0
votes
2 answers

Conditionally Color ZSH Prompt

I am trying to color my prompt based on the return code of the previous command. I have the following: PROMPT='%{$fg_bold[cyan]%}%~$(git_prompt_info) %($?.%{fg_bold[cyan]%}.%{$fg_bold[red]%})»%{$reset_color%} ' Specifically I'm having trouble with…
carloabelli
  • 4,289
  • 3
  • 43
  • 70
0
votes
1 answer

zsh /home/kaffe/.aliases:13: parse error near `|'

I wrote a massive one-liner as a tool to check some logs at work which I wanted to break up and comment, so I could understand it at a later date. When I was done breaking it all up, I bumped into this error: /home/kaffe/.aliases:13: parse error…
Kaffe Myers
  • 424
  • 3
  • 9
0
votes
1 answer

Remove current directory if in Git repo

I am using the Agnoster theme with Oh-my-zsh in iTerm2. Is it possible to hide the current directory if you're in a Git repo to avoid needless duplication, if so how? Here is a gist of my zsh setup Interestingly, the actual Agnoster theme…
jshjohnson
  • 157
  • 4
  • 16
0
votes
1 answer

Prompt in .zshrc

When I start my terminal emulator, it either creates a new tmux session (named $(whoami)) or, if it already exists, attaches to that. However, I would like the ability to choose to create a new session if there is already one active. The previous…
Xophmeister
  • 8,884
  • 4
  • 44
  • 87
0
votes
1 answer

zsh prompt wrapping to a newline after adding buildstatus

I'm attempting to add my Buildkite (ci build server) project status to the zsh prompt! I've written a ruby script that pulls the status and puts it into a colon separated file in the following format: # .buildkite_status project1: √ project2: x The…
mark
  • 833
  • 8
  • 21