comparison tcsh @ 39:3a9d39d8805b

[tcsh] Safe rm
author Edho Prima Arief <me@myconan.net>
date Tue, 26 Apr 2011 12:51:54 +0700
parents 330587be514c
children 54a82956bb11
comparison
equal deleted inserted replaced
38:8eebbf68181c 39:3a9d39d8805b
25 alias h history 25 25 alias h history 25
26 alias j jobs -l 26 alias j jobs -l
27 alias la ls -A 27 alias la ls -A
28 alias ll ls -lA 28 alias ll ls -lA
29 alias ls ls -F 29 alias ls ls -F
30 alias rm rm -i
30 31
31 if ($?prompt) then 32 if ($?prompt) then
32 set gnuls_opts="--color=auto --group-directories-first -F" 33 set gnuls_opts="--color=auto --group-directories-first -F"
33 set iscolor=0 34 set iscolor=0
34 switch (${TERM}) 35 switch (${TERM})
65 set path=(${path} /usr/local/{bin,sbin}) 66 set path=(${path} /usr/local/{bin,sbin})
66 setenv LSCOLORS ExGxFxdxCxegedabagExEx 67 setenv LSCOLORS ExGxFxdxCxegedabagExEx
67 alias ls ls -FG 68 alias ls ls -FG
68 ( which gnuls ) > /dev/null && alias ls gnuls ${gnuls_opts} 69 ( which gnuls ) > /dev/null && alias ls gnuls ${gnuls_opts}
69 alias man man -o 70 alias man man -o
71 alias rm rm -I
70 breaksw 72 breaksw
71 case NetBSD: 73 case NetBSD:
72 set path=(${path} /usr/pkg/{bin,sbin}) 74 set path=(${path} /usr/pkg/{bin,sbin})
73 breaksw 75 breaksw
74 case OpenBSD: 76 case OpenBSD: