-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_profile.tmpl
34 lines (32 loc) · 895 Bytes
/
dot_profile.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# ~/.profile
# Contains user specific configurations for the Bourne shell and Bourne compatible shells
#
## set shell: zsh instead of bash
#if case "$-" in *i*) true;; *) false;; esac; then
# if [ -z "$ZSH_VERSION" ] && type zsh >/dev/null 2>/dev/null; then
# export SHELL=$(which zsh)
# else
# export SHELL=$(which bash)
# fi
# exec $SHELL
#fi
#
# LANG
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LC_COLLATE=C
# Editor
export VISUAL=nvim
export EDITOR=nvim
export PAGER=less
# For non-login shells, source .bashrc if running Bash
if [ -n "$BASH_VERSION" ]; then
[ -f "${HOME}/.bashrc" ] && source "${HOME}/.bashrc"
fi
{{ if (and (eq .chezmoi.os "linux") (not (contains "daint" .chezmoi.hostname)) ) }}
# Setup Linuxbrew
BREW="/home/linuxbrew/.linuxbrew/bin/brew"
if type -a "$BREW" 2>&1 >/dev/null; then
eval "$("$BREW" shellenv)"
fi
{{ end -}}