This commit is contained in:
David Tomaschik
2018-05-16 17:05:55 -07:00
7 changed files with 72 additions and 24 deletions

34
bin/_install_apt_proxy.sh Executable file
View File

@@ -0,0 +1,34 @@
#!/bin/bash
set -o errexit
set -o nounset
if test -f /etc/apt/apt.conf.d/90-proxy ; then
echo "Looks already setup."
fi
cat >/etc/apt/proxy-detect <<'EOF'
#!/bin/bash
PROXY=192.168.60.10:3142
if ! test -x /bin/nc ; then
echo DIRECT
exit 0
fi
if nc -w 2 -z ${PROXY/:/ } ; then
echo ${PROXY}
exit 0
fi
echo DIRECT
EOF
chmod +x /etc/apt/proxy-detect
cat >/etc/apt/apt.conf.d/90-proxy <<'EOF'
Acquire::http::Proxy-Auto-Detect "/etc/apt/proxy-detect";
EOF
echo "Setup APT Proxying."

View File

@@ -3,7 +3,7 @@ Xcursor.size: 16
!!! !!!
! Xft for fonts ! Xft for fonts
!!! !!!
Xft.dpi: 96 !Xft.dpi: 144
Xft.antialias: false Xft.antialias: false
Xft.lcdfilter: lcddefault Xft.lcdfilter: lcddefault
Xft.rgba: rgb Xft.rgba: rgb

View File

@@ -27,7 +27,8 @@ export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
export GPG_ID=7FD58D9A196DCEEEAD671F94F4D7A7915DEA789B export GPG_ID=7FD58D9A196DCEEEAD671F94F4D7A7915DEA789B
# Setup locale # Setup locale
for l in en_US.UTF-8 C ; do if test -f /usr/share/i18n/SUPPORTED ; then
for l in en_US.UTF-8 C ; do
if grep -q "${l}" /usr/share/i18n/SUPPORTED ; then if grep -q "${l}" /usr/share/i18n/SUPPORTED ; then
export LC_CTYPE=${l} export LC_CTYPE=${l}
export LC_NUMERIC=${l} export LC_NUMERIC=${l}
@@ -42,7 +43,20 @@ for l in en_US.UTF-8 C ; do
export LC_IDENTIFICATION=${l} export LC_IDENTIFICATION=${l}
break break
fi fi
done done
else
export LC_CTYPE=C
export LC_NUMERIC=C
export LC_TIME=C
export LC_MONETARY=C
export LC_MESSAGES=C
export LC_PAPER=C
export LC_NAME=C
export LC_ADDRESS=C
export LC_TELEPHONE=C
export LC_MEASUREMENT=C
export LC_IDENTIFICATION=C
fi
export LC_COLLATE=C export LC_COLLATE=C
if [[ -e $HOME/.localenv ]] ; then source $HOME/.localenv ; fi if [[ -e $HOME/.localenv ]] ; then source $HOME/.localenv ; fi

View File

@@ -51,7 +51,9 @@ function prompt_matir_setup {
function prompt_matir_precmd { function prompt_matir_precmd {
vcs_info vcs_info
if (( $+functions[python-info] )); then
python-info python-info
fi
} }
### git: Show marker (*) if there are untracked files in repository ### git: Show marker (*) if there are untracked files in repository

View File

@@ -4,10 +4,10 @@ HISTSIZE=10000
SAVEHIST=10000 SAVEHIST=10000
setopt appendhistory autocd autopushd extendedglob nohup nomatch histignorespace histlexwords histverify cbases setopt appendhistory autocd autopushd extendedglob nohup nomatch histignorespace histlexwords histverify cbases
unsetopt beep histbeep listbeep flowcontrol unsetopt beep histbeep listbeep flowcontrol
bindkey -e bindkey -v
# Completion # Completion
zstyle :compinstall filename '/home/david/.zshrc' zstyle :compinstall filename "${HOME}/.zshrc"
autoload -Uz compinit && compinit autoload -Uz compinit && compinit
DIRSTACKSIZE=16 DIRSTACKSIZE=16
@@ -36,9 +36,6 @@ fi
# Overrides to prezto # Overrides to prezto
unsetopt cdablevars unsetopt cdablevars
# No groupings of completions
zstyle ':completion:*' format ''
# .profile is universal # .profile is universal
# but after zprezto to use/override anything setup there # but after zprezto to use/override anything setup there
. ~/.profile . ~/.profile

View File

@@ -221,7 +221,7 @@ run_as_root() {
if [ ${USER} = "root" ] ; then if [ ${USER} = "root" ] ; then
"$@" "$@"
return $? return $?
elif groups | grep -q '\bsudo\b' ; then elif test -x $(which sudo 2>/dev/null) ; then
verbose "Using sudo to run ${1}..." verbose "Using sudo to run ${1}..."
sudo "$@" sudo "$@"
return $? return $?

View File

@@ -0,0 +1 @@
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIsFYLEsalNh/l6PtMZhi0f/eZ22uoMw/xYpgPy6vBU6OlpN2FjW7R0pwX29fZjjVQoF0eEG0K/9/CcYcnxtspw= chronos@localhost