Questions tagged [zsh]

64 questions
2
votes
4 answers

SSH connection closes as shell fails to load

I have FreeBSd running with OpenSSH. I set up everything and the connection via SSH worked perfectly. Then I decided to get rid of some not used ports and I obviously uninstalled one that was used by zsh. When I log in I get the following: ~ # ssh…
user144447
2
votes
2 answers

How to stop the shell interpolating?

I'm writing a bit of Ruby for use on the command line, but the shell is interfering too much - is there a way to turn off interpolation for the entire line? I know I can escape certain characters, but I'm looking for a blanket ban. For example, I've…
ian
  • 229
  • 2
  • 4
  • 12
2
votes
1 answer

mirror STDOUT and STDERR to file by default

How I can accomplish STDOUT to be to logged in a file (appending), but preserving the flow (leave STDOUT to STDOUT) ? STDOUT should work transparently, but should be logged also into a file, without messing with "tee" on each command input. Same for…
astropanic
  • 297
  • 2
  • 5
  • 18
2
votes
3 answers

Anybody knows if there is a counterpart for CTR+w , that deletes immediate words after cursor

I mean when the cursor is on the left side of the words ,I would like to remove the words on the immediate right side of it . CTR+k remove everything on the right side, i only want one word to be removed.
Eric
  • 21
  • 1
2
votes
2 answers

Unable to make Zsh not to suggest a fix for an alias

I have an alias for alias tdA='todo -a' I get the following in Zsh tdA zsh: correct 'tdA' to 'tda' [nyae]? How can you make Zsh not to suggest a fix for an alias?
1
vote
1 answer

Shell script prevent switching to other shell or escape from it

If in my automation script, I need to do something like install oh-my-zsh, I will have a .sh script like this: #!/bin/sh runuser -l user -c 'sh -c "$(curl -fsSL…
xendi
  • 374
  • 5
  • 8
  • 21
1
vote
2 answers

Add "sudo" to the last command line in bash

I run a command, then realize it should have been run with sudo. In zsh I have a function so that I can hit a ^x^x and it will grab the previous line from the history and prepend sudo to it, so I can run it again. Is it possible to do this with…
thermans
  • 237
  • 1
  • 2
  • 6
1
vote
1 answer

How to stop CentOS 7 fresh install to stop `clear` from running on exit from ssh session?

I'm finding that upon exit from an ssh session on a CentOS 7 server, it clears the screen each time. I suspect that there's a setting in /etc for the environment that is doing this. Any ideas of what's triggering this?
ylluminate
  • 1,001
  • 2
  • 15
  • 29
1
vote
1 answer

zsh, zmv mass rename sub directories nothing happening on large volume of directories

I've set autoload -U zmv alias mmv='noglob zmv -W' When on sample data (~20 folders with subfolders) I run mmv images/**/advert images/**/notice it just works as expected. But if I run same command on real data (hundreds of thousands folders),…
rolkos
  • 113
  • 3
1
vote
1 answer

Trouble installing ZSH

I did the following: yum install zsh Then chsh eduar New shell [/bin/bash]: /bin/zsh When I type: curl -L http://install.ohmyz.sh | sh I got this: You already have Oh My Zsh installed. You'll need to remove /home/eduar/.oh-my-zsh…
eduartua
  • 111
  • 3
1
vote
1 answer

zsh extended globbing to create sub directories

% zsh --version zsh 5.0.2 (x86_64-apple-darwin13.0) % ls -l bootstrap/ local_folder/ ssh_confs/ zsh_confs/ I am trying to create a sub directory called "files" inside all the directories in my current folder.. I want to use zsh globbing…
manish
  • 111
  • 1
1
vote
0 answers

Trouble with name resolution when using programs like `gem` in shell

I have trouble with name resolution when using programs like gem in my shell within my office environment. Whenever a program needs to connect to a remote host, it fails to resolve the domain name, but after a "manual resolution" e.g. via dig or…
Felix
  • 111
  • 2
1
vote
2 answers

zsh printf quote bug

does anyone have any idea why am I getting hit by this bug in zsh since forever? It's like a string formatting bug of some sorts: ~% printf "%s\n" foo " foo)foo Basically anything that has double quotes gets interpreted in a similar manner: ~%…
Zike
  • 11
  • 1
1
vote
1 answer

Can't get ZSH working on CentOS

I've been using zsh for a couple of years now on Ubuntu and really like it a lot. I've installed it on our production server as well, which is running CentOS 5.2, and it works just fine. However, I just installed it via yum on a new VM I created to…
tommytwoeyes
  • 155
  • 1
  • 7
1
vote
2 answers

why won't bash display the results of a 'bind -p' command?

bash refuses to give me the output of 'bind -p' when I pass it in with the -c switch: bash -c 'bind -p' but it works to type bind -p directly at the bash prompt, and it works to type something like bash -c 'echo "hi"' and zsh happily does…
iconoclast
  • 1,688
  • 2
  • 18
  • 30