From 2fcda19a40f663bd6c322aa43235e6cb337f3757 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Wed, 5 Nov 2025 23:34:53 -0500 Subject: [PATCH] Test replacing powerline with starship --- container/Containerfile | 7 +++++-- scripts.d/01-aliases.sh | 3 ++- scripts.d/10-powerline.sh | 6 ------ scripts.d/10-starship.sh | 11 +++++++++++ 4 files changed, 18 insertions(+), 9 deletions(-) delete mode 100644 scripts.d/10-powerline.sh create mode 100644 scripts.d/10-starship.sh diff --git a/container/Containerfile b/container/Containerfile index 7bb6471..3cf7ac8 100644 --- a/container/Containerfile +++ b/container/Containerfile @@ -41,7 +41,6 @@ RUN dnf install --assumeyes \ pinentry \ podman-remote \ postgresql \ - powerline \ python3-devel \ python3.10 \ python3.10-devel \ @@ -57,7 +56,11 @@ RUN dnf install --assumeyes \ xxhash-devel ADD github-install.bash /tmp/github-install.bash -RUN bash /tmp/github-install.bash && rm -rf /tmp/github-install.bash +RUN bash /tmp/github-install.bash && \ + rm -rf /tmp/github-install.bash && \ + curl -sSLo /tmp/starship.sh https://starship.rs/install.sh && \ + sh /tmp/starship.sh --yes && \ + rm -rf /tmp/starship.sh ADD profile.d/*.sh /etc/profile.d/ diff --git a/scripts.d/01-aliases.sh b/scripts.d/01-aliases.sh index 9024a79..edbae35 100644 --- a/scripts.d/01-aliases.sh +++ b/scripts.d/01-aliases.sh @@ -14,4 +14,5 @@ alias prun="poetry run" alias psync="poetry install --sync" alias code='codium' alias ssh='ssh -F ~/.ssh/config' -alias whereami='echo $LOCATION' \ No newline at end of file +alias whereami='echo $LOCATION' +alias gg='dev' \ No newline at end of file diff --git a/scripts.d/10-powerline.sh b/scripts.d/10-powerline.sh deleted file mode 100644 index b068e6a..0000000 --- a/scripts.d/10-powerline.sh +++ /dev/null @@ -1,6 +0,0 @@ -if [ -f `which powerline-daemon` ]; then - powerline-daemon -q - POWERLINE_BASH_CONTINUATION=1 - POWERLINE_BASH_SELECT=1 - . /usr/share/powerline/bash/powerline.sh -fi \ No newline at end of file diff --git a/scripts.d/10-starship.sh b/scripts.d/10-starship.sh new file mode 100644 index 0000000..07cc43b --- /dev/null +++ b/scripts.d/10-starship.sh @@ -0,0 +1,11 @@ +function set_window_title() { + if [ "${PWD}" == $PROJECTS_DIR/* ]; then + echo -ne "Dev - $(basename $PWD)" + else + echo -ne "$LOCATION" + fi +} + +starship_precmd_user_func="set_window_title" + +eval "$(starship init bash)" \ No newline at end of file