From a7177ea6dd8f8f3cc1cdd0355d976e0ecfd91304 Mon Sep 17 00:00:00 2001 From: maudin Date: Tue, 26 Mar 2019 16:43:07 +0100 Subject: [PATCH] add fd plugin and alias --- hybris.zsh | 5 +++-- zshrc | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hybris.zsh b/hybris.zsh index f6d73f8..9511c42 100644 --- a/hybris.zsh +++ b/hybris.zsh @@ -7,13 +7,14 @@ unsetopt share_history # Everyday aliases catwhich() {echo "\e[35mPath: $(which $1)\n\e[39m"; cat $(which $1)} cless() {for a in $@; do ccat $a | less; done} +dchroot() {docker run --rm --privileged -ti $@ debian:stretch /bin/bash} +dontknow() {echo -n "¯\\_(ツ)_/¯" | xclip} e() {emacsclient -n $@ > /dev/null 2>&1} +fd() {fdfind $@} j() {if [ $# -eq 0 ]; then marks; else jump $@; fi} loop() {while [ 1 ]; do sh -c "$@"; done} open_ports() {sudo netstat -tulpen 2> /dev/null | grep "LISTEN"} r() {if [ $# -gt 0 ]; then for h in $@; do ssh root@$h; done; else sudo su -; fi} -dontknow() {echo -n "¯\\_(ツ)_/¯" | xclip} -dchroot() {docker run --rm --privileged -ti $@ debian:stretch /bin/bash} sc-error() {xdg-open "https://github.com/koalaman/shellcheck/wiki/$1"} # Usefull bindings diff --git a/zshrc b/zshrc index 09a3e54..e453320 100644 --- a/zshrc +++ b/zshrc @@ -21,6 +21,7 @@ if ! zgen saved; then zgen oh-my-zsh plugins/colored-man-pages zgen oh-my-zsh plugins/colorize zgen oh-my-zsh plugins/extract + zgen oh-my-zsh plugins/fd zgen oh-my-zsh plugins/git zgen oh-my-zsh plugins/jump zgen oh-my-zsh plugins/keychain