Test replacing powerline with starship
This commit is contained in:
@@ -41,7 +41,6 @@ RUN dnf install --assumeyes \
|
|||||||
pinentry \
|
pinentry \
|
||||||
podman-remote \
|
podman-remote \
|
||||||
postgresql \
|
postgresql \
|
||||||
powerline \
|
|
||||||
python3-devel \
|
python3-devel \
|
||||||
python3.10 \
|
python3.10 \
|
||||||
python3.10-devel \
|
python3.10-devel \
|
||||||
@@ -57,7 +56,11 @@ RUN dnf install --assumeyes \
|
|||||||
xxhash-devel
|
xxhash-devel
|
||||||
|
|
||||||
ADD github-install.bash /tmp/github-install.bash
|
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/
|
ADD profile.d/*.sh /etc/profile.d/
|
||||||
|
|
||||||
|
|||||||
@@ -15,3 +15,4 @@ alias psync="poetry install --sync"
|
|||||||
alias code='codium'
|
alias code='codium'
|
||||||
alias ssh='ssh -F ~/.ssh/config'
|
alias ssh='ssh -F ~/.ssh/config'
|
||||||
alias whereami='echo $LOCATION'
|
alias whereami='echo $LOCATION'
|
||||||
|
alias gg='dev'
|
||||||
@@ -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
|
|
||||||
11
scripts.d/10-starship.sh
Normal file
11
scripts.d/10-starship.sh
Normal file
@@ -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)"
|
||||||
Reference in New Issue
Block a user