Skip to content

Instantly share code, notes, and snippets.

View maximillianus's full-sized avatar
🧑‍💻
Discovering

maximillianus

🧑‍💻
Discovering
View GitHub Profile
@maximillianus
maximillianus / install-starship.sh
Created February 2, 2025 20:19
Configure starship prompt
#!/bin/bash
# Check if curl is installed
echo "Check if curl is installed..."
if ! command -v curl &> /dev/null; then
echo "curl is not installed. Installing curl..."
if command -v apt &> /dev/null; then
sudo apt update && sudo apt install -y curl
elif command -v dnf &> /dev/null; then
sudo dnf install -y curl
@maximillianus
maximillianus / starship.toml
Last active February 2, 2025 18:06
My starship prompt configuration
# Warning: This config does not include keys that have an unset value
# $all is shorthand for $username$hostname$localip$shlvl$singularity$kubernetes$nats$directory$vcsh$fossil_branch$fossil_metrics$git_branch$git_commit$git_state$git_metrics$git_status$hg_branch$pijul_channel$docker_context$package$bun$c$cmake$cobol$daml$dart$deno$dotnet$elixir$elm$erlang$fennel$gleam$golang$gradle$haskell$haxe$helm$java$julia$kotlin$lua$mojo$nim$nodejs$ocaml$odin$opa$perl$php$pulumi$purescript$python$quarto$raku$rlang$red$ruby$rust$scala$solidity$swift$terraform$typst$vlang$vagrant$zig$buf$guix_shell$nix_shell$conda$meson$spack$memory_usage$aws$gcloud$openstack$azure$direnv$env_var$crystal$custom$sudo$cmd_duration$line_break$jobs$battery$time$status$container$os$shell$character
"$schema" = "https://starship.rs/config-schema.json"
# format = "$all"
# this is formatted by my need but need further cleanup
format = """
$username$hostname$localip$shlvl$singularity$kubernetes$nats$directory\
$vcsh$fossil_branch$fossil_metrics$gi
@maximillianus
maximillianus / test.py
Last active November 9, 2021 20:01
Python test gist
import json
print("something")