blob: 92f836fe78f28f3e891467dfc29277df8cbcde29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
blue="\[$(tput setaf 5)\]"
reset="\[$(tput sgr0)\]"
PS1="${blue}\u${reset} \w\n> "
PS2=">> "
PATH="${HOME}/projects/dotfiles/scripts:${PATH}"
EDITOR='nvim'
LOGDIR='~/log'
alias log="${EDITOR} ${LOGDIR}/`date +%d_%m_%Y`"
alias nvimconfig="${EDITOR} ~/.config/nvim/init.lua"
alias weather='curl wttr.in'
if command -v startx >/dev/null 2>&1 ; then
if [[ -z $DISPLAY ]] && [[ $(tty) = "/dev/tty1" ]]; then
exec startx &> /dev/null
fi
fi
|