summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorsinanmohd <pcmsinan@gmail.com>2023-03-10 19:08:13 +0530
committersinanmohd <pcmsinan@gmail.com>2023-03-10 19:27:54 +0530
commitbaf2695c6ca84bd3cf612d4017228a0f97c6a4bf (patch)
tree146162e758f1e87d8ee4d9733a8beb6a691147aa /.bashrc
shell: initial shell setup
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc17
1 files changed, 17 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..c2b206d
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# return when not interactive
+case "$-" in
+*i*)
+ ;;
+*)
+ return
+ ;;
+esac
+
+# bashism
+complete -cf doas
+
+# shism u_u
+[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/init" ] &&
+ . "${XDG_CONFIG_HOME:-$HOME/.config}/shell/init"