diff options
-rw-r--r-- | .zshrc | 13 | ||||
-rwxr-xr-x | bin/clipd | 28 | ||||
-rwxr-xr-x | vagrant/virsh-set-pool.sh | 6 |
3 files changed, 40 insertions, 7 deletions
@@ -137,7 +137,6 @@ alias fixirssistartup="cp ~/scripts/irssi/startup ~/.irssi/startup" alias w3mlastsession="~/.w3m/bin/w3mlastsession" alias lsdrc="vim ~/scripts/.config/lsd/config.yaml" alias fixlsdrc="cp ~/scripts/.config/lsd/config.yaml ~/.config/lsd/config.yaml" -alias vagrant="PATH=$PATH:/mnt/c/Windows/System32:/mnt/c/Windows/System32/WindowsPowerShell/v1.0 vagrant" alias cygwin="/mnt/d/home/apps/cygwin/bin/bash.exe -l -i" alias farmanager="/mnt/c/Program\ Files/Far\ Manager/Far.exe" alias pwsh="/mnt/c/Program\ Files/PowerShell/7/pwsh.exe" @@ -221,6 +220,14 @@ docc() { # cp ~/scripts/c/debug.dbg ./ } +dockernuke() { + docker stop `docker ps -qa` + docker rm `docker ps -qa` + docker rmi -f `docker images -qa ` + docker volume rm $(docker volume ls -qf) + docker network rm `docker network ls -q` +} + mdvv() { mdv -t 729.8953 "$@" } @@ -262,7 +269,6 @@ STARDICT_DATA_DIR="/home/devi/.stardict" export STARDICT_DATA_DIR export LIBGL_ALWAYS_INDIRECT=1 #export PULSE_SERVER=tcp:192.168.1.103 -export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1" export WWW_HOME="duckduckgo.com" alias def="sdcv --color" #goenv @@ -283,6 +289,8 @@ export PYGMENTIZE_STYLE="paraiso-dark" export BAT_THEME="Solarized (light)" +export SVDIR=~/service + export FZF_TMUX_OPTS="-p 70%,70%" export FZF_DEFAULT_OPTS="--color fg:7,bg:0,hl:31,fg+:24,bg+:0,hl+:63,info:34,prompt:27,spinner:24,pointer:24,marker:22" @@ -325,6 +333,7 @@ export PATH=$PATH:/home/devi/opam export PATH=$PATH:/home/devi/devi/ghorg export PATH=$PATH:/home/devi/kubectl export PATH=$PATH:/home/devi/solidity +export PATH=$PATH:/home/devi/vagrant # export PATH=$PATH:/home/devi/devi/emsdk.git/main # export PATH=$PATH:/home/devi/devi/emsdk.git/main/node/14.15.5_64bit/bin # export PATH=$PATH:/home/devi/devi/emsdk.git/main/upstream/emscripten @@ -3,13 +3,32 @@ -- needs xsel, clipnotify -- needs luaposix, luarocks-5.3 install --local luaposix -- cat .clip_history | dmenu -l 10 | xsel -ib --- FIXME-all entries are copied with an extra new line -local clipd = {} +local function default_luarocks_modules() + local luarocks_handle = io.popen("luarocks-5.3 path --bin") + local path_b = false + local cpath_b = false + for line in luarocks_handle:lines() do + local path = string.match(line, "LUA_PATH%s*=%s*('.+')") + local cpath = string.match(line, "LUA_CPATH%s*=%s*('.+')") + if path ~= nil then + package.path = package.path .. ";" .. string.sub(path, 2, -2) + end + if cpath ~= nil then + package.cpath = package.cpath .. ";" .. string.sub(cpath, 2, -2) + end + end + + if path_b then os.exit(1) end + if cpath_b then os.exit(1) end +end +default_luarocks_modules() + local string = require("string") -local signal = require("posix.signal") +-- local signal = require("posix.signal") -signal.signal(signal.SIGINT, function(signum) os.exit(128 + signum) end) +-- signal.signal(signal.SIGINT, function(signum) os.exit(128 + signum) end) +-- FIXME-clip history size is not being used local function loop() local clip_hist_size = 100 local clip_hist = "/home/devi/.clip_history" @@ -36,4 +55,3 @@ local function loop() end loop() -return clipd diff --git a/vagrant/virsh-set-pool.sh b/vagrant/virsh-set-pool.sh new file mode 100755 index 0000000..af280a7 --- /dev/null +++ b/vagrant/virsh-set-pool.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env sh + +virsh pool-define-as --name default --type dir --target /home/devi/storage/ssd1/vagrant/libvirt +virsh pool-autostart default +virsh pool-start default +virsh pool-list |