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.

Filter by
Sorted by
Tagged with
0
votes
1answer
38 views

Command name printed after executing

After running any command, the first thing to print is the name of the command itself. Example: ~ > echo "test" echotest ~ > cd Downloads cd% ~/Downloads > Interestingly, opening tmux ...
0
votes
0answers
7 views

zsh configuration: what files are read during login and terminal session creation

Given the popularity of zsh configuration utilities I'm finding it difficult to find info on the bare bones of zsh configuration. So what files are involved during login to a zsh session in the ...
1
vote
0answers
26 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
0answers
30 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, ...
0
votes
2answers
28 views

Change duplicated extension of multiple files recursively from the command line

My question is almost the same as those, however, its solution doesn't work my for my case. I'd like to remove duplicated extension (in my case .zip.zip) and have only one (i.e. .zip). I tried: ...
0
votes
0answers
19 views

Lots of apps disappeared from menu start after installing oh-my-zsh

I no longer can launch most of my apps: from the menu start (that is, the search doesn't return the app sought for) from commandline (code says there's no such command) from context menu (that is, ...
1
vote
2answers
53 views

How do I enable zsh package suggestions as in Ubuntu bash?

I'm slowly transitioning to zsh from bash and am loving almost every part of it, but there are two things I'm really missing. One of them is snap completions, see here: Enable snap TAB-completion for ...
0
votes
0answers
17 views

ZSH do not remeber github id

I recently switched to zsh and oh my zsh and now every time i want to push in my github account, I have to give my username and password. It is not remembering it. Bash still remembers it. How to ...
0
votes
1answer
25 views

Progressively resizing a pane, by keeping an arrow button pressed

When pressing CTRL + B, ← (or another arrow key) I am able to resize the current pane of one step only. I was expecting to be able to resize the pane progressively by keeping the prefix and arrow ...
0
votes
1answer
34 views

Switching to ZSH Bricked My Mac Mini

I'm running Unbutu 18.04 on a Mac Mini with a single boot (i.e., no MacOS image). I wanted to switch to the zsh shell. I ran the command: sudo apt-get install zsh I then ran: zsh --version and ...
1
vote
0answers
37 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 ...
0
votes
0answers
83 views

18.04 won't load ohMyZsh.sh source every time

I installed zsh and ohMyZsh on my system ubuntu desktop 18.04. Although xsh is the default shell, I always have to run the command source $ZSH/oh-my-zsh.sh to load the theme. How can I set up my ...
0
votes
0answers
194 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 $...
0
votes
0answers
17 views

Docker misbehaving after removing zsh and switching back to bash. How to solve the give error?

I installed zsh and oh-myzsh to customize my terminal but switched back to normal vanilla. I followed this to remove my zsh. Recently working with some projects I had to remove and reinstall docker ...
0
votes
1answer
137 views

ZSH Alias with Multiple Commands giving “command not found”

I am using this series of commands to build and run a docker container. The commands work when combined with && and give output like this: > docker stop $(docker ps -a -q --filter ...
1
vote
1answer
57 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 ...
0
votes
1answer
99 views

Issues with using oh-my-zsh on WSL Bash (on Windows using Ubuntu)

I am having issues running executables such as terraform, docker, pip, and sam. Whenever I run in the command line I receive an error for each of these executables: "Command not found". However, if ...
0
votes
0answers
51 views

Cron hitting script, not executing ZSH zmv command

Ok, I've done a fair amount of browsing and testing, and I still cannot get an embedded zsh script to execute from cron though it works as expected from the command line. I've reviewed posts topics ...
0
votes
0answers
437 views

WSL: OpenSSL SSL_connect: SSL_ERROR_SYSCAL

git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k Cloning into '/home/po/.oh-my-zsh/custom/themes/powerlevel9k'... fatal: unable to access 'https://...
0
votes
0answers
25 views

zsh echoes tab, ^A, etc

Ever since my upgrade to Ubuntu 19.10, zsh fails to recognize TAB and control characters like ^A, ^C, etc. For instance, if I type ema and press TAB, zsh just inserts a tab character after the ema, ...
0
votes
0answers
77 views

Update ZFS Auto-complete

I used this guide to migrate from Windows 10 to a Linux environment. Now I'm having a little problem with autocompletion on zfs commands, autocomplete is not up to date and completes using old ...
0
votes
0answers
62 views

Changing /bin/sh to zsh crashes man pages

Just a general curiosity: Man pages on my Ubuntu 18.04.03 stop working when I change /bin/sh to zsh with following error: man: nroff: Bad system call (core dumped) What I did was: rm -rf /bin/sh ...
0
votes
1answer
592 views

Why does my machine display a different hostname?

I installed ZSH today and whenever I use it, my hostname changes. Outside of ZSH it is: mus@MyMachine However, when I run zsh it then displays as: mus@x86_64-conda_cos6-linux-gnu I have searched ...
1
vote
3answers
88 views

Create files with exact name as in a given directory

Say there is a directory foo where there are files: $ ls 001.mp4 002.mp4 While being in another directory bar I'd like to have the same files as in bar but empty. What have I tried so far: When in ...
0
votes
0answers
44 views

zshrc custom list does not work

I installed zsh to replace bash. When I configure some custom list in ~/.zshrc, like source /home/stu/AGV/Mini-PC/ViJie_AGV/devel/setup.zsh and then open a new terminal, it doesn't work. I get ...
2
votes
1answer
1k views

Fonts missing in oh-my-zsh on WSL

Im trying to setup Oh-my-zsh on WSL Ubuntu 18.04 with agnoster theme I already follow this guide : https://blog.joaograssi.com/windows-subsystem-for-linux-with-oh-my-zsh-conemu/ I've installed all ...
4
votes
2answers
570 views

How to set zsh as default for gnome terminal only?

I have configured my account to use zsh as default shell -with one of the helpful Oh-my-zsh themes. The theme requires some special fonts and rich colour scale. When I switch to terminal (e.g. by Ctrl+...
0
votes
0answers
65 views

How to pass a variable from terminal to a new terminal?

If I am on terminal A, and open new terminal/new window/new session B; would it be possible to pass a variable, or some value, to new terminal B? For example, if I am in directory ~/foo, and open new ...
1
vote
1answer
107 views

Where do my autocompletion colors come from?

When I ls in a directory, the colors are printed as in the top example. These colors are controlled with Edit → Preferences → Colors → Palette, which I have set to Solarized. However, I have no idea ...
1
vote
1answer
46 views

Is it possible to switch shells without getting dumped into the old shell by exit?

For example, let's say I have bash, sh, fish, zsh, pwsh or more installed. If I start bash, switching into sh leads to the following: user@device:/folder/directory$ sh $ exit user@device:/folder/...
1
vote
1answer
65 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 ...
0
votes
1answer
38 views

How to use zsh without affecting others?

I have installed oh-my-zsh in a remote machine and powerline fonts in local PC. This mean if I use zsh, the special characters will not display correctly in other people's terminal. How to make zsh ...
1
vote
2answers
635 views

How do I hide the hostname in my terminal

I'm using zsh with powerlevel9k theme and I would like to know how to remove hostname from my terminal. This is how my terminal looks right now: I would like to change it to only show kathi instead ...
2
votes
1answer
183 views

Why do I get a redundant % (percent sign) when I run Java code in VSCode?

When I use Java in VSCode, I get an extra % in the output, like this: but I didn't input % My env: java version "1.8.0_201" javac 1.8.0_201 zsh My code: class Shuffle1 { public static ...
0
votes
0answers
33 views

How to fix 'Load time in my ubuntu zsh its more than 7-8 sec'

I am using zhs on my ubuntu and i install zsh + color theme and it was working fine on 1st day but after few days its taking a lot loading time, even i have ssd it should not take that much time. i ...
0
votes
1answer
2k 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 ...
0
votes
0answers
77 views

No spaces in command prompt when using tmux

I pulled pytorch/pytorch:1.1.0-cuda10.0-cudnn7.5-runtime from Docker Hub, and install tmux and zsh in this docker. At first, after I start tmux, it displays an extra space in tmux, I added the ...
0
votes
1answer
396 views

Zsh doesn't see some CLI

I've just installed Zsh / oh-my-zsh to apply some style and helpful functions to my terminal but it isn't working well. Here what I did: sudo apt install zsh and then I cloned oh-my-zsh with: git ...
1
vote
0answers
334 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 ...
3
votes
1answer
3k views

sudo -su: Command not found

I'm doing this in a .sh script which I'm calling like this sudo ./script.sh: user=${SUDO_USER} # ="alex" sudo -su ${user} node Result: /bin/bash: node: command not found Same goes for other ...
0
votes
0answers
129 views

Set the default zsh for a domain user

Good day! I use Ubuntu 18.04. Tell me how to set the default zsh for a domain user? When I try to run the command chsh -s $(which zsh) I get a message user does not exist in /etc/passwd. And it is ...
1
vote
1answer
176 views

Kde menu items disapeared afte zsh set to default shell

I installed oh-my-zsh and set zsh as my default shell. chsh -s /bin/zsh After that many menu items in KDE menu disappeared. For example Telegram, starting with: env AMF_DESKTOP_FILE_HINT=/var/lib/...
1
vote
0answers
179 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 ...
3
votes
1answer
71 views

Cannot configure all terminal colors

I am trying to configure my terminal to make all colors visible against a light background. I am using terminator. There seem to be colors that I cannot set. In the following screenshot, you can see a ...
1
vote
1answer
719 views

Zsh coloring like bash

I want my zsh shell to look exactly like bash shell(in terms of default coloring) but my zsh shell's text is plain white. I identified this part of .bashrc which I think adds the green color to user@...
0
votes
1answer
64 views

How does linux understand multiple periods in changing directories

I can do (say) cd ... to go back 2 directories but ... is not listed in the output if I do ls -a. So how does linux understand that I want to go up 2 parent directories? I understand that . and .. are ...
1
vote
0answers
96 views

Missing software that are installed in system [duplicate]

I have Ubuntu 18.04. I am running with an issue. Some of the packages installed using the default Software store application like Postman, Spotify are somehow are not showing in app tray but are ...
0
votes
2answers
458 views

How do you escape “-” in a command in the Shell (Zsh)? [closed]

I am trying to rename a file named "-a" to "a" using the command line (zsh shell). I have tried the following mv \-a "a" mv '\-a' "a" mv "\-a" "a" but got mv: illegal option -- a usage: mv [-f | -...
2
votes
1answer
2k views

Create alias with oh my zsh

Bit confused here, within the ~/.zshrc file I have specified the following: # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. Aliases can be placed here, ...
0
votes
0answers
76 views

chaning git checkout behaviour in zsh

I'm follwing this link on how to use git checkout auto-completion for only local branches. I first used it on my bash shell as follows (Used this link as a reference. Also, commented out the original ...

1
2 3 4 5