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

learn more… | top users | synonyms

0
votes
1answer
9 views

How do I get the aws cli completion to work with zsh on OS X?

Similar to this question: How do I get the aws cli completion to work with zsh on ubuntu? This command from the aws-cli documentation did not properly setup auto completion. source ...
0
votes
0answers
3 views

How to show result of git reflog in the same window as the other commands?

When I type git reflog, the result is shown in another window like with man command (I don't really know how to call it). To quit the window you must use q key. How to show the result in the same ...
0
votes
0answers
17 views

Bash in Conemu is overlapping lines

When I start nano/vi or a program that normally clears the screen then I can still see the command line. That means that the terminal is not cleared. If I scroll with the arrow keys the lines ...
0
votes
2answers
21 views

Zsh snippets implementation

Is there any way to implement expandable snippets in zsh? I'd like to be able to write ssh ssh_alias -t :tmux press tab and this would be expanded to the `ssh ssh_alias -t "tmux a||tmux" I want this ...
1
vote
1answer
35 views

How to get bash-style autocompletion in zsh, (for git command)

I switched to zsh and find it better than bash, but I have a problem with oh-my-zsh's (hereafter "OMZ") autocomplete feature. When I type git chec, OMZ completes that to git check; in bash it gets ...
0
votes
0answers
11 views

How do I send, through hotkey, a SIGINT (CTRL+c) to a process running inside tmux?

When I open tmux and start a long running process without output, how do I kill it with a hotkey Ctrl+c? On a normal zsh shell when I press Ctrl+c the process receives a INT signal and (hopefully) ...
1
vote
1answer
20 views

can't find zsh history on OSX 10.8.5

When I log into the Terminal app on OSX my default shell is /bin/bash. Entering echo $HISTFILE points me to /Users/monkeybrain/.bash_history and head $(echo $HISTFILE) shows me that the file contains ...
1
vote
1answer
10 views

zsh completion doesn't work when prepending to word

I have two versions of a certain application, the one in my PATH and one at ~/install/app. So normally I do app file But sometimes I want to do, right after that: ~/install/app file With bash I ...
3
votes
1answer
85 views

iTerm 2 ZSH colors/themes not showed correctly

I have a clean installed mac, running OS X 10.11.4. I have installed iTerm 2, and set it up to use oh-my-zsh. I'm trying to set up a theme for my iTerm. I am trying to use the avit theme. It's ...
0
votes
2answers
40 views

What exaclty is <() in bash (and =() in zsh)?

I'm pretty confortable with bash, but recently I ended up in a substitution I didn't know. What exactly is <(<command>) in bash? How does it compare to the =(<command>) in zsh? I ...
1
vote
1answer
31 views

Unable to login as root or as user because zsh is missing

I installed zsh on my raspberry pi and for various reasons including the fact that the shell completely slowed down, I decided to remove it. I uninstall the package, changed the shell back to ...
0
votes
0answers
37 views

.hushlogin but for all folders in iTerm2 / oh-my-zsh

I updated to iTerm v3 beta, and now when I open a new tab with the same location of the previous tab, it shows the Last login MOTD if it's any folder other than ~/. I've read quite a bit about doing ...
1
vote
0answers
26 views

Error when trying to exit terminal emulator

Background I run zsh by default, and spend most of my day logged into a terminal. My workstation and all of the servers I interact with on a daily basis are Linux-based, and I either use zsh or bash ...
1
vote
1answer
12 views

zsh autocomplete results from function

I've been searching and searching and unable to find a clear way to do this: Slightly contrived example to hide details: Say I want to autocomplete tmux session names with a command that will open ...
0
votes
1answer
14 views

Tab glitch with tmux in archlinux

Bug difficult to explain, as it can have extremely random effects. But the idea is : when I open a new tab in my terminal using tmux (in tig, vim or cmus for exemple), the text always gets extremely ...
0
votes
0answers
9 views

zsh: enable normal path expansion for git commands

In zsh, I can expand a filename by just typing the first letter of each directory in its path and hitting <TAB>: % ls /e/z/zshe<TAB> % ls /etc/zsh/zshenv This works as long as the ...
1
vote
0answers
39 views

Running GNU Screen on Raspbian with vertival split spilling content

I am running Screen on a Raspberry Pi. My shell on the Pi is ZSH with OH-MY-ZSH. I have connected to the Pi via SSH from a Mac. When I run certain commands like HTOP or Vim the output spills over to ...
0
votes
1answer
38 views

git commit hash in zsh prompt

I'd like to see the current commit hash (just the first 8 or so characters) in my zsh prompt. I have this so far: https://github.com/calebmeyer/cpm-zsh-theme/blob/master/cpm.zsh-theme#L3 ...
0
votes
0answers
25 views

Weird output when setting zsh prompt

I am setting my zsh prompt to be % by setting the BULLETTRAIN_PROMPT_CHAR variable in my .zshrc file but when it starts up the prompt is %f. I have tried \% and it still does the same thing. Note I am ...
1
vote
0answers
18 views

zsh read input in zle widget

I am trying to implement a custom version of zsh history search when pressing ctrl-r (although my function will map to different shortcut). So far I have tried to use read , vared and read-command to ...
0
votes
0answers
20 views

Selecting a group in a pattern on ZSH Glob

How can I select a group in a ZSH pattern to be used later in a substitution or a reference? Example: print the files matching a given pattern and followed by a substring of that name selected from ...
0
votes
1answer
40 views

Dumping current .zshrc from terminal

I've wanted to make quick edit in a .zshrc, but vim said that it can't be written or something. So I quit, with :q!. Then I wanted to reopen this file... and it was empty. I still have terminal open ...
3
votes
2answers
38 views

Periodically source shell profile

I'm a zsh user, but this should apply to any shell in theory. When I edit my .zshrc to add a new alias, I have to source ~/.zshrc in all of my open terminal tabs/windows to be able to use the new ...
0
votes
0answers
58 views

Prezto Paradox theme not displaying properly

I have a question somewhat similar to: https://unix.stackexchange.com/questions/236885/installing-powerline-fonts-for-zsh-prezto-theme I'm on OSX 10.10.5 using Iterm2, Zsh, and Prezto with more or ...
2
votes
1answer
40 views

zsh: What does hist_find_no_dups mean?

HIST_FIND_NO_DUPS When searching for history entries in the line editor, do not display duplicates of a line previously found, even if the duplicates are not contiguous. However, ...
3
votes
2answers
36 views

How does dpkg know that a config file has been deleted?

I recently had an odd problem where I would install zsh (apt-get install zsh) but it would not install the config files - specifically /etc/zsh/zshenv and friends. Following some considerable time ...
0
votes
0answers
37 views

Oh-My-Zsh doesn't appear to see the path

so I am attempting to use my path variable to find a file but it doesn't work. I am using zsh (oh-my-zsh particularly) And i have the following commands in my .zshrc export ...
1
vote
2answers
25 views

Remove all extensions in zsh

Say I have a directory with many files with the .bak extension, and want to remove this from each. What's the simplest way to do that? I mean a command that would do what one might exspect from mv ...
0
votes
1answer
23 views

Is there a zsh add-on or an iTerm addon that allows arbitrary string autocompletions?

I often find myself staring at a string that was printed in my terminal, I need to use it in a command, but don't want to move the mouse to copy/paste it. I'm wondering if zsh or iTerm support ...
0
votes
1answer
23 views

Null key mappings in console vim on OS X

Running in zsh on Mac OS X's Terminal.app. The following 2 keybindings do work in MacVim, but not console vim (7.4) inoremap <c-space> <c-x><c-o> inoremap <c-@> ...
0
votes
2answers
18 views

Import previous commands to edited command

I'm playing with zsh to change image modification time according to the 'Date/Time Original' exif attribute. For this I one command I do: PDATE=$(exiftool -p '$DateTimeOriginal' $PIC | sed 's/[: ...
0
votes
1answer
21 views

Adding Scala to the PATH in zsh

I've been at this for a while and I think I'm starting to go crazy I have downloaded Scala to ~/bin for easy access on my Elementary machine; but I seem to have some difficulty adding it to the PATH. ...
0
votes
1answer
68 views

No such file or directory .zshrc

Recently, I realized I haven't been able to run . .zshrc in my home directory. It gives me the error above. It's really strange and it's bugging me out since it's worked perfectly fine in the past. ...
0
votes
1answer
31 views

command substitution before ssh

I want to write the results from a job into a remote file on another host in my cluster. I know I can do this: echo 'My text' | ssh me@my.host "cat >> ~/my.output" which will append 'My text' ...
0
votes
0answers
13 views

Which library implements the NO_PROXY variable?

Which library implements and passes to the network stack the NO_PROXY variable? Considering that is being read from a shell (ZSH, bash) or other programs. Is it just a variable that other programs ...
1
vote
1answer
38 views

ZSH: change prompt just before command is run

I would like to have a two-line prompt in zsh, but collapse it to a very small one just after pressing ENTER, so that it doesn't show up in the terminal scroll history. After typing two commands, the ...
0
votes
1answer
26 views

Resuming a job with 'r' in ZSH

I run Vim in zsh. And I often need to check something else in the terminal. So I just quickly suspend the editor by pressing Ctrl+Z and then type fg to get back. Today, by chance, I noticed that the ...
0
votes
0answers
67 views

Proxy stack configuration for KDE and ZSH

I have the following stack: Ubuntu 14.04 ZSH KDE Firefox Chrome PyCharm/other GUI applications ssh/git/wget/curl/etc from terminal And I'm behind a proxy server, http:proxy.server.com. I set up ...
0
votes
1answer
35 views

zsh: command issued gets repeated in output

I'm having an issue identical to: Repeated command in output for zsh prompt. As in, the command I execute is being repeated on the next line, and then the output of the command follows. But ...
0
votes
1answer
41 views

Delete files if condition is met

I have the following directory tree: /Directories/ /Directories/somedir/somefile.mkv /Directories/somefile.rar I'm trying to find a way to delete the .rar file if the .mkv file exists and is larger ...
0
votes
1answer
28 views

Setting up an alias in zsh, storing additional information

I am trying to build a triplet of aliases in zsh. jc, g1, g2, jc arg1 arg2 would be the same as the command cp -r arg1 arg2 And g1 is the same as cd arg1 and g2 is the same as cd arg2 The ...
0
votes
0answers
50 views

Is it possible to use ZSH-style completion in IPython?

In IPython, if I trigger a completion in an ambiguous context, for example var = [press TAB] then I got a whole screen of completion candidates. I have to scroll up to find out what I did before. ...
3
votes
2answers
224 views

How can I scroll up one line in zsh?

I'm using iTerm2 w/ bash and I scroll up through the history buffer one line by typing Shift+Up. When I switch to my zsh shell, it just inputs 2A. How can I scroll up a single line in zsh w/ just my ...
0
votes
0answers
30 views

Specifying Path With Escapes in an Environment Variable

This is a shell escaping syntax, cmake, and perhaps Haskell issue (not sure where to fix it). Specifically, I am in Cygwin and trying to execute something like: CXX=/different/g++ ./build_all.sh ...
0
votes
1answer
87 views

ZSH in iTerm2: Why my prompt can only use 8 colors?

I am trying to set a color prompt in ZSH ($TERM=xterm-256color), but it can only get 8 colors out: Only the bright version of the colors. This is only the case for prompt, while the other applications ...
0
votes
1answer
40 views

tmux exits with [exited] on Ubuntu 14.04

The machine is a VPS that I SSH into. The problem started when I installed Prezto tmux -v also exits with [exited] sudo tmux doesn't work either I don't have a .tmux.conf I seem to have a ...
0
votes
0answers
141 views

Why oh-my-zsh is that slow?

I am quite familiar with bash, but I would like to give a try to zsh. Lot of people told me to try oh-my-zsh. After the installation I get a unreadable prompt and when I eventually find an ...
0
votes
0answers
64 views

Error Resolving User Permissions + Zsh Command Not Found

This is the list of user permissions after logging them to the terminal: ➜ ~ ls -ld / /usr /usr/bin /usr/bin/manpath drwxr-xr-x 33 root wheel 1190 Nov 14 08:49 / drwxr-xr-x@ 11 root wheel ...
1
vote
2answers
162 views

OS X El Capitan 10.11 Terminal 2.6 won't open new tabs with same working directory

I am using the default settings for Terminal, but when I create a new tab my working directory is always set to my home folder instead of the current working directory of the previous tab. Here's an ...
0
votes
1answer
175 views

shell environment setup for virtualenv/virtualenvwrapper

The question is about shell setup for virtualenvwrapper, an extension to virtualenv (python guide). Similar questions had been asked many times but with a lot with different answers: Environment ...