diff --git a/aliases/functions b/aliases/functions index 8bef2b1..daf78d3 100644 --- a/aliases/functions +++ b/aliases/functions @@ -28,8 +28,10 @@ alias S='sudo $(history -n -1)' alias rm="rm -I" function v() { - xdg-open "$@" &| - } + for file in $@; do + xdg-open $file &| + done +} alias vmemcache="vmtouch -l -m 12G -v" @@ -43,8 +45,8 @@ alias de="dict.cc.py en de" su() { if [[ -z "$@" ]]; then - echo "Switching to sudo -s for enviromental reasons" - sudo -s + echo "Switching to sudo -i for enviromental reasons" + sudo -i else command su "$@" fi @@ -305,3 +307,7 @@ alias vcat="nvimpager -c" alias icat="kitty +kitten icat" # vim: foldmethod=marker + +function lastdl() { + echo ~/downloads/*(oc.[1]) +} diff --git a/env/20_services.zsh b/env/20_services.zsh index 2851f8d..b6e358c 100644 --- a/env/20_services.zsh +++ b/env/20_services.zsh @@ -1,3 +1,3 @@ -if [[ $DISPLAY ]]; then +if [[ $DISPLAY && $UID != 0 ]]; then export SVDIR="$HOME/.local/session_service" fi diff --git a/zplug.zsh b/zplug.zsh index f2b06dc..69eef15 100644 --- a/zplug.zsh +++ b/zplug.zsh @@ -29,7 +29,6 @@ zplug "plugins/ng", from:oh-my-zsh zplug "zpm-zsh/colors" -zplug "xuhdev/k", at:gnu-ls-color zplug "urbainvaes/fzf-marks" zplug "crater2150-zsh/tmsu-fzf", as:plugin diff --git a/zshrc b/zshrc index 22b413a..93832b6 100644 --- a/zshrc +++ b/zshrc @@ -14,6 +14,7 @@ setopt chase_links setopt short_loops setopt cdable_vars WORDCHARS=${WORDCHARS//\/} +cdpath+=$HOME export ZDOTDIR=${ZDOTDIR:-$HOME/.zsh}