Merge branch 'master' of gitee.com:klesh/dotfiles

This commit is contained in:
Klesh Wong 2020-08-17 10:28:33 +08:00
commit f579bcad39
2 changed files with 8 additions and 7 deletions

View File

@ -43,8 +43,9 @@ function move_file(folder)
end
mp.add_key_binding("alt+DEL", "delete_file", delete_file)
mp.add_key_binding("alt+d", "delete_file", delete_file)
mp.add_key_binding("alt+a", "move_a", move_file('a'))
mp.add_key_binding("alt+b", "move_b", move_file('b'))
mp.add_key_binding("alt+w", "move_c", move_file('c'))
mp.add_key_binding("alt+s", "move_s", move_file('s'))
mp.add_key_binding("alt+w", "move_w", move_file('w'))

View File

@ -23,9 +23,9 @@ trusted-host = pypi.doubanio.com
EOF
# docker accelerator
if [ -d /etc/docker ]; then$
dj='{}'$
[ -f /etc/docker/daemon.json ] && dj=$(cat /etc/docker/daemon.json)$
echo $dj | jq '. + {"registry-mirrors": ["https://izuhlbap.mirror.aliyuncs.com"]}' > /etc/docker/daemon.json$
systemctl restart docker$
fi$
if [ -d /etc/docker ]; then
dj='{}'
[ -f /etc/docker/daemon.json ] && dj=$(cat /etc/docker/daemon.json)
echo $dj | jq '. + {"registry-mirrors": ["https://izuhlbap.mirror.aliyuncs.com"]}' > /etc/docker/daemon.json
systemctl restart docker
fi