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

2
votes
1answer
513 views

Getting gnome-terminal to run tmux on start

I'm trying to figure out how to get my gnome-terminal to launch run tmux -2 on starting. I have tried modifying the Exec lines in the gnome-terminal.desktop file to Exec=gnome-terminal -e -tmux -2 and ...
-1
votes
1answer
28 views

Heroku aliases for zsh

To scale my heroku workers up and down I wanted to add an alias for them because of the frequency with which these commands are used. However when I tried to add the alias it did not work. For ...
0
votes
1answer
19 views

How to make oh-my-zsh recommend uninstalled packages like bash? [duplicate]

I want zsh to recommend packages to install if I insert a command whose package is not installed like in Bash. Like
2
votes
3answers
5k views

oh my zsh for the root and for all user

I have installed zsh and I am using Oh My ZSH plugins. Everything works fine, but when I become a root user, it changes to the normal bash and sh shell. What should I do to make the Oh My ZSH ...
0
votes
0answers
12 views

parse commands options with zsh

Is there a plugin that let zsh parse command's options like the fish shell do ? I really like fish shell, but there a lot of bash tricks missing, like the echo file{1..10..2} and the sudo !! or the ...
1
vote
2answers
38 views

Add the next command line after validating the first command [duplicate]

Is it possible to enter the next command line like this: command1 ; command2; After validating command1? For example I do: make And it takes a long time! I want to say: after this command: do ....
1
vote
1answer
16 views

Cant set HISTSIZE lower than 1

For some reason, I cant set HISTSIZE smaller than 1 $ export HISTSIZE="2"; echo $HISTSIZE 2 $ export HISTSIZE="1"; echo $HISTSIZE 1 $ export HISTSIZE="0"; echo $HISTSIZE 1 $ export HISTSIZE="-1"; ...
0
votes
1answer
235 views

failed to start etc/rc.local error after updating to Wily

After upgrading to Wily I get this error "failed to start etc/rc.local" It also says see "systemctl rc-local.service ubuntu": I am getting problems each time I want to modify /.zshrc it tells me ...
1
vote
1answer
55 views

Can't make bash default shell

I installed ZSH and didn't like it and I want to revert back to bash. I uninstalled ZSH before I tried changing the default shell. I uninstalled ZSH and then ran the commands chsh and sudo chsh --...
0
votes
0answers
41 views

Make world writeable files and directories colored normal in terminal

I have three partitions on my computer, one for windows, one for Linux (Ubuntu 16.04), and one shared between the two OS, formatted in ntfs. I mount the shared partition on startup and created a soft ...
0
votes
0answers
12 views

ZSH - Packages cannot be authenticated (16.04) [duplicate]

I decided to try out a new shell program, thought i'd install ZSH... however i'm can't authenticate zsh-common zsh via apt get. My paranoia tells me not to install anything without auth and I've never ...
0
votes
1answer
44 views

Why is there no /etc/zsh.d/ in ubuntu, and where should I add system-wide options?

I am trying to write an ansible role that needs to add to the PATH. For bash, I can easily add a file in /etc/profile.d. But zsh apparently doesn't come with an /etc/zsh.d. Is there another ...
0
votes
1answer
83 views

How to make a permanent alias in oh-my-zsh?

In my .zshrc I tried to make a few aliases .I looked into a lot of places, but I couldn't find out a way that worked. I used this code below: # Set personal aliases, overriding those provided by oh-...
0
votes
0answers
14 views

Zsh shell font error on Ubuntu Gnome 16.04 [duplicate]

I'm using ubuntu gnome 16.04 and when I try to use Zsh shell instead of bash, its font seem doesn't right: zsh shell with powerlevel9k theme: I would greatly appreciate it if you give me some help,...
3
votes
1answer
39 views

Coloring all output from terminal

Is there a way to make all the output of my terminal colored in a personalized way? e.g: If I issue the command: sudo apt-get update - I will get a column of text and what I want is a way to colorize ...
0
votes
0answers
227 views

xfce4-terminal not showing colors properly on zsh theme prompt

I use zsh with oh-my-zsh and xfce4-terminal in XUbuntu 14.04. If I configure xfce-terminal with xterm-256color, like this: I get this error: *** VTE ***: Failed to load terminal capabilities from ...
1
vote
1answer
212 views

Ubuntu 14 fixing fonts for agnoster

I installed oh my zsh, then I tried to apply agnoster theme, I am almost there but I have a problem with the fonts, my prompt looks like this The problem is that seems that I have a font problem ...
10
votes
3answers
1k views

ZSH removed, cannot relogin

So I have install zsh and I didnt like it. so I did apt-get remove zsh From that point I cannot relogin, i click my user.. and then it just go back to the login screen. I can only login with the ...
1
vote
1answer
233 views

'echo $SHELL' returns 'fish' when I'm using 'zsh' [duplicate]

First I installed fish and then I wanted to test zsh so I installed it. Actually I'm using zsh and it works perfect (at the moment): I can switch themes, enable plugins, etc... But when I do: echo $...
0
votes
0answers
24 views

Issue getting curl option autocomplete working with zsh

Im using Ubuntu 14.04 where the zsh _curl completion script is neither installed by zsh or curl. I came across this email to the debian maintainers which contained instructions on how to set it up. ...
29
votes
6answers
34k 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 ...
4
votes
1answer
299 views

Silence GUI Program's Terminal Output

I am running a zsh function to open a .tex file in vim, while opening its related .pdf file in evince. I am currently using xdotool to open a new tab in the current gnome-terminal window, and then ...
0
votes
0answers
23 views

Get out Git local Branch (Oh my zsh)

im learning to use Git and im also a Oh My Zsh user, and i love it, I've been having a problem lately because of my noob knowledge in Git, im stock inside a local Git branch on my laptop,causing me ...
0
votes
3answers
87 views

argument-aware alias command?

I want to create an alias for curl which automatically writes the file it curls into a file with the same name in the current directory. For example: % curl https://bootstrap.pypa.io/get-pip.py ...
0
votes
0answers
47 views

How do I navigate between directories in terminal like zsh of oh-my-zsh by TAB navigation, but using bash?

I want know how do I navigate between directories in terminal like zsh of oh-my-zsh by TAB navigation, but using bash? I know oh-my-zsh, its directories navigation works perfectly via TAB completion, ...
-2
votes
1answer
115 views

Adding Scala to `PATH` in Zsh

I have downloaded Scala to ~/bin for easy access on my machine; but I seem to have some difficulty adding it to the PATH. On my MacBook I simply added the following to ~/.profile and everything just ...
0
votes
0answers
9 views

Can bash wrapline according to a tab?

Right now in bash, if a string of characters is too long for the window to display, it wraps the text, slicing words in half, and does not keep the tab indentation set at the beginning of the line. ...
125
votes
10answers
44k views

Moving from bash to zsh

I'm considering moving from bash to zsh as I often come across posts praising zsh. I'm an experienced command line user and I'm assuming the basics are pretty much the same, so I'm looking for advice ...
16
votes
4answers
2k views

Configuring to detect if a command does not exist, suggest installation

Can the zsh shell be configured to show what bash shows when a command does not exist, similarly to this: kahless:~$ sysv-rc-conf The program 'sysv-rc-conf' is currently not installed. You can ...
5
votes
1answer
70 views

zsh suggesting what packages to install [duplicate]

I love using zsh but there is one feature that bash has that I miss. It is this one: ➜ ~ bash dbugger@mercury:~$ man2html The program 'man2html' is currently not installed. You can install it by ...
31
votes
5answers
3k views

Why is bash the default shell in most OS?

Why is bash the default shell in most OSes (Ubuntu, Fedora, OSX, etc.)? Why is it that a lot of advanced users mostly use zsh? If it is that good, why is it not the default? I use both I don't see a ...
3
votes
2answers
423 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 ...
2
votes
2answers
335 views

How to get real-time completion/suggestions in Linux terminal? [closed]

I would like to have something similar to everything in windows (using locate): every time I press a key, the file list that matches the current inputs gets updated immediately. I am wondering is ...
13
votes
1answer
10k 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 ...
0
votes
1answer
112 views

~/.zprofile is not read on graphical login when user’s default shell is zsh

I'm using Ubuntu 14.04. I used chsh to set my default shell to /usr/bin/zsh. My ~/.zprofile defines several environment variables, e.g. export EDITOR=vim. Yet after logging in and starting GNOME ...
2
votes
2answers
252 views

deleted .zshrc file and messed up few things

Oh-My-Zsh was working fine. I was editing .zshrc file and somethings messed up. Following this post I tried to reset my zsh. I deleted everything related to zsh. ran: sudo apt-get purge zsh and ...
3
votes
0answers
150 views

Terminator not opening and giving following error

Recently, I have installed zsh shell. After that I tried to open terminator software then it was crashing and giving following error: Also, after installation of zsh, I have set the default login ...
2
votes
1answer
309 views

How do I get terminator to use syntax highlighting?

When sifting through large amounts of input and output in my terminal emulator (terminator in this case) it would come in handy if I had some syntax highlighting available to make things more readable....
0
votes
1answer
259 views

How to make zsh in byobu to be a login shell?

Long story short, I have a zsh setup and I am using gnome terminal. I recently installed byobu and enabled it. Now when I start a new terminal and byobu comes up, my shell is not a login shell. I ...
0
votes
0answers
183 views

How to have changes in ~/.byobu/.tmux.conf take effect without restarting byobu

I want to change my default shell in byobu without restarting it. However, when I modify lines in ~/.byobu/.tmux.conf to do this: from: set -g default-shell /usr/bin/fish set -g default-command /usr/...
3
votes
1answer
5k views

Change the background color of command line in zsh when I change the prompt theme

I installed the zsh package. Also, I downloaded the oh-my-zsh framework to customize zsh. When I change theme name in .zshrc file to one of the themes given here, it changes the color/type of prompt ...
0
votes
1answer
46 views

Anacron can't read ssh keys?

I've set anacron under the non-root user as follows: mkdir ~/.anacron cd ~/.anacron mkdir cron.daily cron.weekly cron.monthly spool etc My anacrontab in ~/.anacron/etc: # /etc/anacrontab: ...
9
votes
1answer
7k views

Error Password: chsh: PAM: Authentication failure when try to install Oh my zsh

I try to install Oh my zsh. After install zsh (sudo apt-get update && sudo apt-get install -y zsh) Then I install sudo apt-get install -y curl then install git. the problems occurs ...
3
votes
2answers
571 views

Terminal Blank Screen after removing zsh

I get blank screen on terminal after removing zsh! I can basically do nothing. Anyone has an idea?
0
votes
1answer
32 views

Interactively select a line in terminal

I'm looking for a program like less that I can pass a bunch of lines of text and have the user interactively select one. This will be used for viewing and selecting shell history, though I will most ...
2
votes
0answers
34 views

How do I add zsh completion for evince with djvu files?

I am using zsh (5.0.2). The auto-completion for evince only shows files of some predefined extensions, amongst which pdf and ps but not djvu. How to make zsh also autocomplete with djvu files on ...
2
votes
1answer
103 views

Remove except some files/directories in a script; need revision

I have the same problem as this question How to delete all the files/folders from the folder except few folders? several times. This is the reason why I wanted to write myself a script for a command ...
1
vote
1answer
86 views

Problem with rename-window in tmux

I have a tmux session called "session1" and two windows both with the name "zsh". I wanted to change the name of my current window to "TeX_Code". Steps were: Ctrl+B : rename-window 'TeX_Code' ...
1
vote
1answer
143 views

Kubuntu 14.10, .zshenv is sourced twice

I have added some directories into $PATH variable in my ~/.zshenv conf file. After reboot I noticed that these paths are appeared twice. I tried to print call stacks and got the following: .zshenv ...
1
vote
2answers
54 views

How can I iterate over shell function completions and alias completions before external command completions in zsh?

As it stands when I hit TAB to iterate over possible completions for a partial command external command completions are iterated first: user@user-X550CL ~ % apt Completing external command apt ...