Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add path to prompt #444

Merged
merged 3 commits into from
Nov 28, 2022
Merged

Add path to prompt #444

merged 3 commits into from
Nov 28, 2022

Conversation

vinc
Copy link
Owner

@vinc vinc commented Nov 28, 2022

This PR introduce a second line to the shell prompt displaying the current working directory in the style of Pure for ZSH.

moros-prompt-path-1

@vinc
Copy link
Owner Author

vinc commented Nov 28, 2022

The ~ symbol was modified in the font that MOROS is using from the ZAP Group with the help of psftools to display it in the middle of the line height instead of the top.

Installation of the tool:

export tool=psftools-0.5.1
curl -s https://tset.de/downloads/$tool.tar.gz > $tool.tar.gz
tar xvf $tool.tar.gz
cd $tool
make

Modification of the font:

export font=zap-light-8x16
curl -s https://www.zap.org.au/projects/console-fonts-zap/src/zap-light16.psf > $font.psf
./psfd $font.psf > $font.txt
for i in 1 2 3 4 5
do
  sed -i "2162 d" $font.txt
  sed -i "2148 i ........" $font.txt
done
./psfc $font.txt > $font.psf

@vinc vinc merged commit 3be0a0c into trunk Nov 28, 2022
@vinc vinc deleted the feature/prompt-path branch November 28, 2022 22:22
@vinc vinc mentioned this pull request Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant