Minor changes to some functions

This commit is contained in:
crater2150 2021-12-03 15:10:31 +01:00
parent 118704ae78
commit b63655c492
4 changed files with 12 additions and 6 deletions

View file

@ -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])
}

2
env/20_services.zsh vendored
View file

@ -1,3 +1,3 @@
if [[ $DISPLAY ]]; then
if [[ $DISPLAY && $UID != 0 ]]; then
export SVDIR="$HOME/.local/session_service"
fi

View file

@ -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

1
zshrc
View file

@ -14,6 +14,7 @@ setopt chase_links
setopt short_loops
setopt cdable_vars
WORDCHARS=${WORDCHARS//\/}
cdpath+=$HOME
export ZDOTDIR=${ZDOTDIR:-$HOME/.zsh}