git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2ce026f
)
.bashrc: Move *_proxy earlier; I do not remember why.
author
root
<jan.kratochvil@redhat.com>
Tue, 17 Dec 2019 11:31:53 +0000
(12:31 +0100)
committer
root
<jan.kratochvil@redhat.com>
Tue, 17 Dec 2019 11:31:53 +0000
(12:31 +0100)
.bashrc
patch
|
blob
|
history
diff --git
a/.bashrc
b/.bashrc
index
b102708
..
50b8eac
100644
(file)
--- a/
.bashrc
+++ b/
.bashrc
@@
-9,6
+9,14
@@
fi
export PERL5LIB="$HOME/perl5/lib/perl5/`uname -m`-linux-thread-multi:$HOME/perl5/lib/perl5";
export PERL5LIB="$HOME/perl5/lib/perl5/`uname -m`-linux-thread-multi:$HOME/perl5/lib/perl5";
+if grep 2>/dev/null -q '^..............:0C38 00000000:0000 0A ' /proc/net/tcp \
+|| grep 2>/dev/null -q '^....: 00000000000000000000000000000000:0C38 00000000000000000000000000000000:0000 0A ' /proc/net/tcp6 \
+;then
+ export http_proxy=http://127.0.0.1:3128/
+ export https_proxy=http://127.0.0.1:3128/
+ export ftp_proxy=http://127.0.0.1:3128/
+fi
+
# "$PS1" for interactive shells detection.
if [ -n "$PS1" -a -z "$_home_short_dotbashrc" ];then
# We permit later reinitialization by unsetting it.
# "$PS1" for interactive shells detection.
if [ -n "$PS1" -a -z "$_home_short_dotbashrc" ];then
# We permit later reinitialization by unsetting it.
@@
-217,13
+225,6
@@
unset cpus
# as Sun workaround as Debian misses: /etc/termcap
# expects: $uname_p
[ "$TERM" = vt220 -a "${uname_p%86}" != "$uname_p" ] && export TERM=linux
# as Sun workaround as Debian misses: /etc/termcap
# expects: $uname_p
[ "$TERM" = vt220 -a "${uname_p%86}" != "$uname_p" ] && export TERM=linux
-if grep 2>/dev/null -q '^..............:0C38 00000000:0000 0A ' /proc/net/tcp \
-|| grep 2>/dev/null -q '^....: 00000000000000000000000000000000:0C38 00000000000000000000000000000000:0000 0A ' /proc/net/tcp6 \
-;then
- export http_proxy=http://127.0.0.1:3128/
- export https_proxy=http://127.0.0.1:3128/
- export ftp_proxy=http://127.0.0.1:3128/
-fi
_selfabs=
[ "$_selfabs" = "${_selfabs#/}" ] && _selfabs="$BASH_SOURCE"
[ "$_selfabs" = "${_selfabs#/}" ] && _selfabs="$PWD/.bashrc"
_selfabs=
[ "$_selfabs" = "${_selfabs#/}" ] && _selfabs="$BASH_SOURCE"
[ "$_selfabs" = "${_selfabs#/}" ] && _selfabs="$PWD/.bashrc"