summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-03-16 22:07:01 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-03-16 22:07:01 +0530
commit2e78e71794f4b90fb139453812dcda79f38dc51c (patch)
tree6fbef90cd5345ca61b9c37c281f82e549fa7e220 /.bashrc
parentfa7a8015feb5ff3e4d158e2d7f1b82fe94091555 (diff)
bashrc: Adding bashrc
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc73
1 files changed, 73 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..960b255
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,73 @@
+## ~/.bashrc
+#
+#| |__ __ _ ___| |__ _ __ ___
+#| '_ \ / _` / __| '_ \| '__/ __|
+#| |_) | (_| \__ \ | | | | | (__
+#|_.__/ \__,_|___/_| |_|_| \___|
+#
+
+
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+#neofetch small
+
+#ble.sh bash w vi-mode and auto-completion
+##[[ $- == *i* ]] && source $HOME/.local/src/blesh/ble.sh --noattach
+
+alias ls='ls --color=auto'
+#PS1='[\u@\h \W]\$ '
+
+export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
+
+#export PS1="[\u@\h ~]\\$\[$(tput sgr0)\]"
+
+#susexport PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 6)\]\u\[$(tput setaf 1)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
+
+
+#auto cd
+## Allows you to cd into directory merely by typing the directory name.
+shopt -s autocd
+
+#vi mode in bash (uncomment after expertise)
+set -o vi
+
+#Ctrl+D EOF Signal will work on billionth press
+#export IGNOREEOF=1000000000
+set -o ignoreeof
+
+
+export PATH="$PATH:$HOME/.scripts"
+# Adds `~/.local/bin` to $PATH
+export PATH="$PATH:$HOME/.local/bin"
+export SUDO_ASKPASS="$HOME/.local/bin/dpass"
+
+
+#infinite history
+HISTSIZE= HISTFILESIZE=
+#timecodes in bash history :))
+#HISTTIMEFORMAT="%d/%m/%y %T "
+HISTTIMEFORMAT="%F %T"
+#ignore dupes
+export HISTCONTROL=ignoredups:erasedups
+
+#XDG
+export XDG_DATA_HOME="$HOME/.local/share"
+export XDG_CONFIG_HOME="$HOME/.config"
+export XDG_STATE_HOME="$HOME/.local/state"
+export XDG_CACHE_HOME="$HOME/.cache"
+export GNUPGHOME="$XDG_DATA_HOME/gnupg"
+export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
+export TERMINFO="$XDG_DATA_HOME/terminfo"
+export LESSHISTFILE="$XDG_CACHE_HOME/less/history"
+export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
+export HISTFILE="${XDG_STATE_HOME}/bash/history"
+
+# Load aliases
+[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc"
+#partially supported XDG Base Directory
+[ -f "$HOME/.config/env" ] && source "$HOME/.config/env"
+
+#[[ ${BLE_VERSION-} ]] && ble-attach
+
+export N_PREFIX="$HOME/.local/usr/n"; [[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin" # Added by n-install (see http://git.io/n-install-repo).