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
48 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
0answers
23 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
35 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
30 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
0answers
27 views

ZSH amuse theme unicode charters fail

I have installed ZSH on my Ubuntu 14.04 LTS and I chosed "amuse" theme. It works pretty fine, but the characters that represent branch does not appear correctly in my terminal. I installed all fonts ...
1
vote
2answers
38 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
70 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
28 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
42 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
46 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 ...
26
votes
5answers
1k views

Why bash is the default shell in most OS?

Why is bash the default shell in most os ubuntu, fedora, mac ...etc and why is it that a lot of advanced users mostly use zsh and if it is that good why is it not the default? ps I use both I don't ...
1
vote
0answers
59 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
38 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
121 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
37 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
83 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
1answer
108 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
290 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: ...
2
votes
1answer
38 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
93 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
59 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
63 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 ...
0
votes
0answers
77 views

zsh suddenly lost the ability to search history with up/down arrow keys

I am using Trusty with zsh from official repos. The resource file is very simple with a loading of oh-my-zsh. Everything was smooth until a few days ago, using up or down arrow keys suddenly failed ...
3
votes
1answer
138 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
38 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
76 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
88 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
111 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
0answers
48 views

Problems installing Betty in zsh

I tried to install Betty in zsh like that: cd ~ && git clone https://github.com/pickhardt/betty echo "alias betty=\"~/betty/main.rb\"" >> ~/.zshrc source ~/.zshrc I installed her in ...
0
votes
2answers
2k 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
659 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
36 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
1k 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. ...
7
votes
1answer
5k 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 ...
2
votes
1answer
121 views

Enable Zsh prompt username

So I just installed Zsh, and it shows for each command arrow and then ~. How do I enable my username@computername or something similar? I am reading https://wiki.archlinux.org/index.php/zsh but cannot ...
3
votes
4answers
11k views

When I use ZSH, how do I set PATH in /etc/profile.d?

I'm using zsh as my shell, and I'm trying to configure my environment. I usually define my $JAVA_HOME variable by creating a file: /etc/profile.d/java.sh with the following content export ...
0
votes
2answers
560 views

How to fix symbolic links after switching from Bash to ZSH

I had bash as my default shell even though I was only using zsh. I always started it myself by opening the terminal and typing zsh. Today I decided to use it as my default shell. So I found this ...
1
vote
1answer
128 views

Upstart sub-command tab completion with zsh

I've just recently switched to ZShell, and am loving it so far. One issue I'm having however is that my init.d or upstart scripts used to have tab completion for their subcommands, but now it doesn't. ...
0
votes
2answers
60 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 ...
5
votes
2answers
3k views

How to run zsh and tmux with xterm-256color by default

I am using ubuntu gnome 14.04 and I want to have tmux and zsh opened when I start a new terminal. For now, in my preference of the terminal, I run tmux by default. In the ~/.tmux.conf file I have ...
2
votes
1answer
907 views

Can't set alias in zsh — command not found?

I'm trying to set alias conky-lua ="conky -c ./.conky/conkyrc &" so to start conky-lua. but when I source .zshrc it says command not found. A possible solution that I found on Stackoverflow is to ...
0
votes
2answers
103 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 ...
13
votes
2answers
3k 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 ...
3
votes
1answer
241 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
59 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
92 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
196 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
233 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 ...
16
votes
5answers
1k views

zsh man page documentation missing in packages?

I have a newly installed xubuntu 13.10 x64. I decided to install zsh via synaptic and make it my default shell. The installed zsh's version is: zsh 5.0.2 (x86_64-pc-linux-gnu). The installed zsh ...