Subversion Repositories configs

Rev

Rev 203 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
201 - 1
# shellcheck shell=sh
2
# Initialization script for bash, sh, mksh and ksh
192 - 3
 
206 - 4
case "$(basename $(readlink /proc/$$/exe))" in
5
*ksh*)
6
    which_declare=""
7
    which_opt=""
8
    ;;
9
zsh)
10
    which_declare="typeset -f"
11
    which_opt=""
12
    ;;
13
bash|sh)
14
    which_declare="declare -f"
15
    which_opt="-f"
16
    ;;
17
*)
18
    which_declare=""
19
    which_opt=""
20
    ;;
21
esac
201 - 22
 
206 - 23
which () {
24
    (alias; eval ${which_declare}) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
201 - 25
}
26
 
203 - 27
export which_declare
28
export ${which_opt} which