Skip to content

Commit

Permalink
feat: improve codely zsh multiline theme
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezcasas committed Apr 12, 2024
1 parent 69bcaca commit 12ca79c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 5 additions & 1 deletion scripts/core/short_pwd
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ source "$DOTLY_PATH/scripts/core/_main.sh"
if [[ $(pwd) == "$HOME" ]]; then
echo "~"
else
echo ${${${:-/${(j:/:)${(M)${(s:/:)${(D)PWD:h}}#(|.)[^.]}}/${PWD:t}}//\/~/\~}/\/\//\/}
current_dir=$(pwd)
penultimate_dir=$(/usr/bin/basename "$(dirname "$current_dir")" | cut -c1-2)
path=$(dirname "$(dirname "$current_dir")" | sed "s|$HOME|~|g" | sed -E 's|/([^/])[^/]*|/\1|g')

echo "$path/$penultimate_dir/$(/usr/bin/basename "$current_dir")"
fi
5 changes: 0 additions & 5 deletions scripts/dotfiles/import
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,3 @@ source "$DOTLY_PATH/scripts/core/_main.sh"
##? import [dotfiles_path]
##?
docs::parse "$@"

## .zshrc
## .bash
## .gitconfig
## .gitignore_global
2 changes: 1 addition & 1 deletion shell/zsh/themes/prompt_codely_setup
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ prompt_codely_setup() {
fi

if [ "$CODELY_THEME_PROMPT_IN_NEW_LINE" = true ]; then
PS1="$PS1"$'\n└➤ '
PS1="$PS1"$'\n%F{white}╰ '
fi

RPS1=''
Expand Down

0 comments on commit 12ca79c

Please sign in to comment.