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
11 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
77 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
24 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
18 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
32 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
49 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 ...
1
vote
2answers
49 views

Is it possible to use zsh in windows machines?

Is it possible to use zsh shell in windows along with console 2. If possible how can I install and configure it.
1
vote
1answer
46 views

zsh in vi mode but using arrow keys to search history

When vi mode is enabled for zsh (bindkey -v) is there anyway to search the history as per the regular mode, i.e. by typing a few letters and pressing the up/down arrow keys? I find this much quicker ...
2
votes
1answer
21 views

Is there a way to programatically access and save a list of completion candidates in Zsh?

In Zsh by default the tab key is bound to expand-or-complete. I would like to programatically access the list of completion candidates that would have been produced by pressed tab, so that I can write ...
1
vote
0answers
36 views

Why does my PS1 environment variable keep getting overwritten?

I'm trying to customize the prompt by adding a line such as export PS1='%d' to my .zshrc file. However the environment variable keeps getting overwritten. In fact I can do the following at the ...
0
votes
2answers
201 views

How to configure zsh with oh-my-zsh to keep git history visible after pressing “q”?

I use zsh with oh-my-zsh on a daily basis but there is a small thing that bothers me. If I use git log or any other similar command then the output occupies full terminal window. After pressing q the ...
1
vote
0answers
35 views

Detach a terminal from a process in D (uninterruptible sleep) state

I have a shell command in stuck in D state (imagine doing ls on a NFS share when the network is down). How do I detach from such a command? I can't kill the process in any way (well, it's called "...
2
votes
1answer
35 views

How can I avoid conflicts in zsh keybindings?

I'd like to bind a function to CtrlgCtrlb in zsh. gb-widget() { echo "geebee" } zle -N gb-widget bindkey '^G^B' gb-widget This doesn't work with CtrlgCtrlb, but it works fine with other ...
0
votes
2answers
34 views

Preview current directory in shell

What often happens when I work in a shell - zsh - is that I have cded somewhere and I want to have a quick look at the directory. Using ls may produce a lot of output and leaves it in the terminal. ...

15 30 50 per page