Questions tagged [zsh]
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.
82
questions with no upvoted or accepted answers
4
votes
0
answers
1k
views
How to allow ZSH to autocomplete ZFS
System:
I'm running Ubuntu 16.10 with ZFS and ZSH installed.
Expected behaviour:
As the root user, I can press tab to autocomplete zfs commands and paths. It works both in zsh and bash. As a non-root ...
3
votes
0
answers
383
views
WSL zsh Shell Prompt Not Updating
Im running Ubuntu 22.04 under WSL and would like to change my prompt info and look from the default.
I did the following
sudo apt install zsh
chsh -s /bin/zsh
I updated the .zshrc file to be PROMPT='%...
3
votes
0
answers
2k
views
PPAs for updated bash and zsh shells
I would like to use newer versions of bash and zsh.
I've searched google for:
site:launchpad.net bash "ppa"
I've also searched at: https://launchpad.net/ubuntu/+ppas?name_filter=bash
Doing the ...
3
votes
0
answers
2k
views
Windows 10 oh my zsh fonts not working
I recently did the Windows 10 bash and changed my shell to zsh. When I run the themes my font encoding isn't working. I checked a couple things, installed the powerline fonts and have looked at this: ...
3
votes
0
answers
4k
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 '/...
3
votes
0
answers
704
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
1
answer
1k
views
move away all zsh conf files from the home folder
I could move all my zsh related files (.zshrc, .zprofile ...) to $XDG_CONFIG_HOME/zsh setting the variable ZOTDIR="$XDG_CONFIG_HOME/zsh" but there is a file I can't move: .zprofile.
This ...
2
votes
0
answers
3k
views
chsh: PAM: Permission denied
I've seen the other threads on this, but nothing as specific and explicit as mine.
I'm trying change my Shell from standard Bash to ZSH.
Using chsh -s /usr/bin/zsh gets me the following error: chsh: ...
2
votes
1
answer
1k
views
bash in TTY instead of zsh
Ok, ive installed oh-my-zsh and its nice and fancy, but when i switch to TTY, it complains that 256 colors are not supported and all powerline fonts are obviously messed up. Is there a way to set bash ...
2
votes
1
answer
220
views
Whta does alt+/ do in zsh?
Using zsh, suddenly found that pressing alt+/ shows a message:
zsh: do you wish to see all 18221 possibilities (18448 lines)?
After pressing y, it starts listing a long list of item. What is that ...
2
votes
0
answers
3k
views
Oh-my-zsh Agnoster Theme font problem
I installed solarized colors and also the package for coloring ls. After that I installed zsh and the framework oh-my-zsh and now my terminal looks like the following
I do have the solarized colors ...
2
votes
0
answers
134
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 ...
1
vote
0
answers
712
views
pyenv Python 3.11.5 install fails in Kubuntu 23.04
I'm using zsh and oh-my-zsh. I'm doing
➜ ~ pyenv install 3.11.5
and the output is:
Downloading Python-3.11.5.tar.xz...
-> https://www.python.org/ftp/python/3.11.5/Python-3.11.5.tar.xz
Installing ...
1
vote
0
answers
283
views
No such shell function 'self-insert' using Oh My Posh
I'm using Oh My Posh on my zsh terminal (GNOME Terminal). However, every time I type on the terminal, No such shell function 'self-insert' appears on the prompt after the first character is typed.
1
vote
0
answers
167
views
How to auto complete like CSH when using ZSH (prefix ↑)
When using zsh how could I auto-complete like csh, for example, having this history:
9994 vim bar
9995 git add .
9996 git commit -am "test..."
9997 ssh 10.1.2.3
9998 ls
9999 vim ...
1
vote
0
answers
2k
views
How to reset PYTHONPATH to earlier value
I had been tinkering with PYTHONPATH for some work and wrote the following in my .zshrc file:
export PYTHONPATH="someDirectories:aFewMoreDirectories"
I then sourced the .zshrc file and then ...
1
vote
0
answers
1k
views
oh-my-zsh theme doesn't apply completely
I install oh-my-zsh follow the instructions on github-wiki. But something is not right. My terminal still has ui and background color of old ubuntu terminal.
Terminal
My .zshrc config:
# If you come ...
1
vote
0
answers
61
views
How to have a Universal autosuggestion for any code entered once in any zsh terminal
Suppose I type a set of commands in a particular pane of Tmux. The autosuggestion feature of Tmux recognizes and helps in that pane (terminal).
Let me say I started a new pane. The autosuggestion ...
1
vote
0
answers
132
views
Xubuntu 19.10 with ZSH hangs after login in tty
I have oh-my-zsh installed on my Xubuntu 19.10. Sometimes, as (X)ubuntu usually does, it freezes together with the whole X server.
Therefore I wanted to switch to tty1. Once I provided my credentials, ...
1
vote
0
answers
5k
views
ZSH /etc/zsh/zshrc - function definition file not found
I installed zsh and oh-my-zsh across multiple users, and I saw a post about symlinking /root/.zshrc and /root/.oh-my-zsh with $HOME path variable so all users would have the same config files.
ln -s $...
1
vote
1
answer
2k
views
source $HOME/.bashrc conflicts with zsh?
When I do source $HOME/.bashrc, it results in the following:
As you can see, it jumbles up the text where the path of the current directory would be. I am calling this because I am trying to change ...
1
vote
1
answer
7k
views
Issue with oh-my-zsh theme not being fully applied
I'm new to both zsh and askubuntu, so please be gentle. :)
I'm going through this tutorial and have gotten stuck on the section "Changing Oh-My-ZSH Theme". I can apply the theme by editing my .zshrc ...
1
vote
0
answers
682
views
Enable snap TAB-completion for zsh
Does anybody have an idea how to get the TAB-completion for zsh working for the snap command?
According to the answer in How can I enable auto-completion for the snap command? it should be working ...
1
vote
0
answers
348
views
bash filename autocomplete - does it have to use so much screen space?
I have a vague memory of this working in the past, but can't find any info now.
Using TAB in bash to show available filename completions lists them on the line(s) below the command and then reprints ...
1
vote
0
answers
452
views
How do I get zsh 5.xx on ubuntu 18.04
I have a docker container with ubuntu 18.04 on it.
after apt-get update I do:
# apt-get install zsh-beta
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: ...
1
vote
0
answers
358
views
Executable not searched in order of $PATH
When I created a virtualenv for python it inserts a path at the front of $PATH so that I can run project-specific binaries. However when I need to run a program called pip instead of running from the ...
1
vote
1
answer
2k
views
terminal - Remove background color of text in ls (with oh-my-zsh arrow theme)
I am using zsh instead of bash in my Ubuntu Gnome 16.04 machine and I'm very frustrated with the background colors when I do ls because I can barely read the text.
Here's a screenshot of my terminal.
...
1
vote
0
answers
363
views
LS_COLORS failing to source in .zshrc
I've noticed a strange problem with sourcing.
source /etc/zsh/zshrc in .zshrc fails to set LS_COLORS
The last line in /etc/zsh/zshrc:
eval $(dircolors /etc/zsh/DIR_COLORS)
But it has no effect.
...
1
vote
0
answers
345
views
zsh auto completes non-executable files in $PATH when press TAB
I'm using oh-my-zsh, along with some custom scripts that automatically add sub-directories under specific folder to PATH. Taking android studio for example, assume ~/android-studio/bin is included in ...
1
vote
0
answers
38
views
Execute a script each time a non-defined alias/function is used in terminal
Suppose I have a function that is not defined neither as an alias or a function.
How can I set zsh to execute a script each time the alias is not recognized ( e.g edit my ~/.zshrc to add this precise ...
1
vote
0
answers
1k
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 ...
1
vote
0
answers
222
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 ...
1
vote
1
answer
431
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.
...
1
vote
0
answers
95
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" --window-with-...
1
vote
0
answers
653
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 ...
1
vote
1
answer
4k
views
zsh aliases doesn't work from .zshrc file
I want to create an alias to mount some remote file systems locally. I placed lines like this in my .zshrc file:
alias remfs='sshfs rem: ~/mnt/sshfs/rem'
But when I run remfs, I get an error "...
1
vote
1
answer
1k
views
tmux - unable to start any gui application
I am running Ubuntu-gnome 13.04. My default shell is zsh 5.0.0 and I usually run tmux 1.7 in the terminal 3.6.1.
In terminal, if I evince or gedit, the applications start as expected. I can append an ...
1
vote
1
answer
5k
views
Can not root: after removing ZSH and returning to default bash
I can not $ sudo su everytime, I enter the command, the terminal says :
can not execute /usr/bin/zsh no such file or directory
How to return to default bash of Ubuntu and make bash as default ...
0
votes
0
answers
52
views
removing zsh broke my terminal
I ran this code sudo apt-get --purge remove zsh to delete zsh and now my terminal has this output:
and when accessing through powershell:
<3>WSL (556) ERROR: CreateProccessEntryCommon:502: ...
0
votes
0
answers
34
views
Problem with OhMyZsh installation
Basically, I was installing ohmyzsh on Ubuntu because I'm learning about terminals and personalization.
But when I finished the installation of the ohmyzsh, I think the root directory changed by ...
0
votes
0
answers
88
views
zsh menu select doesn't work
On my previous laptop when I did an ls foobar/ then I could navigate the menu and select things. Now I can't. Here's what I have, set up by Ubuntu 22.04:
autoload -Uz compinit
compinit
zstyle ':...
0
votes
0
answers
113
views
Unable to resume from suspend due to zsh as default shell - why?
I've been bothered by a problem where my workstation won't resume from suspend. When the PC is powered the power button is fully lit, and when it's suspended the button is blinking. Pressing the power ...
0
votes
0
answers
317
views
Snaps don't launch after fixing issue with them not appearing in launcher
I'm having an issue where my Snap apps are not launching whenever I click on them.
The first issue was that they weren't showing up in the launcher, but I did some digging and it seems it was related ...
0
votes
1
answer
271
views
Terminal opens neovim instead of vim
I use Ubuntu with the zsh shell, and when I try to open vim with the vi or vim command it opens neovim instead. I tried using the original bash shell, but it still didn't work. I tried sudo update-...
0
votes
0
answers
707
views
Backspace not working as expected on Alacritty
I just installed Alacritty through the app store on top of zsh and oh-my-zsh, I had it before on a previous installation of Ubuntu without any zsh related stuff where everything was fine.
The ...
0
votes
0
answers
309
views
How to set zsh terminal's error message language to English?
I installed zsh but found the error message is Chinese, which is the local machine's language. I want to set it to English.
I edited my ~/.zshrc file and set
export LANG=en_US.UTF-8
.
After reboot my ...
0
votes
0
answers
59
views
Unable to use terminal
The terminal colour changes automatically, but I am not able to use the terminal for executing the commands. I have used pywal and the code used is:
while true
do
wal -q -i /home/amithkumar/Pictures
...
0
votes
0
answers
149
views
Is there a way to include Behind / Ahead info in oh-my-zsh Prompt?
I know using the below command, we can get the results of commits that is Behind and Ahead.
git rev-list --left-right --count origin/master...`git branch --show-current`
But I would like to know, if ...
0
votes
0
answers
226
views
Find command with ZSH based on a list of files
I was used to running BASH but I recently discovered ZSH and I have to say that it works well. However I have a problem with the find instruction below.
Let's say we have 3 webp files and one listing....
0
votes
1
answer
227
views
How to run xargs in the background?
I have created an alias to search a certain directory for pdf files and open it via xdg-open. The problem is it doesn't run in the background.
Here's my alias:
fd . ~/Documents/books -e pdf | fzf | (...