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.

459 questions
0
votes
1 answer

aliasing sudo with zshrc - gets "aliased to nocorrect sudo"

I've checked this answer first: My question still is: If I put these lines to my ~.zshrc file : JAVA_HOME="/user/lib/jvm/java-7-openjdk-amd64" export JAVA_HOME alias sudo="sudo env JAVA_HOME=$JAVA_HOME" Then do logout. Then try : > sudo…
ses
  • 12,339
  • 25
  • 106
  • 203
0
votes
1 answer

zsh prompt does not seem to work even when setting prompt_subst

I'm having some issues with my prompt (https://gist.github.com/zackp30/ccf91d6e476f1b6b8ec4), it only displays "anothertest", but it should toggle on every command, and, if this helps, $PS1 is set to "anothertest", and not the _zprompt_init…
Xack
  • 43
  • 6
0
votes
1 answer

setting .zshrc for arq jena

I'm trying to set my .zshrc file to export ARQROOT for ARQ (jena) on a mac (mavericks), similar to what is shown on http://jena.sourceforge.net/ARQ/Tutorial/query1.html for windows and linux tried all sorts of combinations with paths, quotes and…
0
votes
1 answer

zsh-bindings: noremap on vi mode

I want to bind 'dd' in the zsh's vicmd into something like 'ddi', If i use: bindkey -M vicmd -s dd 'ddi' It will give me this output: zsh: string inserting another one too many times
Ary Purnomoz
  • 131
  • 2
  • 9
0
votes
2 answers

Set up PATH correctly for zsh and RVM

I just switched to ZSH and are having issues with RVM. I believe it is related to my PATH. One issue that I have is when I start a new tab in iTerm2, the ruby version switches to 1.9.3 even though the default is 2.0.0. Here is my .zshrc file. export…
okysabeni
  • 7,115
  • 14
  • 59
  • 85
0
votes
1 answer

how can I make an alias pointing to a link in zsh-shell (on mac)

I'm trying to make this in my .zshrc-file: alias fer='/Documents/hej' But I'm getting this when I run the alias cd:cd:13: no such file or directory: /Users/yoniPacheko/Documents/hej it seems like syntax is wrong right?
YoniGeek
  • 3,703
  • 5
  • 24
  • 27
0
votes
1 answer

startup .zshrc to autoload bash script as function

I have at the bottom of my .zshrc [[ -e $HOME/.myapp/myapp.sh ]] && source $HOME/.myapp/myapp.sh myapp.sh loads some environmental variables from a file called script_properties { [[ -e $HOME/.myapp/script_properties ]] && source…
user1244166
  • 99
  • 1
  • 7
0
votes
0 answers

pman() function from bash in zsh

I've got this neat little function to open man pages in the Preview.app in my bash profile pman() { man -t $@ | open -f -a /Applications/Preview.app } and I want to use it in my zshrc but it doesn't work does anybody know how to fix it?…
0
votes
1 answer

grml's zsh config - multiline command re-echoing

I installed grml's configuration files and something in those files seems to be causing multiline commands to re-echo themselves before executing. For example user@machine ~ % cat << EOF \`heredoc> this \`heredoc> that \`heredoc>…
Roy Lamperado
  • 101
  • 1
  • 5
0
votes
1 answer

tmux does not retain $PATH

I am using chruby to manage changing my rubies. I also use tmux. When I change to a different Ruby, chruby updates the PATH environment variable to include the path to the Ruby I want. When I start a tmux session, these modifications to PATH are…
jordelver
  • 7,708
  • 1
  • 29
  • 38
0
votes
1 answer

Zsh Mac OSx Mountain Lion vim promt

I am wondering if anybody is able to get the vim prompt working properly using Mac OSx Mountain Lion the latest version. I am able to edit in vim mode on the command line but I have seen with zsh before that you can go into Vim mode which launches a…
wallerjake
  • 3,809
  • 3
  • 24
  • 30
0
votes
1 answer

locate + grep variable in bash function

zsh: 4.3.17 GNU bash: 4.2.24 GNU grep: 2.10 I would like to know what I did wrong in the grep part -> why grep doesn't highlight the results when used inside the .zshrc file, actually it doesn't output something at all. When not using a variable or…
Paradiesstaub
  • 2,010
  • 2
  • 15
  • 28
0
votes
1 answer

Auto attach to gnu screen on remote host (ssh) only

So I distribute my dotfiles on all my machines. I want to put something like the following in my .zshrc # Autoload screen if we aren't in it. if [[ $STY = '' ]] then screen -xR; fi Which I got from What's in your .zshrc? But I only want to attach…
Mark
  • 3,496
  • 5
  • 22
  • 32
-1
votes
1 answer

Zsh Costumizing

I was colorizing my prompt. I did it in .zshrc file .zshrc PROMPT=$'%B%{\e[38;2;224;108;117m(' …
-1
votes
1 answer

Replace a part of a string in zsh

So, in my zshrc I have a blue prompt, and when the root user is used, it uses a version of the same prompt with the word blue changed to red if [ $UID = 0 ] then export PS1="%B%F{red}[ %n@%m ]%f%b %F{white}:%f %F{yellow}%~%f %B%F{cyan}>%b%f " …
1 2 3
30
31