aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc40
1 files changed, 40 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..a614dde
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,40 @@
+
+#
+# ~/.bashrc
+
+# Get the current active terminal
+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
+\[\033[01;37m\]└─[\[\033[05;33m\]$\[\033[00;37m\]\[\033[01;37m\]]\[\033[00;37m\] '
+
+# Set transparency and prompt while using st
+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\]]
+\[\033[01;37m\]└─[\[\033[05;33m\]$\[\033[00;37m\]\[\033[01;37m\]]\[\033[00;37m\] '
+# A A A
+# [Style]----| | |-------- [Your_Choice]
+# [Color]------------|
+
+fi
+
+# If not running interactively, dont do anything
+[[ $- != *i* ]] && return
+
+# My alias commands
+alias ls='ls --color=auto -1'
+alias shred='shred -uzvn3'
+alias wallset='feh --bg-fill'
+
+PS1=$p
+
+# pfetch
+. "/home/srdusr/.local/share/cargo/env"
+. "$HOME/.cargo/env"