It is in my .bashrc, but any delay is not noticeable.
Mike Wooskey
- 2 Posts
- 31 Comments
Starships looks very interesting! I’m going to check it out. Thanks!
Well, yeah, but it’s git: https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh
My thinking is that I trust git on my computer, so I trust downloading from their repo.
But you’re right. I should revisit this and see if it’s even necessary.
Mine shows the user and host, git commit and branch, docker context and directory, color coded based on status of git:
[root@server001|G:19e526e@(master)|D:myContext|currentDir] $
## PS1 adapted from https://gist.github.com/xenji/2292341 ps1_generator() { # docker context inspect --format '{{ .Name }}' Time12h="\T"; Time12a="\@"; ShortHost="\h"; Username="\u"; PathShort="\W"; PathFull="\w"; NewLine="\n"; Jobs="\j"; test -f ~/.config/git-prompt.sh || \ curl -L https://raw.github.com/git/git/master/contrib/compl etion/git-prompt.sh \ > ~/.config/git-prompt.sh source ~/.config/git-prompt.sh Color_Off="\[\033[0m\]"; IBlack="\[\033[0;90m\]"; BWhite="\[\03 3[1;37m\]"; BGreen="\[\033[1;32m\]"; BIRed="\[\033[1;91m\]"; BIWhite="\[\033[1;97m\]"; BIPurple="\[\ 033[1;95m\]"; BIBlue="\[\033[1;94m\]"; GIT_PS1='$(git branch &>/dev/null;\ if [ $? -eq 0 ]; then \ echo "$(echo `git status` | \grep "nothing to commit" > /dev/null 2>&1; \ DIRTY="$?"; \ HEADREV=`git log --pretty=%h -n 1`; \ echo -n "|G:'${BWhite}'$HEADREV"; \ if [ "$DIRTY" -eq "0" ]; then \ # @4 - Clean repository - nothing to commit echo "@'${BGreen}'"$(__git_ps1 "(%s)"); \ else \ # @5 - Changes to working tree echo "'${BIBlue}'@'${BIRed}'"$(__git_ps1 "{%s}"); \ fi)'${Color_Off}'"; \ else \ # @2 - Prompt when not in GIT repo echo ""; \ fi)' if docker context inspect >/dev/null 2>&1; then DOCKER_PS1='|D:'${BIBlue}'$(docker context inspect --format "{{ .Name }}")'${Color_Off} fi USER_PS1=${BIPurple}${Username}'@'${ShortHost}${Color_Off} PATH_PS1='|'${BWhite}${PathShort}${Color_Off} export PS1='['${USER_PS1}${GIT_PS1}${DOCKER_PS1}${PATH_PS1}'] $ ' } ps1_generator && unset -f ps1_generator
Mike Wooskey@lemmy.thewooskeys.comto Privacy@lemmy.ml•Why is there only one invidious instance left?English4·3 months agoThat works for me, for a while. I also auto-restart the invidious container stack hourly, per their recommendation. But sooner or later it fails, and usually the fix is to recreate a token. It only takes a minute, but it’s a hassle to do often.
Mike Wooskey@lemmy.thewooskeys.comto Linux@lemmy.ml•What has been your experience with Atuin? Is it something worth using?English2·3 months agoI don’t have any experience with Atuin, but I use and love hstr for similar features.
Mike Wooskey@lemmy.thewooskeys.comOPto Self Hosted - Self-hosting your services.@lemmy.ml•Searching for travel-planning appEnglish1·3 months agoThanks for the suggestion. It was already suggested. It looks pretty good, though it wasn’t the one I had originally seen.
Mike Wooskey@lemmy.thewooskeys.comto Linux@lemmy.ml•Happy with my bash progress!English12·3 months agoCongrats! It’s fun and empowering to make your own tools, isn’t it?
Mike Wooskey@lemmy.thewooskeys.comOPto Self Hosted - Self-hosting your services.@lemmy.ml•Searching for travel-planning appEnglish2·3 months agoThis wasn’t what I had found, but it’s the closest I’ve seen so far.
It’s got way more features than I’m looking for, and the UI is a bit clumsy to navigate (or maybe it’s just complex due to all the features).
Thanks for the suggestion! I may use this, but I’ll keep looking for a bit.
Mike Wooskey@lemmy.thewooskeys.comOPto Self Hosted - Self-hosting your services.@lemmy.ml•Searching for travel-planning appEnglish1·3 months agoThanks for the suggestions - I’ll check them out.
Mike Wooskey@lemmy.thewooskeys.comOPto Self Hosted - Self-hosting your services.@lemmy.ml•Searching for travel-planning appEnglish2·3 months agoThanks for the suggestion. I’ll check it out.
Mike Wooskey@lemmy.thewooskeys.comto Fediverse@lemmy.ml•Question/Suggestion: A Fediverse Equivalent to the Internet Archive?English2·3 months agoThis is well beyond my skillset (or knowledge level), but something like ArchiveBox combined with ActivityPub might be able to distribute internet archiving, each instance sharing with the fediverse what it has archived.
Mike Wooskey@lemmy.thewooskeys.comto Privacy@lemmy.ml•Words of encouragement to those facing privacy burnoutEnglish22·4 months agoThanks for this very rational pep talk!
Mike Wooskey@lemmy.thewooskeys.comto Linux@lemmy.ml•Introducing SystemD Pilot, GUI app for managing systemd servicesEnglish151·5 months agoWhat license are you offering it under?
Mike Wooskey@lemmy.thewooskeys.comto Fediverse@lemmy.ml•PeerTube mobile app: discover videos while caring for your attention | JoinPeerTubeEnglish4·5 months agoIf I give Obtainium this URL: https://builds.joinpeertube.org/mobile/peertube_mobile_v0.5.1.apk
…it recognizes that it’s an apk and shares with AppVerifier as I’ve configured obtainium to do. But I didn’t proceed further because I don’t want to install it if it’s not authenticl. I need a hash to compare with appveifier.
Mike Wooskey@lemmy.thewooskeys.comto Fediverse@lemmy.ml•PeerTube mobile app: discover videos while caring for your attention | JoinPeerTubeEnglish4·5 months agoI want to install it via Obtainium (in GrapheneOS), but I also want to verify the apk first (w/AppVerifier). I don’t see a SHA-256 hash on framagit’s repo. Is there a way to verify we’re getting the correct apk?
Mike Wooskey@lemmy.thewooskeys.comto Linux@lemmy.ml•Backup solution for docker volumesEnglish10·6 months ago[Docker Volume Backup]((https://github.com/offen/docker-volume-backup )?
Mike Wooskey@lemmy.thewooskeys.comto Linux@lemmy.ml•What do you use to analyze journalctl?English3·6 months agoThat’s great to know!
Mike Wooskey@lemmy.thewooskeys.comto Linux@lemmy.ml•Where Do You Guys Throw Your Local Git Repos?English9·7 months ago~/git/vendor/<gitUser>/<repo>
and
~/git/<myName>/<forge>/<user>/<repo>
Examples:
~/git/vendor/EnigmaCurry/d.rymcg.tech ~/git/mike/forgejo/mikew/myproject ~/git/mike/github/johndoe/otherProject
I don’t code so I can’t possibly audit FOSS software. However, I also can’t audit proprietary software. Lots of people can and do audit FOSS software, though, and can and do share their findings. But no matter how many people “audit” propietary software, it remains propietary - a black box. Untrustable, especially considering corporations’ incentives and historical actions.