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
1 vote
0 answers
26 views

Oh my zsh theme interferes inter key (Ctrl C)

I'm using iterm2 and I have zsh with oh my zsh theme working well in my laptop. I did the same setup on my server when I am using ssh. However, when I activate any theme, Ctrl C behaves strangely and ...
Leomic's user avatar
  • 11
-2 votes
0 answers
23 views

Tabbing away and back to Terminal in Ubuntu (PopOS) clears part of the output each time, until it's empty; tmux + zsh [closed]

This consumes about 1/4 of the screen each time (not just one prompt at a time). I can't pretend to have any idea why this is happening. Any ideas? I don't even know where to start in regards to ...
Life5ign's user avatar
  • 410
0 votes
0 answers
19 views

zsh,how to change the button for executing commands to the "enter" key?

Installed zsh, but the problem is that the commands in it are not executed through the key enter,but ctrl + j, how can you change to enter ?
Edgar2000's user avatar
0 votes
1 answer
66 views

What are zsh equivalent to bash's shopt -s globstar and shopt -s dotglob?

I need zsh equivalent to bash's shopt -s globstar and shopt -s dotglob. How can I do that? UPDATE 01: As per @muru's answer, I used setopt globdots in the zsh shell, and ran the following command: for ...
rusty's user avatar
  • 16.3k
0 votes
0 answers
86 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: ...
user19481451's user avatar
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 ...
Alex J's user avatar
  • 1
6 votes
2 answers
932 views

Keyboard shortcut for opening the terminal in the current directory?

I would like to have a keyboard shortcut that opens a terminal in the current directory. Here is what I already did: open_terminal_here.sh: #!/bin/zsh gnome-terminal --working-directory="$PWD&...
soroush's user avatar
  • 61
2 votes
2 answers
245 views

Combining ANSI Color codes -- Foreground and background color merging

I have this function in zsh to run grep on the output of git log to highlight the line with the commit's hash, author, message, etc.. I'm rewriting to try and add color to the output and want to ...
Sargates's user avatar
0 votes
0 answers
102 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 ':...
chx's user avatar
  • 697
0 votes
1 answer
85 views

Alt+F2 doesn't run scripts from a folder added to PATH, but terminal does run it

I used to run scripts using Alt+F2 in Ubuntu 18.04, but they don't run in Ubuntu 22.04. However, they run properly if I run them from the terminal which uses zsh. To modify the PATH variable I opened ...
lee genny's user avatar
-1 votes
1 answer
124 views

Zsh peco-history issue after updating to Ubuntu 23.10 - Weird signs in prompt after pressing Ctrl+R

I recently updated my Ubuntu distribution to version 23.10, and I've been experiencing an issue with zsh and peco-history. Prior to the update, everything was working fine, but now I'm encountering a ...
pernpas's user avatar
1 vote
1 answer
408 views

How to change symbol from spaceship theme on .zshrc?

I can't change the symbol "right arrow" in the terminal with the theme spaceship. Below has an image from the terminal: However my file .zshrc includes the lines for changing the symbol. ...
Mauriciojr27's user avatar
0 votes
0 answers
120 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 ...
Blair Frandeen's user avatar
1 vote
0 answers
737 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 ...
sodiumnitrate's user avatar
1 vote
1 answer
804 views

How to deal with sh: 1: next: Exec format error?

I want to use npm to run a NextJS project on my Ubuntu 22.04 but every command gives me "sh: 1: next: Exec format error". Do you have any idea how to fix it?
Madosis's user avatar
  • 11
2 votes
1 answer
211 views

Environment configuration not reflected when switching users in Ubuntu 22.04

I have two users named Alice and Sally on my Ubuntu 22.04 system. Alice has configured her environment variables in the .profile file, and they are working correctly for her. However, when Alice ...
Vikram 's user avatar
0 votes
1 answer
275 views

Dot gitconfig file not reflecting when switch user on ubuntu 22.04 lts

Today I have installed Ubuntu22.04LTS. In that, i had a user bob and his git config is like user.name=Bob B [email protected] alias.unadd=reset HEAD I Had another user named quealy . when i ...
Vikram 's user avatar
0 votes
0 answers
332 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 ...
Adrian D.'s user avatar
  • 119
0 votes
1 answer
284 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-...
user21493190's user avatar
0 votes
0 answers
743 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 ...
StackMatch's user avatar
3 votes
0 answers
402 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='%...
rustyocean's user avatar
0 votes
0 answers
322 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 ...
JasonJarvan's user avatar
2 votes
1 answer
3k views

ZSH (oh-my-zsh) spaceship-theme not displaying normally in terminal (adds 3 dots ... to end)

I recently added zsh, oh-my-zsh and installed the spaceship-zsh-theme which I have used on my mac for Ubuntu. I can see the font and style has changed, but for some reason, no matter what I do in ...
Hofbr's user avatar
  • 121
1 vote
1 answer
418 views

After attempting to set up code . on my wsl environment, commands have stopped working

I inserted export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin" in ~/.zshrc and after saving and quitting, my commands stopped working. I can't access the rc ...
taco-legs's user avatar
1 vote
0 answers
287 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.
Nahid Reza's user avatar
0 votes
0 answers
60 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 ...
Amith Kumar's user avatar
1 vote
1 answer
418 views

Able to connect to server via ssh but not via sftp (bash -> zsh)

OS: Ubuntu 20.04 Hello everyone, I am able to connect to a remote machine via my terminal: ssh remote_name Nonetheless I cannot connect via sftp (thus not able to use Nautilus to access my remote ...
pklein's user avatar
  • 21
0 votes
0 answers
154 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 ...
karthick87's user avatar
-1 votes
1 answer
371 views

Alias to create a Python package

Wondering how to create an alias for creating a Python package. A Python package is nothing more than a folder with an empty __init__.py file inside it. So basically I need something like alias pydir=&...
Gabriel Tkacz's user avatar
3 votes
1 answer
414 views

What's the difference between `;` and space when setting environment variable before running a command

I've been wondering what's the difference between the two: CAROOT='certificates'; echo $CAROOT - prints the value, uses ; as separator between two commands CAROOT='certificates' echo $CAROOT - prints ...
The.Wolfgang.Grimmer's user avatar
0 votes
0 answers
247 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....
Osine Bark's user avatar
0 votes
1 answer
235 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 | (...
The.Wolfgang.Grimmer's user avatar
0 votes
1 answer
210 views

Function creates a folder but do not cd into the folder if it exists

Following is the function I have added in the .zshrc configuration file to create a Notes folder if it does not exist and if the folder exists it has to cd to that folder. function mnotes(){ if [ ! ...
Santhosh Pai's user avatar
0 votes
0 answers
431 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 ...
nanono's user avatar
  • 101
-1 votes
1 answer
108 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).
Flux's user avatar
  • 505
0 votes
0 answers
27 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!!
Shivam Singh's user avatar
4 votes
1 answer
898 views

Enable Command Not Found messages in Other Shells (like 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 ...
AlexFullinator's user avatar
0 votes
0 answers
105 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 ...
Matheus Coelho's user avatar
4 votes
4 answers
6k 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 ...
menteith's user avatar
  • 271
3 votes
1 answer
4k 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
3k 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 ...
xDrd's user avatar
  • 81
0 votes
2 answers
861 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. ...
Manuel Dominguez Becerra's user avatar
4 votes
1 answer
321 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
71 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 ...
Koton Bads's user avatar
0 votes
2 answers
695 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 ...
edmz's user avatar
  • 103
1 vote
0 answers
173 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 ...
nbari's user avatar
  • 186
0 votes
1 answer
54 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,...
Timo's user avatar
  • 3
0 votes
1 answer
63 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 ...
Dario Risitano's user avatar
3 votes
1 answer
196 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 . && ...
Claire Duong's user avatar
-1 votes
2 answers
724 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 "...
KUDEY's user avatar
  • 1

1
2 3 4 5
7