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
0answers
28 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
9 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
27 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
0answers
217 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 ...
0
votes
1answer
43 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 ...
0
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 for easily Everything works fine, but when I become a root user, it changes to the normal bash and sh what should I do to make the oh my zsh ...
0
votes
0answers
12 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 ...
3
votes
1answer
31 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
78 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
79 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
766 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
226 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
16 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. ...
25
votes
6answers
27k 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
275 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
18 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
85 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
31 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
75 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. ...
124
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
40 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 ...
30
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
381 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
208 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
9k 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
83 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
184 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
125 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
252 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 ...
0
votes
1answer
201 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
114 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 ...
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
37 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: ...
8
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
469 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
27 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
32 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
93 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
68 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
137 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
49 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 ...
0
votes
0answers
134 views

Remapping Caps Lock to Control and Escape in 15.04

I have been using xcape to modify the behavior of Caps Lock. I want tapping Caps Lock to be interpreted as Escape, and holding it to be interpreted as Control. In my zshrc, I have the linexcape -t 0 ...
2
votes
1answer
140 views

Start new gnome-terminal with several tabs and wait after command is run

I want to start a new gnome-terminal window with some command in multiple tabs. Based to this question: gnome-terminal --tab -t "FOO" -e "/bin/zsh -i -c 'cd $(pwd); zsh -i'" \ --tab -t ...
5
votes
2answers
4k 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 ...
3
votes
1answer
172 views

Nautilus-Open-Terminal tries to open ZSH instead of bash

I recently tried zsh as a shell but didn't like it much. Then removed it and I still continue to use bash. When I was using bash, I had this cool script 'nautilus-open-terminal' which lets you open a ...
1
vote
1answer
736 views

How can I use ZSH when I use sudo commands but not as default root shell?

So, I would like to keep bash as the default shell for root. But, I would prefer to use zsh, my shell, when I run sudo commands, and that sudo executes also the .zshrc in /root. For testing ...
3
votes
1answer
89 views

How does one get tab-completion in gsettings from zsh?

I notice that when using the bash shell (for example) the gsettings command has tab-completion; but when I use the Z shell (zsh) gsettings has no tab-completion. How can I enable it?
2
votes
2answers
137 views

Is it possible to specify a different zshrc file on login over ssh?

I spend all day ssh'ing into servers for work and the remote user is one that is shared by myself and several colleagues so I can't just blindly customise the shell as not everyone will want my tweaks ...