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
21 views

Error “Can't drop privileges” when trying to download zsh

I am trying to download zsh onto my Ubuntu server but I'm receiving this message of permission denied: ~# apt-get download zsh Get:1 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 zsh amd64 5....
2
votes
1answer
6 views

How to fix “zsh compinit: insecure directories”?

When I run fakeroot in zsh it always gives me this warning: zsh compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]? I can ...
0
votes
0answers
15 views

How to start byobu everytime I start a terminal when using zsh as default shell?

I'm using zsh as my default shell. I installed byobu and it seems to work fine, however I have to launch it manually every time I start a terminal instance (Ctrl+Alt+T). I checked byobu-config and ...
-1
votes
1answer
29 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
0answers
13 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
42 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
20 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
28 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
1
vote
1answer
59 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
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
0answers
42 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
1answer
53 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
136 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
16 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
41 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 ...
2
votes
0answers
340 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
300 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 ...
1
vote
1answer
240 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 $...
10
votes
3answers
2k 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 ...
0
votes
0answers
34 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. ...
0
votes
0answers
24 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
0answers
49 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
135 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. ...
5
votes
1answer
85 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 ...
2
votes
2answers
429 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 ...
2
votes
2answers
292 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 ...
0
votes
1answer
123 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 ...
3
votes
0answers
161 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 ...
0
votes
0answers
204 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/...
0
votes
1answer
51 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: ...
0
votes
1answer
246 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 ...
3
votes
2answers
654 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
34 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
37 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
111 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
90 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
2answers
57 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
155 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 -...
3
votes
1answer
181 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 ...
0
votes
1answer
286 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 ...
3
votes
1answer
232 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
1k 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 purposes,...
2
votes
2answers
171 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 ...
1
vote
2answers
211 views

In Bash or ZSH, is there an opposite to the `clear` command?

Typing clear into a shell creates a bunch of new lines until the output history above is all but hidden. Is there a command or method that does the opposite of clear? That essentially moves your ...
3
votes
1answer
48 views

Need help with variables like $current_dir, $user_host etc

I am pretty new to Linux so please bear with me here :) I want to customize my shell prompt (in zsh). Right now it looks like this (not written by me): PROMPT="${user_host} ${current_dir} ${...
0
votes
1answer
175 views

Problem with adding path using zsh

I added a directory modifying ~/.profile and adding export PATH=$PATH:/home/...etc etc. But I realized that using zsh terminal I couldn't use the recently installed binary until I logged out from zsh. ...
2
votes
1answer
102 views

oh my zsh binaries

I am trying to set a few permanent aliases in my terminal export PATH=$PATH:/Applications/orca alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl' alias chem='wine "c:/...
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 ...
2
votes
1answer
341 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....