From 61fef413b0a32eb5259b49faed001c1f196aa029 Mon Sep 17 00:00:00 2001 From: xyz Date: Sat, 30 Oct 2021 02:04:15 -0700 Subject: refactor --- home/xyz/.bashrc | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'home') diff --git a/home/xyz/.bashrc b/home/xyz/.bashrc index 0d3f7ece..d564917b 100644 --- a/home/xyz/.bashrc +++ b/home/xyz/.bashrc @@ -47,10 +47,10 @@ alias tree='tree -a' # /dev/ttyACM0 can be in config file, or as environmantal variable, see /usr/share/doc/adafruit-ampy/README.md alias ap='sudo ampy -p /dev/ttyACM0' -alias c=cd -alias f=cfg +alias c=cfg alias g=git -alias l='ls -lAh --color=auto --group-directories-first' +alias l='ls -A --group-directories-first' +alias ll='l -lh' alias s='sudo ' # https://askubuntu.com/a/22043 alias se='sudo -E ' alias spd='speedtest --no-upload; librespeed-cli --no-upload' @@ -61,5 +61,14 @@ alias vc='$EDITOR "$XDG_DOCUMENTS_DIR/notes/computer/cli_notes.md"' alias vq='$EDITOR "$XDG_DOCUMENTS_DIR/notes/others/questions_ideas_tips.md"' alias vrc='$EDITOR +e\ \$MYVIMRC' alias wtr='curl v2.wttr.in' +alias zq='zoxide -query -i' -eval "$(zoxide init bash)" +eval "$(zoxide init posix --hook prompt --no-aliases)" + +z () { + __zoxide_z "$@" && l +} + +zi () { + __zoxide_zi "$@" && l +} -- cgit v1.2.3-70-g09d2