summaryrefslogtreecommitdiff
path: root/.config/.bashrc
diff options
context:
space:
mode:
authorpryazha <pryadeiniv@mail.ru>2025-06-15 16:06:11 +0500
committerpryazha <pryadeiniv@mail.ru>2025-06-15 16:06:11 +0500
commit55d0510313c623a5d9070b7ddc88693a63ca5c2b (patch)
tree9d2308af32704325505f0a18e95365e37f004214 /.config/.bashrc
parent01180bc8d01a3511c355567ac5734cac6e132ab5 (diff)
some scripts, bash, tmux changes
Diffstat (limited to '.config/.bashrc')
-rw-r--r--.config/.bashrc28
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