From 4b389613fdf367dbdbf6c7984bacdca3914668c2 Mon Sep 17 00:00:00 2001 From: pryazha Date: Thu, 23 Jan 2025 19:19:46 +0500 Subject: add vim and bash configs --- .config/.bashrc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .config/.bashrc (limited to '.config/.bashrc') diff --git a/.config/.bashrc b/.config/.bashrc new file mode 100644 index 0000000..6ca0e5c --- /dev/null +++ b/.config/.bashrc @@ -0,0 +1,24 @@ +# .bashrc + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +alias ll='ls -lh' +alias l='ls -lha' + +PURPLE="\[$(tput setaf 5)\]" +RESET="\[$(tput sgr0)\]" + +PS1="[\u@${PURPLE}\h${RESET} \w]\n> " +PS2=">> " + +# export XDG_RUNTIME_DIR=/run/user/$(id -u) + +if [ -d "$HOME/.local/bin" ] ; then + PATH="$HOME/.local/bin:$PATH" +fi + +if [[ -z $DISPLAY ]] && [[ $(tty) = "/dev/tty1" ]]; then + exec startx &> /dev/null +fi -- cgit v1.2.3