Tag Archives: shell

Emacs with Tramp using zsh

First off, I recommend reading the relevant parts of the user manual, you might find the answer there. Now, to the issue. I installed tramp and added this to ~/.emacs: (require ‘tramp) (setq tramp-default-method “scp”) Nothing special here, except it didn’t work. (The message was something like “waiting 60s for local shell”. Of course, I [...]

csh: Cannot open /etc/termcap

Upon logging into my remote server with ssh, I started getting: csh: Cannot open /etc/termcap. csh: using dumb terminal settings. There is no rxvt-unicode entry in /etc/termcap. You should specify one, but if you’re lazy, you can just setenv TERM xterm in your ~/.cshrc. P.S. Nah, this doesn’t help. You have to put that line [...]

Copying music to USB flash from command line, fast

Thanks to this post. EDIT: This doesn’t work well. #!/bin/sh # Script to copy music to media player (USB). # remove the last character var=`echo $*|sed s/.$//` echo “Copying: $var” # now copy cp -R “$var” /mnt/player/ &

Grab’n'drop

Here’s something annoying: when you have to copy/move some files to another directory, and then cd there yourself. Written scripts to do that faster: grab: #!/bin/sh dir=`pwd` for item in `echo $@`; do echo $dir/$item >> ~/tmp/grab done And drop: #!/bin/sh grabfile=~/tmp/grab tempfile=~/tmp/grab.tmp echo “” > $tempfile # create if missing for item in `cat [...]

Follow

Get every new post delivered to your Inbox.