diff options
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 |