diff options
author | ubq323 <ubq323@ubq323.website> | 2023-04-28 02:28:29 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-04-28 02:28:29 +0100 |
commit | 4762791fad362c8afe1c9a2b1c555c6a8d7b79d1 (patch) | |
tree | bb7a1fa29a4fae77429df57038287bfe939558c6 /.bashrc | |
parent | bb99485eee19fb94e3e57c299e46eb4cabb657bd (diff) |
th
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |