Project

General

Profile

Download (2.36 KB) Statistics
| Branch: | Tag: | Revision:
1
#
2
# dot.tcshrc
3
#
4
# part of pfSense (https://www.pfsense.org)
5
# Copyright (c) 2004-2018 Rubicon Communications, LLC (Netgate)
6
# All rights reserved.
7
#
8
# Licensed under the Apache License, Version 2.0 (the "License");
9
# you may not use this file except in compliance with the License.
10
# You may obtain a copy of the License at
11
#
12
# http://www.apache.org/licenses/LICENSE-2.0
13
#
14
# Unless required by applicable law or agreed to in writing, software
15
# distributed under the License is distributed on an "AS IS" BASIS,
16
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
# See the License for the specific language governing permissions and
18
# limitations under the License.
19

    
20
set prompt="[%B`cat /etc/version`%b][%B%n%b%{\033[0;1;31m%}@%{\033[0;0;0m%}%B%M%b]%/%{\033[0;1;31m%}:%{\033[0;0;0m%} "
21
set autologout="0"
22
set autolist set color set colorcat
23
setenv CLICOLOR "true"
24
setenv LSCOLORS "exfxcxdxbxegedabagacad"
25
if ($term == "xterm" || $term == "vt100" || $term == "vt102" || $term == "vt220" || $term !~ "con*") then
26
	bindkey "\e[2~" overwrite-mode     # Ins
27
	bindkey "\e[3~" delete-char        # Del
28

    
29
	bindkey "\e[1~" beginning-of-line  # Home vt
30
	bindkey "\e[4~" end-of-line        # End vt
31

    
32
	bindkey "\eOH" beginning-of-line   # Home vt220
33
	bindkey "\eOF" end-of-line         # End vt220
34

    
35
	bindkey "\e[H" beginning-of-line   # Home kvt
36
	bindkey "\e[F" end-of-line         # End kvt
37

    
38
	bindkey "\e[7~" beginning-of-line  # Home rxvt/konsole
39
	bindkey "\e[8~" end-of-line        # End rxvt/konsole
40
endif
41

    
42
set http_proxy=`/usr/local/sbin/read_xml_tag.sh string system/proxyurl`
43
if (${http_proxy} != "") then
44
	set http_proxy_port=`/usr/local/sbin/read_xml_tag.sh string system/proxyport`
45
	if (${http_proxy_port} != "") then
46
		set http_proxy="${http_proxy}:${http_proxy_port}"
47
	endif
48
	setenv HTTP_PROXY ${http_proxy}
49
endif
50

    
51
set http_proxy_auth_user=`/usr/local/sbin/read_xml_tag.sh string system/proxyuser`
52
set http_proxy_auth_pass=`/usr/local/sbin/read_xml_tag.sh string system/proxypass`
53

    
54
if ( ${http_proxy_auth_user} != "" && ${http_proxy_auth_pass} != "" ) then
55
	set http_proxy_auth="basic:*:${http_proxy_auth_user}:${http_proxy_auth_pass}"
56
	setenv HTTP_PROXY_AUTH "${http_proxy_auth}"
57
endif
58

    
59
set use_mfs_tmpvar=`/usr/local/sbin/read_xml_tag.sh boolean system/use_mfs_tmpvar`
60
if ( $use_mfs_tmpvar == "true" ) then
61
	setenv PKG_DBDIR '/root/var/db/pkg'
62
	setenv PKG_CACHEDIR '/root/var/cache/pkg'
63
endif
(4-4/4)