From f2be4fad32394f0f71a50fbd2728f10291eb9831 Mon Sep 17 00:00:00 2001 From: AngeD Date: Tue, 28 Mar 2023 18:34:45 +0200 Subject: [PATCH 1/3] feat: am refresh option --- bin/am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/am b/bin/am index 457a018..a68c8f1 100755 --- a/bin/am +++ b/bin/am @@ -51,11 +51,14 @@ while getopts a o; do done while true; do - #readarray -t LSBLK <<< "$(lsblk -n --paths | grep -v snap)" readarray -t LSBLK <<< "$(lsblk -n --paths --list | grep part)" COLUMNS=1 select dev in "${LSBLK[@]}"; do + if [ -z "$dev" ]; then + clear_output + break + fi name="$(cut -f1 -d' ' <<< "$dev")" clear_output From 73e2648c1700180327637f0318ad6da2d921576c Mon Sep 17 00:00:00 2001 From: AngeD Date: Tue, 28 Mar 2023 18:36:05 +0200 Subject: [PATCH 2/3] feat: p10k status number, remove mytheme --- .config/zsh/.p10k.zsh | 2 +- .config/zsh/custom/themes/mytheme.zsh-theme | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 .config/zsh/custom/themes/mytheme.zsh-theme diff --git a/.config/zsh/.p10k.zsh b/.config/zsh/.p10k.zsh index 271f4f2..71a42a6 100644 --- a/.config/zsh/.p10k.zsh +++ b/.config/zsh/.p10k.zsh @@ -511,7 +511,7 @@ # Status when it's just an error code (e.g., '1'). No need to show it if prompt_char is enabled as # it will signify error by turning red. - typeset -g POWERLEVEL9K_STATUS_ERROR=false + typeset -g POWERLEVEL9K_STATUS_ERROR=true typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=160 typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='✘' diff --git a/.config/zsh/custom/themes/mytheme.zsh-theme b/.config/zsh/custom/themes/mytheme.zsh-theme deleted file mode 100644 index accc3a6..0000000 --- a/.config/zsh/custom/themes/mytheme.zsh-theme +++ /dev/null @@ -1,6 +0,0 @@ -PROMPT='%(?::%{$fg_bold[red]%}%? )%{$fg_bold[cyan]%}%~%{$reset_color%} $(git_prompt_info)' - -ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg[red]%}" -ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " -ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗" -ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" From 3f654a51e81a591bebe5203bbd59e4ee06811db0 Mon Sep 17 00:00:00 2001 From: AngeD Date: Tue, 28 Mar 2023 18:36:34 +0200 Subject: [PATCH 3/3] feat: j working with full path --- .config/nvim/pack/plugins/opt/lspconfig | 2 +- .config/nvim/pack/plugins/opt/treesitter | 2 +- .config/zsh/.zsh_aliases | 4 +--- .config/zsh/completions/_j | 2 +- .config/zsh/ohmyzsh | 2 +- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.config/nvim/pack/plugins/opt/lspconfig b/.config/nvim/pack/plugins/opt/lspconfig index e99d159..c5505c7 160000 --- a/.config/nvim/pack/plugins/opt/lspconfig +++ b/.config/nvim/pack/plugins/opt/lspconfig @@ -1 +1 @@ -Subproject commit e99d1590c7dc4c97b7dbc6a9c7e2dd830e204eea +Subproject commit c5505c70571b094663745167d40388edd40f6450 diff --git a/.config/nvim/pack/plugins/opt/treesitter b/.config/nvim/pack/plugins/opt/treesitter index c9ef5e5..5a7a2ad 160000 --- a/.config/nvim/pack/plugins/opt/treesitter +++ b/.config/nvim/pack/plugins/opt/treesitter @@ -1 +1 @@ -Subproject commit c9ef5e58f7d59aba875324825ff47900d0be61f2 +Subproject commit 5a7a2ad172bcc40c53aa274dff05aacb5074b509 diff --git a/.config/zsh/.zsh_aliases b/.config/zsh/.zsh_aliases index 3e26aa8..2d3509b 100644 --- a/.config/zsh/.zsh_aliases +++ b/.config/zsh/.zsh_aliases @@ -29,10 +29,8 @@ alias xargs='xargs ' function j() { local dests=($(find . -maxdepth 5 -type d -path "*/$1" 2> /dev/null)) - #local dests=(**/"$1"/) - local dest="$dests" + local dest="${dests:-$1}" [ -n "${dests[2]}" ] && dest="$(printf '%s\n' "${dests[@]}" | fzf)" - ls -d "$dest" cd "$dest" } diff --git a/.config/zsh/completions/_j b/.config/zsh/completions/_j index 0628d39..53bd275 100644 --- a/.config/zsh/completions/_j +++ b/.config/zsh/completions/_j @@ -1,3 +1,3 @@ #compdef j -_arguments "1: :(**/"$1"/)" +_arguments "1: :(**/"$1")" diff --git a/.config/zsh/ohmyzsh b/.config/zsh/ohmyzsh index c08b925..fcbdc33 160000 --- a/.config/zsh/ohmyzsh +++ b/.config/zsh/ohmyzsh @@ -1 +1 @@ -Subproject commit c08b925d282e35ea7bd9a8f4c29de2ece0debb49 +Subproject commit fcbdc330ff50617c8b84d39ce069cc75df41108f