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.

0
votes
0answers
22 views

Terminal paths regarding zsh (mysql)

I've just downloaded my mysql, and can't access it. I was told to put this command in the terminal: echo 'export PATH=/usr/local/mysql/bin:$PATH' >> ~/.bash_profile then I put this in: ~/....
0
votes
2answers
36 views

Why am I having a “%” sign between the lines in integrated terminal in VS Code?

I was trying to setup zsh shell with oh-my-zsh in vs code. But in the left prompt why there is a "%" sign between lines? How to remove the "%" marked in the screenshot?
1
vote
1answer
19 views

zsh local array declaration causes strange behavior

I'm new to zsh and have discovered some strange behavior, but this tops it all. I just came across this extremely strange behavior when declaring a local array in a zsh function that I was writing ...
0
votes
1answer
40 views

Can I have the terminal prompt at the vertical middle of a window?

I just realized that I hunch over a lot when using the terminal since the prompt is always at the bottom of the terminal window, which is vertically maximized. I would like the prompt to be at the ...
0
votes
0answers
27 views

Zsh git branch missing from right side of my screen

I'm using zsh on iTerm2 but I noticed that I don't have the git branch titled master on the right side of my screen like I've seen on examples in blogs. How do I get it? My zsh: Other people's zsh (...
0
votes
1answer
38 views

nano 3.2 always compiles without nls

I'm running macOS 10.14 and zsh. I noticed that nano 2.0 is installed by default and is missing some features. So, I tried to compile and install the latest version (3.2). This work fine, except for ...
0
votes
0answers
15 views

Is it possible to autocomplete a subcommand like if it was another executable with ZSH?

I maintain a software which acts as a wrapper around docker-compose. I already wrote a ZSH completion script (a custom Oh-My-Zsh plugin) which works very well. But a subcommand of this software allows ...
0
votes
0answers
33 views

zsh sometimes doesn't show stdout

When I have a command that generates a lot into stdout zsh recently (last 6 months AFAIR) stopped showing the output. e.g. when I do a: for i in `seq 2000`; do echo AAA; done I don't get any output,...
0
votes
0answers
54 views

Oh my ZSH no unicode characters

I installed Arch Linux on my work computer and I'm currently configuring it for my taste. I installed the packages I needed (Xorg, Gnome3, urxvt, etc.) and created those dot files: .xinitrc export ...
0
votes
1answer
21 views

Ctrl+b appearing as '^B' at command line

I noticed this behavior in tmux, but it also happens when I have no session attached. Instead of entering as the command key binding Ctrl+b, ^B is printed to the command line. I don't have a .tmux....
0
votes
1answer
78 views

What is the recommended way of managing environment variables in Unix systems? [closed]

I have always been thinking about the effective way of managing environment variables in operating systems like Ubuntu, macOS, etc.. I have a couple of questions related to it. Is there a common ...
1
vote
0answers
25 views

How do I change or remove an alias in Zsh in MacOS? [duplicate]

I am trying to install a build tool on my Mac called please; however it seems the word "please" is already aliased to "sudo" and I don't know where that alias is being set. I'm using Oh My Zsh which ...
0
votes
0answers
19 views

How to rebase a branch from previous fork in one command?

So I'm trying to come up with a ZSH alias for Git that will rebase my current branch onto the branch it was originally derived (forked) from. Examples: Given the following branch names of A and B. ...
1
vote
0answers
65 views

Set window title in iTerm with zsh

I am using iTerm2 in my mac with zsh. I have set DISABLE_AUTO_TITLE="true" within .zshrc. Now I can use title to set window and tab titles. But it the title which appears in the title has the running ...
0
votes
2answers
50 views

Don't show output of “cd -<#>”

In oh-my-zsh, doing a cd - outputs the target directory, which is redundant since my shell prompt shows the relative working directory. I understand I can do cd - > /dev/null, but I'd have to type ...

15 30 50 per page