From 97149a6f1dc24ccb24de109ff6301818c50a491e Mon Sep 17 00:00:00 2001 From: --global Date: Sun, 18 Jul 2021 23:24:42 +0200 Subject: scrot -> maim, remove mimetypes before install, gif autoplay in nnn preview, alias cleanup --- shell/.config/shell/aliasrc | 12 ++++++++++-- shell/.config/shell/profile | 2 -- shell/.zshenv | 1 + 3 files changed, 11 insertions(+), 4 deletions(-) create mode 120000 shell/.zshenv (limited to 'shell') diff --git a/shell/.config/shell/aliasrc b/shell/.config/shell/aliasrc index c8becd9..46e7d8e 100644 --- a/shell/.config/shell/aliasrc +++ b/shell/.config/shell/aliasrc @@ -1,5 +1,13 @@ +#!/bin/sh + +# Use neovim for vim if present. [ -x "$(command -v nvim)" ] && alias vim='nvim' vimdiff='nvim -d' +# sudo not required for some system commands +for command in mount umount sv pacman updatedb su ; do + alias $command="sudo $command" +done; unset command + # allow calls of aliases by xargs alias xargs='xargs ' @@ -35,8 +43,8 @@ alias \ a='sudo apt' \ z='zathura' -# spawn terminal -alias st="$TERMINAL /dev/null & disown ;" +# spawn detached terminal +alias dst="$TERMINAL /dev/null & disown ;" # run mpv with SVP, if SVP not active, works as usual mpv alias mpv60='mpv --input-ipc-server=/tmp/mpvsocket --hwdec=auto-copy' diff --git a/shell/.config/shell/profile b/shell/.config/shell/profile index 615add8..5293195 100644 --- a/shell/.config/shell/profile +++ b/shell/.config/shell/profile @@ -60,5 +60,3 @@ export PYTHONPATH=/usr/local/lib/python3.9/site-packages if [ -d "$HOME/platform-tools" ] ; then export PATH="$HOME/platform-tools:$PATH" fi - - diff --git a/shell/.zshenv b/shell/.zshenv new file mode 120000 index 0000000..8486fca --- /dev/null +++ b/shell/.zshenv @@ -0,0 +1 @@ +.config/shell/profile \ No newline at end of file -- cgit v1.2.3