Questions tagged [oh-my-zsh]

Oh My Zsh is a popular open-source customization library for the Zsh terminal shell.

Oh My Zsh is a popular open-source customization library for the Zsh terminal shell.

950 questions
22
votes
6 answers

RVM + Zsh "RVM is not a function, selecting rubies with 'rvm use ...' will not work"

I'll start by saying I'm not an expert at command-line, so I really only barely know what I'm doing. I cannot get RVM and oh-my-zsh to play nice together. I've tried several different solutions posted around, some on SO, but nothing I have found…
biggles
  • 3,021
  • 5
  • 27
  • 36
21
votes
7 answers

How do I get IntelliJ Terminal to work properly with Oh My Zsh?

I love Oh My Zsh, but it has never worked properly in the JetBrains product's Terminals: cannot find executables cannot use version managers like pyenv, sdkman, rvm Oh My Zsh is zsh shell augmentation, so the actual problem could be reduced to…
Steve Tarver
  • 3,030
  • 2
  • 25
  • 33
21
votes
2 answers

Is it possible to keep the output of less on the screen after quitting?

I'm using oh-my-zsh which pipes the output of some functions like git diff and git log into less, whilst this is great for reading the output in the terminal. If I need to refer back to it it isn't possible after quitting with :q Is there an option…
Luke
  • 3,481
  • 6
  • 39
  • 63
20
votes
8 answers

ZSH agnoster Theme in VS-Code integrated terminal not displaying Symbols

I’m trying to pimp my VS Code integrated terminal with the agnoster theme and I ran into a small problem. It installed but the symbols are not shown correctly and the arrow at the end of the color bar is cut off. Also the text font is all stretched…
geekmonster
  • 271
  • 2
  • 3
  • 6
20
votes
5 answers

Oh-my-zsh theme not rendering properly in IntelliJ

Cobalt2 theme does not render properly in the terminal in IntelliJ but works fine in the Mac terminal. How do I correct this?
Madeleine Smith
  • 411
  • 1
  • 6
  • 12
19
votes
1 answer

How to delete from current position to the beginning of the line?

How do I delete everything from my cursor current position to the beginning of the line? For example, say I'm running npm run start and my cursor is positioned just before start? How do I remove npm run with a keyboard shortcut leaving start? ~ npm…
kvn
  • 2,210
  • 5
  • 20
  • 47
19
votes
3 answers

oh-my-zsh error after upgrade: ~/.oh-my-zsh/lib/misc.zsh:3: parse error near `then'

today I upgrade my oh-my-zsh and then start this error: ~/.oh-my-zsh/lib/misc.zsh:3: parse error near `then' Inside this file there is this shell loop... ## Load smart urls if available for d in $fpath; do if [[ -e "$url/d-quote-magic"]]; then…
Thiago Medeiros
  • 577
  • 4
  • 14
19
votes
2 answers

Where to place zsh autocompletion script on Linux?

After installing cheat (command cheat sheets from the command line), I tried to enable the autocompletion using the provided zsh script. However, I don't seem to find the correct location for the script. So far I fetch the cheat.zsh ; copy it to…
Édouard Lopez
  • 40,270
  • 28
  • 126
  • 178
18
votes
2 answers

How to stop ZSH from merging history for all closing tabs?

I use combination of zsh with oh-my-zsh and iTerm2 for development on Mac. I'm frustrated with the following issue: N tabs opened close the terminal reopen it (with Use system Window Restoration Setting) the history from all previously opened…
orkenstein
  • 2,810
  • 3
  • 24
  • 45
18
votes
1 answer

How to setup virtualenvwrapper in zsh under linux mint?

I use virtualenvwrapper from apt. It's working OK with bash but I recently switched to zsh. Now when I try workon in zsh I get zsh: command not found: workon Because I'm using oh-my-zsh script/plugins I thought it will be sufficient to add…
Lord_JABA
  • 2,545
  • 7
  • 31
  • 58
18
votes
1 answer

What is %K %F in oh my zsh theme?

I wanna custom my zsh theme ,but i don't known what does the %F and %K mean such like RPROMPT="$POWERLINE_GIT_INFO_RIGHT%F{white}"$'\ue0b2'"%k%F{black}%K{white} $POWERLINE_RIGHT_B %f%F{240}"$'\ue0b2'"%f%k%K{240}%F{255} $POWERLINE_RIGHT_A…
WensonSmith
  • 185
  • 1
  • 1
  • 6
17
votes
3 answers

Docker shell completion on OSX iTerm2 oh-my-zsh

I am trying to get Docker shell completion on this stack (OSX iTerm2 oh-my-zsh) I followed this guide -> https://docs.docker.com/compose/completion/ First I executed this $ mkdir -p ~/.zsh/completion $ curl -L…
agusgambina
  • 6,229
  • 14
  • 54
  • 94
17
votes
2 answers

oh-my-zsh not applying themes

I just set up zsh together with oh-my-zsh. But there's a bit of strange behavior that I cannot understand. If I restart Terminal (or iTerm 2––the behavior is the same in either) the theme specified in ~/.zshrc is not loaded. I need to do source…
apc
  • 1,497
  • 3
  • 13
  • 19
17
votes
6 answers

Weird rails error "permission denied: bin/rails" for old rails apps

I'm getting this error whenever I run rails (or any rails command) _rails_command:2: permission denied: bin/rails ONLY when i'm inside some old rails app directory. In these directories bundle exec rails c command works but rails or even rails -v…
ArrC
  • 203
  • 1
  • 3
  • 11
16
votes
2 answers

npx: the shell-auto-fallback argument has been removed

I honestly don't remember what I last installed on my machine, I believe it was brewing gatsby-cli. Anyway, since yesterday morning my terminal has been giving me the following error when I open a new instance or reset the terminal (open a new tab,…
Mike Earley
  • 1,223
  • 4
  • 20
  • 47