Initial version of the shells' dotfiles
- add config files for both bash and zsh - as some utilities regard git to be present, git's config files are included as well
This commit is contained in:
parent
c90d4825a7
commit
9c4ea2ecfe
17 changed files with 2855 additions and 0 deletions
46
.profile
Normal file
46
.profile
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# Executed by a login shell (e.g., bash or sh) during start
|
||||
|
||||
|
||||
# Prepend a folder to $PATH if it is not already there
|
||||
_prepend_to_path () {
|
||||
if [ -d "$1" ] ; then
|
||||
case :$PATH: in
|
||||
*:$1:*) ;;
|
||||
*) PATH=$1:$PATH ;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
# Put some private bin directories on the $PATH
|
||||
_prepend_to_path "$HOME/bin"
|
||||
_prepend_to_path "$HOME/.local/bin"
|
||||
|
||||
|
||||
# Generic environment variables
|
||||
export EDITOR=vim
|
||||
export HISTFILESIZE=999999
|
||||
export PAGER='less --chop-long-lines --ignore-case --LONG-PROMPT --no-init --status-column --quit-if-one-screen'
|
||||
export TERM=xterm-256color
|
||||
export TZ='Europe/Berlin'
|
||||
export VISUAL=$EDITOR
|
||||
|
||||
# Machine-specific directories
|
||||
export REPOS="$HOME/repos"
|
||||
|
||||
|
||||
# Configurations for various utilities
|
||||
|
||||
export LESSHISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/.lesshst"
|
||||
|
||||
|
||||
# Shell-specific stuff
|
||||
|
||||
# zsh-specific stuff is automatically sourced from `~/.zshenv`, `~/.zprofile`, `~/.zlogin`, and `~/.zshrc`
|
||||
|
||||
# Source `~/.bashrc` if we are running inside a BASH shell
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
# `~/.bashrc` is NOT automatically sourced by bash
|
||||
source "$HOME/.bashrc"
|
||||
fi
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue