summaryrefslogtreecommitdiff
path: root/.config/.bashrc
diff options
context:
space:
mode:
authorpryazha <pryadeiniv@mail.ru>2025-01-23 19:19:46 +0500
committerpryazha <pryadeiniv@mail.ru>2025-01-23 19:19:46 +0500
commit4b389613fdf367dbdbf6c7984bacdca3914668c2 (patch)
treefbffb40a30c2abe32dd2afdd88b810bc56333fe5 /.config/.bashrc
parent1aa5fc10c1aa1b5dfd6d611b633f90b9bb0f42a6 (diff)
add vim and bash configs
Diffstat (limited to '.config/.bashrc')
-rw-r--r--.config/.bashrc24
1 files changed, 24 insertions, 0 deletions
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