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.dpi: 96
!Xft.dpi: 144
Xft.antialias: false
Xft.lcdfilter: lcddefault
Xft.rgba: rgb

View File

@@ -27,6 +27,7 @@ export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
export GPG_ID=7FD58D9A196DCEEEAD671F94F4D7A7915DEA789B
# Setup locale
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
export LC_CTYPE=${l}
@@ -43,6 +44,19 @@ for l in en_US.UTF-8 C ; do
break
fi
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
if [[ -e $HOME/.localenv ]] ; then source $HOME/.localenv ; fi

View File

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

View File

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

View File

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

View File

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