blob: 7e8a9ae4846c37684f49fbcfc7bd6abce2fd1c59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
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
}
gopr() {
d="$HOME/pr/$1"
mkdir -p "$d"
workin "$d"
}
. ~/bin/rws
gowork
enshed () {
shed
workin .
}
eval `luarocks path`
|