Skip to content

Commit

Permalink
window title tweaks and also on starship now
Browse files Browse the repository at this point in the history
  • Loading branch information
hanoii committed Apr 4, 2024
1 parent 8ad15f0 commit 3cf43fb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ddev/addon-metadata/pimp-my-shell/manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: pimp-my-shell
repository: .
version: ""
install_date: "2024-04-03T15:36:03-03:00"
install_date: "2024-04-04T14:01:25-03:00"
project_files:
- web-build/Dockerfile.pimp-my-shell
- homeadditions/.bashrc.d/pimp-my-shell.sh
Expand Down
5 changes: 5 additions & 0 deletions .ddev/homeadditions/.bashrc.d/pimp-my-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ if [[ "$BASHOPTS" =~ login_shell ]]; then
fi

# starship prompt
function set_win_title(){
echo -ne "\033]0; ddev[$DDEV_PROJECT]@$PWD - $@\007"
}
starship_precmd_user_func="set_win_title"
eval "$(starship init bash)"
trap "set_win_title \${BASH_COMMAND}" DEBUG
2 changes: 1 addition & 1 deletion .ddev/homeadditions/.config/fish/conf.d/pimp-my-shell.fish
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ddev-generated
function fish_title
echo "ddev[$DDEV_PROJECT]@"(fish_prompt_pwd_dir_length=1 prompt_pwd) $argv
echo "ddev[$DDEV_PROJECT]@"(fish_prompt_pwd_dir_length=1 prompt_pwd) - $argv
end
5 changes: 5 additions & 0 deletions homeadditions/.bashrc.d/pimp-my-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ if [[ "$BASHOPTS" =~ login_shell ]]; then
fi

# starship prompt
function set_win_title(){
echo -ne "\033]0; ddev[$DDEV_PROJECT]@$PWD - $@\007"
}
starship_precmd_user_func="set_win_title"
eval "$(starship init bash)"
trap "set_win_title \${BASH_COMMAND}" DEBUG
2 changes: 1 addition & 1 deletion homeadditions/.config/fish/conf.d/pimp-my-shell.fish
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ddev-generated
function fish_title
echo "ddev[$DDEV_PROJECT]@"(fish_prompt_pwd_dir_length=1 prompt_pwd) $argv
echo "ddev[$DDEV_PROJECT]@"(fish_prompt_pwd_dir_length=1 prompt_pwd) - $argv
end

0 comments on commit 3cf43fb

Please sign in to comment.