-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://nerdfonts.com/ For a long time I was skeptical but I decided to try it anyway & I like it to be honest. I have a switch in case I want to toggle this `$NERD_FONTS` - I'm using Iosevka Term Nerd Font because Kitty doesn't render the normal Iosevka ligatures properly kovidgoyal/kitty#297, but in iTerm & Alacrrity it should be fine I suppose. - But here is the catch, I can have both fonts installed 🤦 because ryanoasis/nerd-fonts#257 (comment) so for now using the Term one for now (no ligatures) - Most of the changes are actually in vim mainly the statusline, I also tweaked the statusline too to make is a bit more minimal. - In tmux, the main major chnages are: - in the github status script (won't show anything by default, only if Github is having issue) - Battery check this ahmedelgabri/Battery@a4145f5 - zsh prompt check ahmedelgabri/pure@de04c1d
- Loading branch information
1 parent
c9035f5
commit 8a6342d
Showing
10 changed files
with
91 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,33 @@ | ||
#!/bin/bash | ||
GITHUB_STATUS=$(curl -sS https://status.github.com/api/status.json | jq -r '.status') | ||
|
||
case $GITHUB_STATUS in | ||
ma*) | ||
SIGNAL="#[fg=red]⨉" | ||
;; | ||
mi*) | ||
SIGNAL="#[fg=yellow]~" | ||
;; | ||
*) | ||
SIGNAL="✓" | ||
;; | ||
esac | ||
if [ -n "$NERD_FONTS" ]; then | ||
INDICATIOR=" #[fg=colour237]• " | ||
case $GITHUB_STATUS in | ||
ma*) | ||
STATUS="#[fg=red]$INDICATIOR" | ||
;; | ||
mi*) | ||
STATUS="#[fg=yellow]$INDICATIOR" | ||
;; | ||
*) | ||
STATUS="" | ||
;; | ||
esac | ||
else | ||
INDICATIOR=" #[fg=colour237]• " | ||
case $GITHUB_STATUS in | ||
ma*) | ||
STATUS="#[fg=red]⨉$INDICATOR" | ||
;; | ||
mi*) | ||
STATUS="#[fg=yellow]~$INDICATIOR" | ||
;; | ||
*) | ||
STATUS="" | ||
;; | ||
esac | ||
fi | ||
|
||
echo "$SIGNAL" | ||
echo "$STATUS" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters