-2
votes
1answer
15 views

zsh substitution, can't do regex with repetition

I'm trying to perform ZSH variable substitution, but I'm having to do it the lame way, by piping through cut. Is it possible to perform this operation entirely within ZSH? ...
0
votes
1answer
111 views

How to set the default shell when chsh is not present

I've a Synology DS412+ NAS box running Busybox, which has a default shell of ash. Previously, ipkg install optware-devel was run and it installed bash and set it as the default shell. Running ipkg ...
0
votes
1answer
78 views

ZSH escaping / file matching pattern

This works from command line: scp -r ^.git b:/home/wopi/blyzics/. when I paste the above line in a script like this: #!/usr/bin/env zsh scp -r ^.git b:/home/wopi/blyzics/. And run it ...
2
votes
4answers
553 views

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 ...
1
vote
2answers
286 views

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 ...
3
votes
2answers
2k views

Deleting folders with rsync “move”?

rsync can be coaxed into moving folders very similarly and superiorly to traditional mv with the following options: rsync -axvvES --remove-source-files source_directory /destination/ However one ...
1
vote
2answers
499 views

How can I put the last zsh command in history into a clipboard?

It often happens to me, that I just used a command and I need to copy/paste it either to a different terminal window/IM or whatever. On a Mac, I can use the pbcopy command to get something in ...
1
vote
1answer
149 views

Excluding Environment Variables from ZSH Autocomplete

Quick example: ~ $ wor<TAB> ~ $ WORDCHARS= ...
0
votes
2answers
328 views

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 ...
0
votes
1answer
115 views

Declare my own script to execute file

I have two files, the first is 'ax': #!/usr/bin/env zsh print "Params: $*" cat $* And another one 'tst': #! /home/me/ax A B C When I am in sh/csh/bash shell: > ./tst ./tst: line 2: A: ...
2
votes
1answer
1k views

Freebsd: How to change default shell?

The default shell in freebsd is SH and I really can't stand it: autocomplete is very limited, and rehash commands kill me. I feel like a one armed and one legged man... How can I change the shell ...
2
votes
3answers
54 views

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 ...
5
votes
3answers
2k views

How to edit command completion for ssh on zsh?

I'd like to set up command completion on zsh to display host names after I type ssh [TAB] taking the names out of my .ssh/config file (and preferably from known_hosts and /etc/hosts and anywhere ...
2
votes
2answers
2k views

ZSH `--color=auto` doesn't work

For some reason when I execute the following: ls --color=auto Results with: ls: illegal option -- - usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...] Not sure why this is happening, ...
1
vote
1answer
2k views

Removing history or line numbers from ZSH history file

For some reason I get these odd line numbers or history numbers of some sort into my ~/.zsh_history file like so: : 1266694881:0;rake db:migrate I'd rather not have to resort to regexing out the ...
1
vote
1answer
3k views

zsh colored files directories

I have a host for my VM, when it had a fresh install of Ubuntu the bash shell had colored directories and files. How do I duplicate this with ZSH, i've customized my PS1 but I want to customize the ...
18
votes
8answers
5k views

Is there any reason to use bash over zsh?

I'm curious about why one would want to run bash instead of zsh. I mean zsh is fully backwards-compatible with bash. Don't get me wrong: I don't dislike bash or anything. I just genuinely want to ...
1
vote
3answers
915 views

Change the shell for cron job

I have a zsh script that I would like to run via anacron every week. It runs fine from an interactive bash shell, but when run by anacron, I am getting command not found errors and it looks like it ...
0
votes
1answer
111 views

Enable 8th bit as Meta in zsh without a warning

In my quest to configure my shell to work exactly how I want it with respect to the alt/meta key I am having some trouble. Recently I added "bindkey -m" to my .zshrc and now whenever I start a zsh ...
54
votes
10answers
15k views

Unique Features of bash compared to zsh

I have been a zsh user for quite some time (before that tcsh and before that csh). I am quite happy with it, but was wondering if there are any compelling features of bash that do not exist in zsh. ...