Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [zsh]

Zsh is a shell designed for interactive use, although it is also a powerful scripting language.

3
votes
1answer
695 views

On Ubuntu 18.04, snap apps don't appear in the Dash

I just installed Ubuntu 18.04 and a few snap apps (Slack, Spotify). Snap apps don't show up in the regular "app list" when I search for an app, and I don't understand why. I'm running zsh, so I found ...
0
votes
1answer
372 views

MacOS cannot execute binary file after uninstall zsh

After I open the terminal this text will appear: Last login: Mon Mar 26 17:51:02 on ttys001 -bash: /usr/local/bin/dirname: cannot execute binary file -bash: /usr/local/bin/dirname: cannot execute ...
0
votes
1answer
287 views

ZSH / BASH : Delete specific lines from history

My history is 'polluted' with some specific lines that have typo's and such. For example: I often have to ssh to a certain server like so: ssh foo-bar@domain.tld > Connects succesfully But I also ...
1
vote
0answers
186 views

Is it possible to configure Anaconda Prompt to use different Shells?

Is it possible to configure Anaconda Prompt to use a different shell environment from the default installation on Windows-10? I can't find any documenation specifying the Shell Anaconda Prompt uses, ...
0
votes
1answer
216 views

Wrong Python version returned, with correct $PATH set in ZSH

something very wrong is happening with my environment set up. As I am trying to learn, I decided to reinstall Mac OSX El Capitan on my Macbook Pro and start installing and configuring stuff from ...
0
votes
0answers
15 views

Using profiles for terminals at the same time

I want to be able to use Terminal (I am using iTerm2 and Oh My ZSH) just like Google Chrome, where I have several profiles so I can use different extensions and all my logins and history is kept ...
1
vote
0answers
19 views

Scroll to bottom on new output

I have a script doing some monitoring tasks. It will print a line every once in a while if some background event happens. As of now, if I am scrolling back with iTerm2, new lines from my shell ...
0
votes
0answers
84 views

port sdkman installation from bash to zsh

Preamble I have installed sdkman on my bash terminal on Mac OSX which worked perfectly. I recently switched to zsh+iterm2+oh-my-zsh and, sdkman and the utilities I installed using it are not working. ...
1
vote
4answers
137 views

Run command on single file when changed with some shell magic (e.g replace extension)

I am writing several .gv files (graphviz) in the same directory and want to create a png file with neato immediately when I have saved one of them. I am on macOS 10.12.6, with zsh as my default shell, ...
3
votes
1answer
81 views

Return from emulate bash unsets zsh opts

So I have some setup scripts at work, which only work with bash (because they use e.g. == or $BASH_SOURCE). It works to source these scripts using zsh's emulate command: emulate bash source ...
0
votes
0answers
189 views

Changing WSL display color for agnoster zsh

I have been breaking my head in using the agnoster theme in zsh. the README says to check echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699" which provides the following output I cant ...
1
vote
1answer
193 views

ALT+left-arrow & ALT+right-arrow not working in tmux (zsh) on Mac OSX

I've configured my zsh to use ALT and left/right arrows to word left/right using the following in my ~/.zshrc file, however when I open a tmux session it doesn't work and just outputs 'D' or 'C'… ...
0
votes
1answer
186 views

msys2 `which` is very slow on windows 10

The which command was never particularly fast, but since I switched to Windows 10, it is extremely slow. I have a generic .zshrc that I carry around, so it tests to see if some programs are available ...
2
votes
1answer
90 views

execute function in different shell

I usually zsh. I want to execute a function in bash and return back to my original shell. I can do this manually, but I want to automate it. How can I do that? For example, I am on zsh. I want to ...
0
votes
1answer
2k views

What is the right way to set $PATH variable in zshrc

When I first install zsh(oh-my-zsh), the ~/.zshrc file has the following lines by default - # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH ...

15 30 50 per page