mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Fixup some startup scripts.
This commit is contained in:
16
dotfiles/env
16
dotfiles/env
@@ -1,7 +1,7 @@
|
|||||||
# Sourced by zshrc as well as bash.
|
# Sourced by zshrc as well as bash.
|
||||||
|
# Should only use POSIX shell constructs.
|
||||||
|
|
||||||
umask 027
|
umask 027
|
||||||
ulimit -c unlimited
|
|
||||||
|
|
||||||
# Paths and preferences
|
# Paths and preferences
|
||||||
export PYTHONPATH="$HOME/.python:$PYTHONPATH"
|
export PYTHONPATH="$HOME/.python:$PYTHONPATH"
|
||||||
@@ -15,11 +15,20 @@ export LESS="-MR"
|
|||||||
export QUOTING_STYLE="literal" # Coreutils quotes
|
export QUOTING_STYLE="literal" # Coreutils quotes
|
||||||
|
|
||||||
# Fix gnome-terminal
|
# Fix gnome-terminal
|
||||||
if [ "$TERM" = "xterm" -a "$COLORTERM" = "gnome-terminal" ] ; then
|
if [ "$TERM" = "xterm" ] && [ "$COLORTERM" = "gnome-terminal" ] ; then
|
||||||
# Requires `ncurses-base` package for terminfo.
|
# Requires `ncurses-base` package for terminfo.
|
||||||
export TERM="xterm-256color"
|
export TERM="xterm-256color"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Terminal preferences for i3
|
||||||
|
if [ -z "${TERMINAL}" ] ; then
|
||||||
|
for t in urxvt gnome-terminal; do
|
||||||
|
if TERMINAL=$(command -v ${t}) ; then
|
||||||
|
export TERMINAL
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
# For virtualenvwrapper
|
# For virtualenvwrapper
|
||||||
export WORKON_HOME=$HOME/.virtualenvs
|
export WORKON_HOME=$HOME/.virtualenvs
|
||||||
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
|
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
|
||||||
@@ -60,4 +69,5 @@ else
|
|||||||
fi
|
fi
|
||||||
export LC_COLLATE=C
|
export LC_COLLATE=C
|
||||||
|
|
||||||
if [ -e $HOME/.localenv ] ; then source $HOME/.localenv ; fi
|
# shellcheck source=/dev/null
|
||||||
|
test -e "$HOME/.localenv" && . "$HOME/.localenv"
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# Interactive shells only.
|
||||||
|
# Should only use POSIX constructs.
|
||||||
|
|
||||||
# Always load ENV
|
# Always load ENV
|
||||||
test -f "$HOME/.env" && . "$HOME/.env"
|
test -f "$HOME/.env" && . "$HOME/.env"
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ setopt appendhistory autocd autopushd extendedglob nohup nomatch histignorespace
|
|||||||
unsetopt beep histbeep listbeep flowcontrol
|
unsetopt beep histbeep listbeep flowcontrol
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
|
||||||
|
# Allow core files
|
||||||
|
ulimit -c unlimited
|
||||||
|
|
||||||
# Completion
|
# Completion
|
||||||
zstyle :compinstall filename "${HOME}/.zshrc"
|
zstyle :compinstall filename "${HOME}/.zshrc"
|
||||||
zstyle ':completion:*' users root ${USER}
|
zstyle ':completion:*' users root ${USER}
|
||||||
|
|||||||
Reference in New Issue
Block a user