summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
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