summaryrefslogtreecommitdiff
path: root/.snail.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.snail.bashrc')
-rw-r--r--.snail.bashrc25
1 files changed, 25 insertions, 0 deletions
diff --git a/.snail.bashrc b/.snail.bashrc
new file mode 100644
index 0000000..bdbd517
--- /dev/null
+++ b/.snail.bashrc
@@ -0,0 +1,25 @@
+runtimeify() {
+ sudo mkdir /run/user/1000
+ sudo chown rebecca:rebecca /run/user/1000
+ sudo chmod 700 /run/user/1000
+ export XDG_RUNTIME_DIR=/run/user/1000
+}
+
+export SSH_AUTH_SOCK=/run/user/1000/ssh-agent.sock
+( pgrep -u $USER ssh-agent || ssh-agent -a $SSH_AUTH_SOCK ; ) >/dev/null
+
+
+shed () {
+ # week year, week week
+ wy=$(date +%G)
+ ww=$(date +%V)
+ d="$HOME/shed/$wy/w$ww"
+ mkdir -p "$d"
+ cd "$d"
+ ln -sfT "$PWD" ~/shed/current
+}
+
+
+. ~/bin/rws
+gowork
+