zsh is a shell designed for interactive use, although it is also a powerful scripting language. Many of the useful features of bash, ksh, and tcsh were incorporated into zsh; many original features were added.

learn more… | top users | synonyms

0
votes
2answers
35 views

Why is this command starting endless terminals and how to make it work?

#!/bin/bash gnome-terminal --command='/home/user23/bin/n-youtube-dl "$1"' I want to pass the argument passed to this script to the other script started in the terminal. But this starts endless gnome ...
5
votes
0answers
81 views

Pressing enter produces ^M instead of a newline

For example, if I am tail -fing a file or reading user input, <Enter> will produce ^M in the terminal instead of ending the read or adding a newline to stdout. ^J works fine. I'm sshing into ...
2
votes
1answer
33 views

Less output does not show output in terminal after quitting it

Previously, if I ran something | less, and then press q, it used to return me to the prompt with the output of less still visible. $ seq 1 100 | less 1 2 3 4 :q $ <prompt here. I can still see the ...
1
vote
0answers
31 views

Make CronTab not asking for id_rsa keyword when running in terminal

I like to do some git pull inside a script and see see output of it. So I made up this cronjob to test: DISPLAY=:0 * * * * * mike /usr/bin/gnome-terminal -x zsh -c "/var/www/up.sh; zsh" ...
0
votes
1answer
32 views

What was the meaning of a special character on the shebang line?

I saw a script like below, #! /bin/zsh - del=10 rm -f /mnt/md0/capture/DCN/*(ND.Om[1,$del]) What was purpose of adding - on a shebang line?
1
vote
0answers
54 views

Scroll mouse -> scroll up screen instead browse history

I'm new with Z-Shell, I got a problem that when I scroll my mouse, it shows me the zsh-history, but what I really wanna is to scroll up the screen, just like I drag the scrollbar on the side. seems by ...
3
votes
2answers
58 views

zsh doesn't open vim or gvim until terminal is closed [closed]

When I try to launch vim or gvim from the terminal (or a program tries to do it such as git rebase --interactive). It doesn't open until the terminal closes, it just sits there thinking the program ...
0
votes
1answer
169 views

npm completion broken

I'm running npm 1.2.18 and node v0.10.15. npm completion is broken. If I try to tab complete with npm or if I run npm completion, it displays: npm ERR! System Linux 3.11.0-14-generic npm ERR! ...
-1
votes
2answers
96 views

changing shell from zsh to bash

My web server was tampered by someone who was using zsh shell. I feel more comfortable using bash shell, as that's the defaults that come with Ubuntu and OS X (the two main operating systems I use). ...
1
vote
1answer
289 views

zsh: command not found: svn_prompt_info

I install the oh-my-zsh through the gist https://gist.github.com/tsabat/1498393 However, whatever command I typed in the shell, the execute the command then print "zsh: command not found: ...
0
votes
1answer
31 views

Customise the prompt and display the Battery Capacity?

How do I customise the zsh-Prompt to show for example the time, the wi-fi status and the Battery Capacity? Is it possible to see my current battery charge in the prompt? I have only found a way how ...
0
votes
1answer
103 views

zsh aliases doesn't work from .zshrc file

I want to create an alias to mount some remote file systems locally. I placed lines like this in my .zshrc file: alias remfs='sshfs rem: ~/mnt/sshfs/rem' But when I run remfs, I get an error ...
0
votes
1answer
243 views

Edit ZSH theme for virtualenv name

I use zsh theme intheloops. The theme looks like this when no virtual env. is active -- an empty line -- [sourabh@skynet] ~/Code/django_apps/cope (master) ⚡ ❯ and when an env. is active, (env ...
0
votes
2answers
159 views

zsh up-line-or-history does not work in gnome-terminal and tmux

I use Ubuntu 13.04, zsh with oh-my-zsh and up-line-or-history is bind to up arrow (default settings of oh-my-zsh). But this work only in urxvt. I try to use DEBIAN_PREVENT_KEYBOARD_CHANGES in my ...
1
vote
1answer
127 views

tmux - unable to start any gui application

I am running Ubuntu-gnome 13.04. My default shell is zsh 5.0.0 and I usually run tmux 1.7 in the terminal 3.6.1. In terminal, if I evince or gedit, the applications start as expected. I can append an ...
4
votes
1answer
1k views

ZSH is not launched while opening a new terminal with `gnome-terminal`

I am using Ubuntu 12.04 and started using zsh. The way I changed my shell is $ sudo chsh -s /usr/bin/zsh I changed my prompt theme etc and the changes kicked in. When I do a echo $SHELL I can see ...
1
vote
1answer
329 views

Apt-get * wildcard with ZSH

ZSH: sudo apt-get remove --purge ubuntuone-* ERROR: zsh: no matches found: ubuntuone-* Works on Bash. What's the problem ? :-D
3
votes
1answer
887 views

change background color in zsh when I change theme

I installed the zsh package. So, now when I type zsh in terminal it switches from back to zsh. Also, I downloaded the oh-my-zsh framework to customize zsh. When I change theme name in .zshrc file to ...
0
votes
1answer
76 views

Getting a deb with wget problem

I'm trying to get Anki like this: wget https://anki.googlecode.com/files/anki-2.0.12.deb (That's the latest version) gives me: zsh: no such file or directory: wget ...
3
votes
3answers
2k views

Add directories to $PATH without repeating yourself

My shell is zsh and OS is Ubuntu 13.04 I need to add directory to $PATH to make it work in following places: In graphical environment(Unity) (such as startup applications, gmrun program that runs ...
0
votes
0answers
288 views

zsh crashed with rvm and bash_completion

I have installed zsh to my gnome terminal(Ubuntu 12.04). And they crashed on: /home/xdsemx/.rvmrc:13: command not found: shopt /home/xdsemx/.rvmrc:21: command not found: shopt ...
5
votes
1answer
852 views

Getting command-not-found working under zsh

I'm trying to get the command-not-found feature under Ubuntu to work under zsh, without luck: ➜ ~ pdfunite zsh: command not found: pdfunite ➜ ~ bash u@ub:~$ pdfunite The program 'pdfunite' is ...
0
votes
0answers
18 views

adding directory to path environment variable doesn't remain in path [duplicate]

I have been trying to get a program called "passenger-memory-stats" to run as the super user. The program is installed in the following directory: /usr/local/rvm/rubies/ruby-1.9.3-p327/bin/ruby . I ...
0
votes
1answer
222 views

Startup Applications with zsh and xmonad

I'm running Ubuntu 12.04. I use zsh as my shell and xmonad as my window manager. I don't use gnome or any other desktop environment. I'd like to declare some 'startup commands.' By this I mean, after ...
2
votes
2answers
98 views

Why usage of '*' doesn't always work on zsh?

I ran the following command on zsh sudo apt-get install rhythmbox* It produced an error, when I ran the same command in bash it worked. Why does this happen? How can I make the above command work ...
0
votes
0answers
53 views

tab complete after CLI install

I have a silly question, but its driving me bonkers. In my terminal, after I sudo apt-get install xxxx I can never tab-complete that software after its installed. I have to open a new terminal then ...
0
votes
0answers
119 views

Oh-My-ZSH Autocomplete Script append '/' (Forward-Slash) to completion

I'm trying to create an autocomplete plugin for Oh-My-ZSH, everything works fine except on hitting TAB the completion is followed by numbers of / . Here are the codes that I currently have: local ...
1
vote
1answer
750 views

When $SHELL variable does not change when I switch shell

I am using 'zsh' by default. But when I am in my zsh shell, I enter 'bash' to switch to bash, why the $SHELL variable does not change? Can I make screen to use whatever shell I right before execute ...
2
votes
0answers
166 views

URxvt has lags in Ubuntu 13.04 [closed]

I use urxvt as my default terminal and zsh as default shell. I use this two tools everywhere, but after today upgrade from ubuntu 12.10 to Ubuntu 13.04 I got some lags in term. Lags means - when I ...
2
votes
2answers
365 views

Startup commands with zsh as default shell?

I'd like some commands to run a script at startup. However, my default shell is zsh, so the traditional .bash files seems unwise. At the same time, I believe .zshrc is sourced at every shell ...
6
votes
3answers
3k views

Change default shell for Terminator

I want to change the default shell of Terminator to zsh. In /etc/passwd/ I've changed the default shell to /bin/zsh. This settings changes the default shell in LXTerminal (the default terminal on ...
2
votes
3answers
794 views

How to find out where $MANPATH is set?

How can I find out in which configuration file the environment variable $MANPATH is set? Is there a way to backtrace the values? I am aware of that I can grep through the whole file system using find ...
5
votes
1answer
3k views

chsh -s /usr/bin/zsh not working

I'm trying to permanently change my shell to zsh using chsh command, but it's not working. zsh is installed (via apt) and works fine when I invoke it directly from a bash prompt terminal. But I ...
1
vote
1answer
1k views

Rerun previous command under sudo

I want to be able to run a command, it fails cause it doesn't have proper permissions. Then I can write "please" to sudo the command I just ran. Here's what I want to do in the terminal: $ run ...
1
vote
4answers
665 views

Cannot execute shell /bin/zsh when execute a shell command in vi

I use bash. But it cannot find zsh. How to change this? ps:I don't want to install zsh.
1
vote
1answer
266 views

Execute file with default program from zsh?

In windows powershell I can open a pdf in adobe reader by doing > Invoke-Item ~/path/to/my.pdf Is there a way to open files in the default gui app from zsh?
1
vote
1answer
463 views

How do I automatically load my ~/.zprofile when I log in?

I've started using zsh for my login shell. I've create an a ~/.zprofile, but in order for it to be put into effect, I have to manually source it. How can I have my settings load automatically?
1
vote
1answer
215 views

find . -type l says missing argument

I want to find all symbolic links in the current directory and below. Therefore, I used: find . -type l Running that clears the screen showing "Pattern not found (press RETURN)" at the bottom of ...
2
votes
1answer
210 views

Update the zsh autocorrection for commands

I use zsh and it's great. But the autocorrection is not smart at all. I think it is not updated at any time. So I get the following often: dennis@ponyboy ~ % sudo aptitude search zsh zsh: correct ...
4
votes
1answer
2k views

Can't change theme of ZSH in Ubuntu 12.04

I have changed the theme in my ~/.zshrc file however whilst some of the colors in the prompt change the text size and background color remain as the Ubuntu default. Any one know how I can override ...
11
votes
2answers
6k views

Can't make ZSH the default shell

I am trying to set ZSH as my default shell, however it keeps reverting back to bash. I have tried this code: sudo chsh -s $(which zsh) I've also tried: sudo chsh -s /bin/zsh Also tried these ...
5
votes
1answer
2k views

Command history in zsh

Currently I have zsh set up in such a way that command history is shared between all sessions immediately. Say I have a terminal emulator open with two tabs, each with a zsh session, A1 and A2. If I ...
1
vote
2answers
552 views

How to use a hex color code in zsh?

I have color config of my shell PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' how to use hex color ...
2
votes
1answer
1k views

Shell Prompt Customization?

I have used oh_my_zsh (and tinkered with bash_it) on multiple systems and have generally been happy with it, though I hate it's auto-correction feature and generally turn it off. My usual shell is ...
3
votes
1answer
159 views

How can I get tab completion with juju in zsh?

I use zsh as my shell and tab completion doesn't work, how can I enable it?
6
votes
1answer
252 views

automatically run ls after changing path using autocd

So everytime I change the directory I would like the new path to automatically get listed with ls.There are solutions if the path gets changed using cd but I never found a solution that would work ...
1
vote
1answer
703 views

Cannot change zsh prompt

For some reason I can't change my zsh prompt by typing, say, PS1="%#". I'm using the admin-suggested config on Ubuntu 11.10. Am I doing it wrong or is it a bug? Here's the content of my ~/.zshrc: # ...
2
votes
3answers
2k views

Installing the most recent version of the Z shell

The latest release version of zsh is 4.3.14. I was wondering what is the easiest way to install it on Ubuntu. Is there a PPA for it? Also, is there a site that lists or collects Ubuntu PPA's for ...
-1
votes
1answer
235 views

Opening terminal attempting to run unknown script [closed]

Something odd has just started happening. On opening a new terminal, the first line of the terminal now says: install: target 'xmas' is not a directory. I've no idea what is causing that to happen, or ...
2
votes
2answers
761 views

Git Branch in ZSH Prompt?

When working on a git repository with multiple branches, how do I modify my zsh prompt to include my current active branch?