diff options
Diffstat (limited to '.config/.bashrc')
-rw-r--r-- | .config/.bashrc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/.config/.bashrc b/.config/.bashrc index b5407dc..92f836f 100644 --- a/.config/.bashrc +++ b/.config/.bashrc @@ -1,22 +1,22 @@ # If not running interactively, don't do anything [[ $- != *i* ]] && return -alias ls='ls --color=auto' -alias lt='ls -t' -alias l='ls -lha' - -PURPLE="\[$(tput setaf 5)\]" -RESET="\[$(tput sgr0)\]" - -PS1="[\u@${PURPLE}\h${RESET} \w]\n> " +blue="\[$(tput setaf 5)\]" +reset="\[$(tput sgr0)\]" +PS1="${blue}\u${reset} \w\n> " PS2=">> " -if [ -d "$HOME/.local/bin" ] ; then - PATH="$HOME/.local/bin:$PATH" -fi +PATH="${HOME}/projects/dotfiles/scripts:${PATH}" + +EDITOR='nvim' +LOGDIR='~/log' -PATH="$HOME/dotfiles/scripts:$PATH" +alias log="${EDITOR} ${LOGDIR}/`date +%d_%m_%Y`" +alias nvimconfig="${EDITOR} ~/.config/nvim/init.lua" +alias weather='curl wttr.in' -if [[ -z $DISPLAY ]] && [[ $(tty) = "/dev/tty1" ]]; then - exec startx &> /dev/null +if command -v startx >/dev/null 2>&1 ; then + if [[ -z $DISPLAY ]] && [[ $(tty) = "/dev/tty1" ]]; then + exec startx &> /dev/null + fi fi |