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
0 answers
21 views

ssh to zsh (remote server) : what caution to take before to operate?

When opening my terminal, I am prompt to change default interactive shell from ssh to zsh, and I would not hide from you that this operation is a little frightening to me. /// Q1 /// Should I expect ...
user avatar
  • 1
0 votes
0 answers
19 views

Switch to zsh only for current user after ssh into remote server using sudo?

As title. I just sshed into my lab's server and it's Ubuntu 20.04 LTS. But I'm a macOS user and I have gotten used to zsh, but the shell of the Ubuntu 20.04 LTS server defaults to /bin/sh. My current ...
user avatar
  • 101
-1 votes
1 answer
17 views

zsh vs zsh-static

What is the difference between the zsh and zsh-static packages? Why are there two ZSH packages? Which one should I install if I want to use ZSH as my shell? (Ubuntu version: 20.04 focal fossa).
user avatar
  • 425
0 votes
0 answers
24 views

Terminal crashes on startup (zsh not found) [duplicate]

Terminal crashes on startup, I previously install zsh and set it as the default shell Then, I removed zsh without changing default shell. please help!!
user avatar
0 votes
0 answers
11 views

su: failed to execute /usr/bin/zsh: No such file or directory [duplicate]

I was playing around with my terminal and out of curiosity, I installed zsh. Later on, I decided to get back to bash. So I followed some online advice and I was suggested to simply use the below ...
user avatar
2 votes
1 answer
95 views

Enable Command Not Found messages in Zsh

I found out how to allow the "... command not found but can be installed with..." to appear in Oh-my-zsh by adding source /etc/zsh_command_not_found to my .zshrc. But now, when I type a ...
user avatar
0 votes
0 answers
46 views

Made my user disappear

Recent I installed zsh and made it my default shell, but then I wanted the old one back and decided to uninstall using command sudo apt-get --purge remove zsh. When I restarted my computer my user had ...
user avatar
0 votes
4 answers
649 views

Changing zsh-autosuggestions color

I have installed zsh-autosuggestions plugin in oh-my-zsh. I'd like to change the colour of the text which comes in suggestion. My current color is very similar to that of what comes before. Please see ...
user avatar
  • 169
2 votes
1 answer
246 views

How can I set up shell the same way as in Kali?

Used kali for a while, it has an awesome zsh now, can I install it on ubuntu? I installed zsh but it doesn't look like on kali. No color differentiation between directories and files, overall gui ...
user avatar
0 votes
1 answer
146 views

Getting org.freedesktop.DBus.Error.AccessDenied error only in VScode integrated terminal - connecting ZSH with spotify

I've edited powerlevel10k ZSH theme to show songs currently played by Spotify in terminal window - works perfectly, except of VS code integrated terminal. Both Spotify and VS code are installed via ...
user avatar
  • 11
0 votes
2 answers
81 views

I can't find my alias file

Some time ago I created an alias which is still working (base) Mac-mini ~ % type Iridis Iridis is an alias for ssh ... I want to modify this alias but when I go to nano ~/.bashrc the file is empty. ...
user avatar
4 votes
1 answer
102 views

How can I change rubberband colour on Desktop?

(Sorry for any bad English) Lately, I have been customizing my system (Ubuntu 21.10 themed with Yaru Dark and Zsh as shell with powerlevel10k theme). I set it all up, including a cool colour palette. ...
user avatar
0 votes
0 answers
26 views

How to get `Command <insert command> is available in the following places` in zsh

[SOLVED] I just wanted to ask if anyone knows a plugin or any way to get this functionality in ZSH (picture is on bash): I'm running Ubuntu 20.04 LTS, zsh 5.8 with zinit as my plugin manager Thanks ...
user avatar
0 votes
2 answers
155 views

Unable to launch browser from shell - it opens VSCode instead

I have a problem when some shell command is trying to launch my browser. Example below with browse command, but same with jupyter notebook. It looks like the target is opened in VSCode instead. I'm ...
user avatar
  • 3
1 vote
0 answers
35 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 ...
user avatar
  • 166
0 votes
1 answer
47 views

Move to folder without using "exec"

In my VM, my projects are at /var/www/vhosts/projectname/httpdocs/. When I boot the machine, I start at /home/vagrant/. I created a script that instantly takes me to the project I want. The problem is,...
user avatar
  • 3
0 votes
1 answer
56 views

My display name doesn't look how it is supposed to

I installed "Oh My Zsh" in Ubuntu and as I understood my terminal should look like this: ➜ ~. I don't understand why instead it looks like this: risy-ZenBook-UX425JA-UX425JA%. Do you know ...
user avatar
3 votes
1 answer
169 views

Can not call defined funtions from .bashrc

I have a function in .bashrc like this: function gs () { cmm="$1" if test -z "$cmm" then cmm="This is Manh Cuong's commit 🌻." fi git add . && ...
user avatar
0 votes
0 answers
52 views

Weird symbol when ssh to remote machine

I am using powerlevel10K and oh-my-zsh3 The local terminal looks fine, but when I use ssh to connect to remove machine, it keeps showing the strange symbol, any ideas how to get rid of it?
user avatar
  • 101
0 votes
2 answers
192 views

When i open kate from terminal, i get multiple messages so How do i get rid of those messages?

$ kate Icon theme "gnome" not found. Icon theme "ubuntu-mono-dark" not found. Icon theme "Mint-X" not found. Icon theme "elementary" not found. Icon theme "...
user avatar
  • 1
2 votes
2 answers
344 views

Getting defining function based on alias `z' error everytime open the terminal

Getting this bellow error every time when opening my terminal (ZSH using) (eval):10: defining function based on alias `z' (eval):10: parse error near `()' Also why getting this error after every time ...
user avatar
0 votes
0 answers
35 views

How to sort characters with their occurrence in a file, alphabetically and also when the amount of occurrence is the same?

So I have, for example, the following output on the Ubuntu terminal: 238 E 150 A 88 T 88 R Now I want to sort it from the highest occurrence to the least which I have already done. In addition I also ...
user avatar
1 vote
1 answer
997 views

zsh: Understanding command output from wc and passing it to other commands

I'm trying to create a complex command (using shell substitutions and arithmetic expressions) and I was wondering if anyone could helpme understand the output of the wc command. For instance, here are ...
user avatar
0 votes
0 answers
202 views

zsh plugin -- zsh-syntax-highlighting cannot be installed

I have installed zsh, git, and oh-my-zsh, but i got an error like this: enter image description here I'm running Ubuntu 20.04 LTS I have .zshrc and ./oh-my-zsh located in $HOME I've googled around for ...
user avatar
3 votes
1 answer
322 views

Open terminal / Run terminal apps with different shells

My default shell is zsh (with oh-my-zsh and other plugins) and everything works fine. On the other side I'd like to -- have new menu, which opens "bash terminal" (gnome-terminal with runs ...
user avatar
0 votes
1 answer
59 views

How to create a config for your find and delete script [closed]

I have a script that does the following task: Search in a directory for a file with the determined criteria. find Documents/Files/Logfiles/ -mtime +1d -type f '(' -name '*.log' -or -name '*[0-9].*' ')'...
user avatar
  • 15
0 votes
1 answer
113 views

login shell check is not working in .profile

Ubuntu 20.04, 5.8.0-63-generic, gnome-shell, gdm3 My login shell is set to /bin/sh and I have this line in my $HOME/.profile file: shopt -q login_shell > /dev/null 2>&1 || export SHELL=/bin/...
user avatar
  • 163
4 votes
1 answer
240 views

Set parameters for Ubuntu's alias

I have an example command as follows: g++ main.cpp -o main -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_imgcodecs -I/usr/local/include/opencv4 Running the entire above command will create ...
user avatar
1 vote
1 answer
78 views

ZSH is not showing current path's .deb files

I am trying to install clapper from the .deb file in my Ubuntu 20.04. Last night I installed and configured ZSH for the first time. I think I made some errors during config, as the following happens. ...
user avatar
0 votes
0 answers
52 views

WSL ZSH Always Defaulting to Root

I've created a new user and set it with export DEFAULT_USER="<username>" in both my .zshrc and .bashrc files. I've run ubuntu2004.exe config --default-user <username> from the ...
user avatar
  • 1
4 votes
1 answer
476 views

Duplicate system PATH variable (snap/bin:/snap/bin)

When I run echo $PATH the duplicate output snap/bin:/snap/bin appears at the end and seems unusual. /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/...
user avatar
  • 69
0 votes
1 answer
264 views

How does `chsh -s $(which zsh)` work?

I changed my shell recently to ZSH, I heard people say they liked it a lot more than the default BA shell or BASH. Everything went fine, followed a guide word for word, and the guide did not miss lead ...
user avatar
  • 151
0 votes
0 answers
16 views

`source ranger` only works on second invocation

I open a terminal then type source ranger I get /usr/bin/ranger:17: command not found: zle_bracketed_paste I type source ranger again and it works. How can I fix this? ranger --version ranger version:...
user avatar
0 votes
1 answer
78 views

variable substitution

I found this on shell script, in variable substitution option using cap symbols can anyone explain the logic of this nf=${f:gs^__^/^} for f in notes__* books__*; do nf=${f:gs^__^/^} perl -p -...
user avatar
1 vote
1 answer
108 views

Find command shows the files are present but not found inside the directory

I tried search a files using following find command find . -type f -mtime +18 -name '*[-.]20[0-9][0-9\-]*' -exec basename {} \; I can see the files output like . handh2.access.20210429.bz2 handh2....
user avatar
1 vote
1 answer
236 views

How do I concatenate multiple files in multiple directories with their names?

I have multiple files that contain codes, and am trying to merge them in order to print it out. They spread out in multiple directories. For example, I have directories like: root / \ dir1 ...
user avatar
  • 13
0 votes
0 answers
80 views

dot gitconfig file not reflecting when switch user on ubuntu 20.04 lts

gitconfig not reflecting after switching to user Today i have installed Ubuntu20.04LTS . In that i had a user bob and his git config is like user.name=Bob B user.email=bob@example.com alias.unadd=...
user avatar
2 votes
1 answer
380 views

Snap apps broken with Ubuntu, KDE Wayland, and ZSH

Issues I had Icons when launching via snap run <appname> were the default X icon, not the ones provided by snap Trying to get OAuth working with things like Todoist (Google SSO in browser, ...
user avatar
0 votes
1 answer
285 views

Command `ip a show` in `zsh` not working

I have an Ubuntu 18.04 distro in which I use zsh as default shell instead of bash. Since I like the Kali Linux zsh setup, I copied the .zshrc config file to the Ubuntu machine and my shell seems to ...
user avatar
  • 130
1 vote
1 answer
391 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 ...
user avatar
0 votes
1 answer
37 views

Odd behavior adding to $PATH - ZSH

ZSH 5.8 Everywhere I've seen, the method I keep seeing for adding a directory to my ZSH $PATH has been adding to my .zshrc export PATH=/what/i/add:$PATH and while this did add what I wanted to my path,...
user avatar
2 votes
0 answers
611 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: ...
user avatar
  • 21
0 votes
0 answers
139 views

Whenever I open terminal , My terminal is running some process but why?

I am new to ubuntu . I have never used any linux based OS before .I am using zsh shell . I was setting up a development of a open source project on my machine for open source contribution . I followed ...
user avatar
0 votes
1 answer
232 views

How i can change my splash screen with zsh terminal?

Guys I install a bad splash screen and my KDE desktop is broke and not loud bet I have access to my terminal so I want to change my splash screen by terminal maybe my problem is fixed I use Kubuntu 20....
user avatar
5 votes
2 answers
2k views

Can't fix an error inside of WSL because it's causing WSL to crash

Old question: "Removed zsh, but forgot to change shell back to bash, and now Ubuntu crashes (wsl)" Note that @steeldriver's answer works for my new question as well. I have been trying to ...
user avatar
2 votes
1 answer
47 views

Nautilus opens the home directory only, then proceeds to hang, and make the zsh terminal unresponsive to commands

I've been having this issue with nautilus, where when i open the terminal and I'm on the home directory, and i run nautilus. I noticed that no matter what directory i was in, it always opened the home ...
user avatar
0 votes
1 answer
532 views

autojump bug - /usr/bin/env: ‘python333333’: No such file or directory

While running cd, i always get a message like this, and i observed the number of 3's keep increasing as i close the terminal and reopen it. I tried uninstalling autojump and installing it again, and ...
user avatar
0 votes
1 answer
553 views

Prevent new terminal from being opened in the same directory

I have installed the following on Ubuntu 20.10 zsh Oh my zsh terminator When I open a new tab or split window in the terminator, I find that the current working directory is copied from the previous ...
user avatar
10 votes
1 answer
6k views

How to know what plugins are installed in my Oh My Zsh

I want to install 2 Oh My Zsh plugins, but I don't know their names. My brother had also downloaded them some years ago, but he doesn't know their names either. How can I know what Oh My Zsh plugins ...
user avatar
2 votes
1 answer
2k views

zsh true color disabled on WSL2?

Using Various Terminals for Win10 with WSL2 ubuntu 20.04 with Powerline10k. Tested color output with python module rich. As Powershell clearly shows, Windows Terminal can output True-color. But weird ...
user avatar

1
2 3 4 5
7