Skip to main content
7 votes
Accepted

Does bash have a hook to determine when child shell exits?

You were on the right track with trap. What you want is the following: trap "stty erase ^?" SIGCHLD You can add that to .bashrc. Note that this will run when any subprocess ends. This will only ...
Floofy Fox's user avatar
6 votes
Accepted

SSH sends environment variable, but to no effect

The SSH server's sshd_config (at /etc/ssh/sshd_config) has: AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE ...
einpoklum's user avatar
  • 9,852
3 votes
Accepted

How to automate git tasks that require a commit message?

You could just avoid opening Vim in the first place. One option for that is to make use of the --message=<message> (or -m <message>, for short) option to git subtree pull. The downside is ...
8bittree's user avatar
  • 2,948
2 votes
Accepted

Can I configure my .cshrc to ignore all files with a certain extension?

This is for the completion: The shell variable fignore can be set to a list of suffixes to be ignored by completion. The following example will ignore all *.pyc *.o *.bak and *~ files. % set ...
Nicholas Christopoulos's user avatar
2 votes
Accepted

screen - move cursor to beginning of line *in tcsh*

The Ctrl-A a suggestion from the link you posted works for me when I type Ctrl-a a (i.e. no Shift key in the first part) (whereas it beeps if you hold down shift too).
kanne's user avatar
  • 36
2 votes

How to exit less follow mode without exiting less when xargs is used?

Using follow mode when less is in a pipeline is not very useful, because pressing Ctrl+C exits the whole pipeline. Moreover using +F eliminates need for +G. In your case you can do: less +F $(ls -rt *....
mik's user avatar
  • 448
2 votes
Accepted

Bash prompt: How to invert text white-on-black instead of black-on-white like tcsh

tcsh doesn't set any specific colors – it uses the "inverted colors" mode that swaps foreground and background, whichever those may be. Bash doesn't have terminfo integration, so you'll need ...
grawity_u1686's user avatar
1 vote
Accepted

How to set environment variables by calling a tcsh script that sources another csh script

Environment variables can never propagate "upwards" from an external executable into the shell. If they need to be set by a csh script, then you have to source that script – hide the 'source'...
grawity_u1686's user avatar
1 vote
Accepted

Disabling bracketed paste mode in Anaconda-Python REPL on Mac

\e is nonstandard; \033 is standard. The place to look is not in csh/tcsh, but Python, e.g., Pasting into Python REPL broken in recent brew Python builds (HomeBrew #68193). According to a comment by ...
Thomas Dickey's user avatar
1 vote

Why is the output of word count not accurate when assigned to alias?

Because your whole command is inside double quotes, the inner ' ' don't act as quotes yet but only as regular text, and the $5 is getting expanded as a shell variable right there during alias ...
grawity_u1686's user avatar
1 vote

Usage of the percentile operator in shell scripts

From man xargs: -I replace-str Replace occurrences of replace-str in the initial-arguments with names read from standard input. Also, unquoted blanks do not terminate input ...
l0b0's user avatar
  • 7,363
1 vote

Package not found for awk.exe and csh.exe in Cygwin 2.10.0

awk was always performed by gawk in cygwin. $ ls -l /usr/bin/awk* lrwxrwxrwx 1 .... /usr/bin/awk -> gawk.exe It never changed, it was already there in the oldest announcement I found in the ...
matzeri's user avatar
  • 2,468
1 vote

How to make auto complete available for directories in cdpath for tcsh?

I'm using tcsh 6.18.01-3 under Debian Jessie and file complete is available with the TAB key in the same way that its available under bash. Can you upgrade to the newer version? Also: https://kb.iu....
Eamonn Kenny's user avatar
1 vote

Redirect stdout to stderr in tcsh

I did some experiments with directing to /dev/stderr in a tcsh script. My intention was for the user of the script to be able (also in tcsh) direct standard output and standard error to different ...
Leon van Dommelen's user avatar
1 vote

cshell for windows

You may also want to consider the native tcsh*.exe's by Astron: ftp://ftp.astron.com/pub/tcsh/
Andrew Stein's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible