aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-10-07 15:04:07 +0200
committersrdusr <trevorgray@srdusr.com>2023-10-07 15:04:07 +0200
commit8dc6ad779defe487a9da95aa5b0408e9ccc54759 (patch)
tree5e3946e9bc649f6313def32cebd1442c43dad76e /.bashrc
parent785c8558e87d835f31d2f855457891746fb0baa0 (diff)
downloaddotfiles-8dc6ad779defe487a9da95aa5b0408e9ccc54759.tar.gz
dotfiles-8dc6ad779defe487a9da95aa5b0408e9ccc54759.zip
Add shellcheck directive
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc21
1 files changed, 11 insertions, 10 deletions
diff --git a/.bashrc b/.bashrc
index 7828637..016c8ca 100644
--- a/.bashrc
+++ b/.bashrc
@@ -1,8 +1,9 @@
+# shellcheck shell=bash
#
#██████╗ █████╗ ███████╗██╗ ██╗██████╗ ██████╗
#██╔══██╗██╔══██╗██╔════╝██║ ██║██╔══██╗██╔════╝
-#██████╔╝███████║███████╗███████║██████╔╝██║
-#██╔══██╗██╔══██║╚════██║██╔══██║██╔══██╗██║
+#██████╔╝███████║███████╗███████║██████╔╝██║
+#██╔══██╗██╔══██║╚════██║██╔══██║██╔══██╗██║
#██████╔╝██║ ██║███████║██║ ██║██║ ██║╚██████╗
#╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝
#
@@ -10,12 +11,12 @@
#
if [[ $- != *i* ]]; then
- . ~/.profile
- return
+ . ~/.profile
+ return
fi
# Get the current active terminal
-term="$(cat /proc/$PPID/comm)"
+term="$(cat /proc/"$PPID"/comm)"
# Set a default prompt
p='\[\033[01;37m\]┌─[\[\033[01;32m\]srdusr\[\033[01;37m\]]-[\[\033[01;36m\]archlinux\[\033[01;37m\]]-[\[\033[01;33m\]\W\]\[\033[00;37m\]\[\033
@@ -25,11 +26,11 @@ p='\[\033[01;37m\]┌─[\[\033[01;32m\]srdusr\[\033[01;37m\]]-[\[\033[01;36m\]a
if [[ $term = "st" ]]; then
transset-df "0.65" --id "$WINDOWID" >/dev/null
-# [Your_Name]-----| |=======|------[Your_Distro]
-# [Color]--------| | [Color]------| |
-# [Style]------------| | | [Style]---------| | |
-# V V V V V V
- p='\[\033[01;37m\]┌─[\[\033[01;32m\]srdusr\[\033[01;37m\]]-[\[\033[01;36m\]archlinux\[\033[01;37m\]]-[\[\033[01;33m\]\W\[\033[00;37m\]\[\033[01;37m\]]
+ # [Your_Name]-----| |=======|------[Your_Distro]
+ # [Color]--------| | [Color]------| |
+ # [Style]------------| | | [Style]---------| | |
+ # V V V V V V
+ p='\[\033[01;37m\]┌─[\[\033[01;32m\]srdusr\[\033[01;37m\]]-[\[\033[01;36m\]archlinux\[\033[01;37m\]]-[\[\033[01;33m\]\W\[\033[00;37m\]\[\033[01;37m\]]
\[\033[01;37m\]└─[\[\033[05;33m\]$\[\033[00;37m\]\[\033[01;37m\]]\[\033[00;37m\] '
# A A A
# [Style]----| | |-------- [Your_Choice]