From 55d0510313c623a5d9070b7ddc88693a63ca5c2b Mon Sep 17 00:00:00 2001 From: pryazha Date: Sun, 15 Jun 2025 16:06:11 +0500 Subject: some scripts, bash, tmux changes --- .config/.bashrc | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to '.config/.bashrc') 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 -- cgit v1.2.3-70-g09d2