summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-04-28 02:28:29 +0100
committerubq323 <ubq323@ubq323.website>2023-04-28 02:28:29 +0100
commit4762791fad362c8afe1c9a2b1c555c6a8d7b79d1 (patch)
treebb7a1fa29a4fae77429df57038287bfe939558c6 /.bashrc
parentbb99485eee19fb94e3e57c299e46eb4cabb657bd (diff)
th
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc11
1 files changed, 10 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 018ee89..fc22a7f 100644
--- a/.bashrc
+++ b/.bashrc
@@ -5,7 +5,8 @@
alias ls='ls --color=auto'
alias grep='grep --color=auto'
-PS1='\[\e[90m\][\u@\h \W]\$\[\e[0m\] '
+PROMPT_DIRTRIM=3
+PS1='\[\e[90m\][\u@\h \w]\$\[\e[0m\] '
shopt -s histappend
HISTCONTROL=ignoreboth
@@ -58,6 +59,14 @@ add_path () {
export PATH="$1:$PATH"
}
+shed () {
+ # week year, week week
+ wy=$(date +%G)
+ ww=$(date +%V)
+ mkdir -p "$HOME/shed/$wy/w$ww"
+ cd "$HOME/shed/$wy/w$ww"
+}
+
add_path ~/.local/bin
. ~/.local/bin/rws