aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-03-08 15:43:15 +0300
committerJoursoir <chat@joursoir.net>2022-03-08 15:43:15 +0300
commit729062bd784d91439247c02183e8c33e8ed0c3b0 (patch)
tree5cbfbebb42feed85417890267e6ac2d05ab3d649
parentba999a16bd6441c10779b8a531adfe6db45042dc (diff)
downloaddotfiles-729062bd784d91439247c02183e8c33e8ed0c3b0.tar.gz
dotfiles-729062bd784d91439247c02183e8c33e8ed0c3b0.tar.bz2
dotfiles-729062bd784d91439247c02183e8c33e8ed0c3b0.zip
add .bashrc
-rw-r--r--.bashrc20
1 files changed, 20 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..1397282
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,20 @@
+#
+# ~/.bashrc
+#
+# Bash executes this file on interactive non-login shell
+#
+
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+# Add `~/bin` to the `$PATH`
+export PATH="$HOME/bin:$PATH"
+
+# Load the shell dotfiles
+for file in ~/.{aliases,bash_prompt}; do
+ [ -r "$file" ] && [ -f "$file" ] && source "$file"
+done
+unset file
+
+# Add tab completion
+[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion