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/.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/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]%})" 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 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