diff --git a/aliases/functions b/aliases/functions index f7f41d4..5b4943d 100644 --- a/aliases/functions +++ b/aliases/functions @@ -27,7 +27,9 @@ alias sudo="sudo " alias S='sudo $(history -n -1)' alias rm="rm -I" -alias v="xdg-open" +function v() { + xdg-open "$@" &| + } alias vmemcache="vmtouch -l -m 12G -v" @@ -115,6 +117,12 @@ pumount() { fi } +dl-source() { + for file in "$@"; do + getfattr --only-values -n user.xdg.origin.url "$file" 2>/dev/null && echo || echo "$file: no download source info" >&2 + done +} + #}}} ################################################################################# diff --git a/confs b/confs index dc4b5ba..1b2863f 100755 --- a/confs +++ b/confs @@ -1,4 +1,5 @@ awesome $XDG_CONFIG_HOME/awesome +alacritty $XDG_CONFIG_HOME/alacritty/alacritty.yml compose $HOME/.XCompose.long db $XDG_CONFIG_HOME/dmsearch/data/db_targets khal $XDG_CONFIG_HOME/khal/config diff --git a/zplug.zsh b/zplug.zsh index bf04742..58d52e2 100644 --- a/zplug.zsh +++ b/zplug.zsh @@ -10,6 +10,7 @@ zplug 'crater2150-zsh/chroma-z', as:theme zplug $ZDOTDIR/plugins/highlight-config, from:local, defer:3 zplug $ZDOTDIR/plugins/bundled-compdefs, from:local zplug $ZDOTDIR/plugins/tmpsrc, from:local +zplug $ZDOTDIR/plugins/pyenv, from:local zplug 'molovo/revolver', \ as:command, \ @@ -25,9 +26,6 @@ zplug "plugins/ng", from:oh-my-zsh zplug "zpm-zsh/colors" -zplug "clvv/fasd", as:command, use:fasd -zplug "plugins/fasd", from:oh-my-zsh, if:"(( $+commands[fasd] ))", on:"clvv/fasd" - zplug "xuhdev/k", at:gnu-ls-color zplug "urbainvaes/fzf-marks" diff --git a/zshrc b/zshrc index 8f0ebbc..69804bb 100644 --- a/zshrc +++ b/zshrc @@ -61,5 +61,12 @@ if exists stack; then eval "$(stack --bash-completion-script stack)" fi +if exists pyenv; then + eval "$(pyenv init -)" + if pyenv commands | grep -q 'virtualenv'; then + eval "$(pyenv virtualenv-init -)" + fi +fi + exists todo && todo exists thefuck && eval $(thefuck --alias)