summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
author--global <ik.boikov.public@protonmail.com>2021-07-18 23:24:42 +0200
committer--global <ik.boikov.public@protonmail.com>2021-07-18 23:24:42 +0200
commit97149a6f1dc24ccb24de109ff6301818c50a491e (patch)
tree46c7786d8ad571ee72831765054601a72eeb0394 /shell
parentf31b61bc5590a7e814e030ee25eac5da5f2f20c3 (diff)
scrot -> maim, remove mimetypes before install, gif autoplay in nnn preview, alias cleanup
Diffstat (limited to 'shell')
-rw-r--r--shell/.config/shell/aliasrc12
-rw-r--r--shell/.config/shell/profile2
l---------shell/.zshenv1
3 files changed, 11 insertions, 4 deletions
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 &>/dev/null & disown ;"
+# spawn detached terminal
+alias dst="$TERMINAL </dev/null &>/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