2
votes
1answer
59 views

In bash, how do I get possible completions to disappear afterwards?

In bash, when I hit tab and the completion is ambiguous, it appears like this on my screen: chris@host / $ cd fo foo/ for/ foz/ chris@host / $ cd fo I then continue typing, but I get to another ...
0
votes
4answers
118 views

How to automatically clean up date stamped logs

I have an apache web server with various virtual hosts. Each virtual host logs to date stamped files using cronolog. The result is that I end up with a lot of files like this: ----rw-r-- 1 root ...
1
vote
2answers
241 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
1answer
147 views

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 ...
3
votes
4answers
967 views

Copy a range of files in command line (ZSH/BASH)

I have a list of files with consecutive numbers as suffixes. I would like to copy only a range of these files. How can I specify a range as part of my cp command. $ls P1080272.JPG* P1080273.JPG* ...
1
vote
2answers
384 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 ...
6
votes
3answers
310 views

Keyboard shortcut to store typed command and clean the line

You know the situation: You are halfway through typing a long command (for example a commit message) and realize that you have forgotten to execute some prerequisite command that can not be added with ...
0
votes
1answer
114 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 ...
0
votes
1answer
108 views

Toggle Foreground Process

Ctrl-z suspends the foreground process, but when there is nothing in the foreground it has no effect. I want to overload ctrl-z so when there is nothing in the foreground it brings the most recently ...
1
vote
2answers
375 views

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

How can I open a file whose name starts with “-”?

I am running Ubuntu, and would like to open a file whose file name starts with "-"(minus). When I try to open the file with pico or vim, the command thinks that the "-" sign is an option for the ...
16
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 ...
53
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. ...