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
2
votes
2 answers

How to echo first half of 'cat file.js; ls'?

Use Case I am trying to send growl notices after a long terminal action has occurred. I'd like to be lazy and automatically be able to pass to growl the command that just occurred. So I'd like to be able to run npm install; growl and have the growl…
Jamis Charles
  • 5,827
  • 8
  • 32
  • 42
2
votes
1 answer

How to stop zsh from printing out command

just setup zsh with oh-my-zsh on Raspberry Pi After every command, it reprints the command I typed. For example... pi@raspberrypi ~>> ls ;lsDesktop ocr_pi.png python_games
Voska
  • 321
  • 1
  • 3
  • 12
2
votes
2 answers

Oh-my-zsh aliases do not autocomplete

I am a bit out of my wits researching this... and I just have to ask. I have oh-my-zsh on my Mavericks machine and have everything updated. I also have Xcode and Brew. All updated. According to this page:…
davicho
  • 85
  • 2
  • 7
2
votes
2 answers

.zshrc unrecognized condition on $-

I'm attempting to port over some functionality from my old .bashrc into my .zshrc and I'm having trouble with a condition that worked in bash. Whenever I remote log in to my computer, I had bash check the $- variable to see if it was interactive. If…
David
  • 2,080
  • 5
  • 29
  • 44
2
votes
1 answer

"Emacs" before my username in zsh

I installed zsh, set the oh-my-zsh and then set the powerline and when I use zsh, then before my name there "emacs". It's look like: EMACS > username > ~ How to remove it?
amxso
  • 43
  • 4
2
votes
1 answer

Command not found ZSH Error after updating zshrc file

I recently updated some applications and now it is giving me error when I open any new tab in teminal. Error it is giving: /Users/priti/.oh-my-zsh/lib/completion.zsh:28: command not found: whoami…
Priti Biyani
  • 414
  • 5
  • 11
2
votes
1 answer

Where could shortcuts for Git be defined?

I am running in some weird issues on my mac Git setup. I seem to have shortcuts defined for GC, GD etc: ➜ ~ where gc gc: aliased to git commit -v I am using oh-my-zsh, and I have looked in my .zshrc, and my .gitconfig for alias definitions.…
user3133317
  • 83
  • 2
  • 8
2
votes
1 answer

zsh suffix aliases - exceptions

I'd like to use suffix aliases for automatically opening .py files in vim. For that, I've got alias -s py=vimin my zshrc. However, I do have some python files that are executables in my path, for which I'd like to disable suffix completion. I could…
Alice
  • 445
  • 1
  • 5
  • 18
2
votes
3 answers

Why, rails server not running in zsh terminal?

After installing zsh i'm unable to start rails server i'm getting the following error: In bash it is working properly Error: ╭─love@Love ~/rails/nbt1 ‹system› ‹master*› ╰─➤ rs Could not find rake-10.1.0 in any of the sources ╭─love@Love…
Anbazhagan p
  • 943
  • 1
  • 14
  • 27
2
votes
0 answers

zsh globbing fails in script

I am writing a zsh script, and the following line in my script fails: rm -f ${ZT_BASE_PATH}/*_${(q)ZT_SESSION_ID} with error function:lineno: no matches found: /home/user/.zsh/.tmux_base/*_\$0 However, when I substitute the offending line with rm…
ale1ster
  • 21
  • 1
  • 4
2
votes
1 answer

End SSH session when closing tmux session

I have added the following to my .zshrc so that tmux will either create a new or attach to an existing session when logging in through SSH: if [[ -z $TMUX && -n $SSH_TTY ]]; then me=$(whoami) if tmux has-session -t $me 2>/dev/null; then …
Xophmeister
  • 8,884
  • 4
  • 44
  • 87
2
votes
0 answers

using zsh shell to install ruby-2.0.0-195 doesn't work

sorry this is my first time to post my question here. I am currently using zsh shell and I keep having trouble with installing ruby. While I run rvm install ruby-2.0.0-p195, it shows the error message as following, ➜ ~ rvm install…
Cheng Lun Chen
  • 105
  • 1
  • 7
2
votes
2 answers

Autocomplete backslashes in zsh

Is there a zsh script that would allow me to auto complete spaces with backslashes? For example: assume there is a folder called "My folder" with a space in between. If I want to get inside, I cd My\ folder However, I want a way to type cd My…
user2183384
  • 101
  • 1
  • 10
2
votes
2 answers

Executing a script in an alias

I'm trying to alias eclipse to execute eclipse -data $(pwd). However, for some reason adding this to my zshrc doesn't work: alias eclipse="eclipse -data $(pwd)" I can't seem to find the correct syntax - can someone help me out?
chintanparikh
  • 1,632
  • 6
  • 22
  • 36
2
votes
2 answers

Clock in zsh prompt

I have seen a bunch of different zsh prompts but I was wondering how I can add a clock? I want a simple clock, not anything too complex that self updates.
sgonzalez
  • 1,086
  • 9
  • 24