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

Cannot change shell

I have been researching this for about an hour, and tried all the StackExchange answers I could find. I tried solutions from: Can't make ZSH the default shell ...
0
votes
0answers
7 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
40 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
8 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
15 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
97 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
125 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
48 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
67 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
38 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 ...
0
votes
1answer
16 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
0answers
88 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 attached an image.startup I am getting problems each time I want to ...
3
votes
2answers
327 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
22 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
29 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
79 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
48 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
45 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
121 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
112 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
113 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
121 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
396 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 ...
2
votes
2answers
92 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
119 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
38 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
98 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
84 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 ...
29
votes
5answers
2k 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
183 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
66 views

Creating alias in zshrc from json file

Does anyone know how to create alias in zshrc by reading reading JSON file from local machine E.g.: my JSON file names is ip.json is as {"local":"127.0.0.1"} and want to create alias in zshrc as ...
1
vote
1answer
218 views

“chsh: invalid option — 'l'”

I have installed Zsh via running: sudo apt-get install zsh Using the following guide for installing Zsh provided by oh-my-zsh I attempted to set it as my default shell, namely I ran: chsh -s ...
0
votes
1answer
44 views

Not able to run commands over SSH

I recently changed my .zshrc to remap interrupt from ctrl-C to ctrl-J, and suddenly I'm not able to run any commands on machines that I SSH into. No matter what command I type, it simply ignores it ...
2
votes
1answer
233 views

Getting gnome-terminal to run tmux on start

I am 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 ...
1
vote
0answers
245 views

How to change the default shell used in Byobu without changing user shell?

I've been using set -g default-shell /usr/bin/zsh set -g default-command /usr/bin/zsh in my ~/.byobu/.tmux.config for several years to set the shell that Byobu uses without changing (chsh) my login ...
4
votes
1answer
485 views

gnome-terminal can't set 256 color support correctly with or without tmux

I've been trying to set up 256 color support correctly for quite some time but it seems to never work for me so I'm not even remotely sure what I'm doing wrong. How it looks in the terminal vs gVIM: ...
3
votes
1answer
73 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?
1
vote
1answer
159 views

Where can I find zsh man pages?

I installed the packages zsh and zsh-doc, but when I type man zsh, I get no manual entry for zsh. Where can I find zsh docs?
0
votes
1answer
94 views

how duplicate a oh-my-zsh terminal and retaining the path from previous terminal

In shell zsh command line/terminal when i duplicate the terminal using Ctrl+ Shift + T , it doesn't retain the path i was on my previous terminal. Also Ctrl+Shift+N opens a fresh terminal. Though ...
0
votes
0answers
17 views

How to make Tilda works with zsh? [duplicate]

I followed the steps listed here: http://whaaat.com/content/update-shell-zsh-osx-unix And if I hit ctrl + shift + T, zsh opens up, but if I start Tilda, it still uses bash. BUT, the tricky part: if ...
0
votes
1answer
99 views

Reset terminal after each command in ZSH

I am using Konsole + ZSH in KDE with several tabs open. In some tabs I run different programs -- Python scripts with ipdb and other. At some point I cannot enter new line anymore -- pressing Enter ...
3
votes
1answer
227 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 ...
1
vote
1answer
42 views

The display previous/next command shortcuts doesn't work

I read in some article that Ctrl+P - to display previous command Ctrl+N - to display next command But in my terminal it doesn't work. What might be a problem here? I really would like to display ...
1
vote
3answers
80 views

List hidden files but exclude directories.

Is there a way to list files, but not directories, prefixed with a . (hidden files)?
1
vote
1answer
118 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
0answers
141 views

Where do I find the zsh manual in Ubuntu versions later than 12.04?

At the moment I am learning zsh based on recommendations from friends and colleagues. To my surprise I was unable to find the man page for zsh and a man page named zshmisc which apparently was ...
0
votes
3answers
3k 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 ...
1
vote
1answer
870 views

Changing the background of terminal in ZSH when connected to server

I use terminator as a terminal, zsh shell and oh my zsh, on both my laptop and my server, for what it's worth, I created an alias named vps to connect to my vps using ssh. Currently terminator ...
0
votes
1answer
40 views

Zsh typing problem

I just installed Zsh and wrote my own PROMPT thing so I have custom prompt. I also use emacs formatting in ~/.zshrc which says bindkey -e. Now when I open the shell, for some reason, it acts very ...
1
vote
1answer
3k views

Reset Zsh config?

Yesterday I installed Zsh, and tried to configure some things, but somehow everything is messed up. A lot of commands do not work, I've done PROMPT in ~/.zshrc but it does not work correctly either. ...