aboutsummaryrefslogtreecommitdiff
path: root/files/.zsh/rc
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2026-10-23 21:27:33 +0500
committerAnton Bobov <anton@bobov.name>2026-10-23 21:27:33 +0500
commit66356da9f8deea33b5db3c62b701f648537b9f61 (patch)
tree064e2bc3c7005616097fdc6f93ab85ef5f7921fa /files/.zsh/rc
parent5d7300fe9215448a381e7786067a25483129cdab (diff)
zsh: add top alias and docker-volume-mc function
Diffstat (limited to 'files/.zsh/rc')
-rw-r--r--files/.zsh/rc/S50_aliases13
1 files changed, 13 insertions, 0 deletions
diff --git a/files/.zsh/rc/S50_aliases b/files/.zsh/rc/S50_aliases
index afe6433..8fb21d0 100644
--- a/files/.zsh/rc/S50_aliases
+++ b/files/.zsh/rc/S50_aliases
@@ -103,6 +103,12 @@ else
alias du='du -h'
fi
+if is_command btop; then
+ alias top=btop
+elif is_command htop; then
+ alias top=htop
+fi
+
alias bc='bc -lq'
alias c=' clear'
@@ -216,6 +222,13 @@ if is_command docker ; then
docker save "$1" | gzip > $(slugify "$1").tar.gz
}
+ function docker-volume-mc() {
+ docker run -it --rm \
+ -v "$1":/data \
+ -v "$(pwd)":/cwd \
+ alpine sh -c "apk add --no-cache mc && mc /data /cwd"
+ }
+
if is_command docker-compose ; then
alias dc='docker-compose'
else