From 298a20c8491769d7220deabdf27e05d897c24c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Thu, 22 Jun 2023 14:16:03 +0200 Subject: [PATCH] Switch to zoxide --- awesome/rc.lua | 2 +- profile/.profile | 2 ++ zsh/.zshrc | 16 ++++++++++------ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/awesome/rc.lua b/awesome/rc.lua index 11eee34..bf042ff 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -32,7 +32,6 @@ local run_on_start_up = { -- Define layouts awful.layout.layouts = { - grid, awful.layout.suit.tile, awful.layout.suit.floating, grid.horizontal, @@ -40,6 +39,7 @@ awful.layout.layouts = { awful.layout.suit.tile.left, awful.layout.suit.tile.bottom, awful.layout.suit.tile.top, + grid, } diff --git a/profile/.profile b/profile/.profile index dad1a62..7dc8d72 100644 --- a/profile/.profile +++ b/profile/.profile @@ -15,3 +15,5 @@ export SQLITE_HISTORY="$XDG_CACHE_HOME"/sqlite_history export WINEPREFIX="$XDG_DATA_HOME"/wine export ZDOTDIR="$XDG_CONFIG_HOME"/zsh export XDG_CURRENT_DESKTOP=GNOME +export OPENCV_LOG_LEVEL=ERROR + diff --git a/zsh/.zshrc b/zsh/.zshrc index 5069fcf..6438357 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -67,15 +67,10 @@ zle -N down-line-or-beginning-search zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*' +zstyle ':completion::complete:*' gain-privileges 1 autoload -Uz compinit && compinit -if [ -f "/usr/share/autojump/autojump.sh" ]; then - source /usr/share/autojump/autojump.sh -elif [ -f "/etc/profile.d/autojump.zsh" ]; then - source /etc/profile.d/autojump.zsh -fi - if [ -f "/usr/share/doc/pkgfile/command-not-found.zsh" ]; then source /usr/share/doc/pkgfile/command-not-found.zsh fi @@ -168,6 +163,15 @@ unset __mamba_setup autoload -Uz add-zsh-hook +eval "$(zoxide init zsh --cmd j)" + +function cpr() { + rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 "$@" +} +function mvr() { + rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 --remove-source-files "$@" +} + function xterm_title_precmd () { print -Pn -- '\e]2;%n@%m %~\a' }