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

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
30 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
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
1answer
44 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
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
32 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
85 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
81 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
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 ...
10
votes
3answers
800 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
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. ...
0
votes
0answers
20 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
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
77 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
42 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
216 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
187 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
87 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
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 ...
0
votes
0answers
117 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
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: ...
0
votes
0answers
218 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
475 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
94 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
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
141 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
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 ...
3
votes
1answer
173 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
745 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
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 ...
1
vote
2answers
172 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
44 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
135 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
93 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 ...
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 ...
2
votes
1answer
255 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
83 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
271 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
53 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
410 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
307 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
587 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
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?
1
vote
1answer
210 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
107 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 ...