diff options
| author | Mike Vink <ivi@vinkies.net> | 2025-06-20 19:28:33 +0200 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2025-06-20 19:29:09 +0200 |
| commit | 07afa0633223edcbbd0689a2f375fbce3c1af1fb (patch) | |
| tree | 6ba8a31482b379c61e61aea70fcd910f2aac37ef /.config | |
| parent | 9c95c55d9a0d4d6bd264c66462444a6ce6cb4411 (diff) | |
update
Diffstat (limited to '.config')
| -rw-r--r-- | .config/shell/aliasrc | 56 | ||||
| -rw-r--r-- | .config/shell/profile | 2 |
2 files changed, 49 insertions, 9 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index db026ab..5b53059 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -1,10 +1,50 @@ +#!/bin/sh + +# sudo not required for some system commands +for command in mount umount sv xbps-remove xbps-install updatedb su shutdown poweroff reboot ; do + alias $command="sudo $command" +done; unset command + +# Verbosity and settings that you pretty much just always are going to want. +alias \ + cp="cp -iv" \ + mv="mv -iv" \ + rm="rm -vI" \ + bc="bc -ql" \ + rsync="rsync -vrPlu" \ + mkd="mkdir -pv" \ + yt="yt-dlp --embed-metadata -i" \ + yta="yt -x -f bestaudio/best" \ + ytt="yt --skip-download --write-thumbnail" \ + ffmpeg="ffmpeg -hide_banner" + +# Colorize commands when possible. +alias \ + ls="ls -hN --color=auto --group-directories-first" \ + ll="ls -hNl --color=auto --group-directories-first" \ + grep="grep --color=auto" \ + diff="diff --color=auto" \ + ccat="highlight --out-format=ansi" \ + ip="ip -color=auto" + +# These common commands are just too long! Abbreviate them. +alias \ + ka="killall" \ + g="git" \ + s="{ git status --short ; git log --oneline @{push}.. ; }" \ + ga="git add " \ + gc="git commit " \ + d="docker" \ + trem="transmission-remote" \ + YT="youtube-viewer" \ + sdn="shutdown -h now" \ + e='$EDITOR' \ + v='$EDITOR' \ + p="pacman" \ + xi="xbps-install" \ + xr="xbps-remove -R" \ + xq="xbps-query" \ + z="zathura" + alias \ ref="shortcuts >/dev/null; . ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; . ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc" -alias g="git " -alias s="{ git status --short ; git log --oneline @{push}.. ; }" -alias ga="git add " -alias gc="git commit " -alias d="docker " -alias d=' echo cd $PWD | kak -p s; eval "[ -n \"$(jobs)\" ] && fg" ' -alias b=' eval "$(cd-kak-buf)"' -alias z='zathura ' diff --git a/.config/shell/profile b/.config/shell/profile index 59754ac..479fb76 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -16,7 +16,7 @@ then d="/run/user/$(id -u)" fi export TERMINAL="st" -export EDITOR="e" +export EDITOR="kak-desktop" export GIT_EDITOR="kak" export BROWSER="firefox" |
