aboutsummaryrefslogtreecommitdiff
path: root/files/.zsh/rc/S50_aliases
diff options
context:
space:
mode:
Diffstat (limited to 'files/.zsh/rc/S50_aliases')
-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