diff --git a/profile/airootfs/root/content/home/.config/tealdeer/config.toml b/profile/airootfs/root/content/home/.config/tealdeer/config.toml new file mode 100644 index 0000000..fa484b1 --- /dev/null +++ b/profile/airootfs/root/content/home/.config/tealdeer/config.toml @@ -0,0 +1,38 @@ +[style.description] +underline = false +bold = false +italic = false + +[style.command_name] +foreground = "cyan" +underline = false +bold = false +italic = false + +[style.example_text] +foreground = "green" +underline = false +bold = false +italic = false + +[style.example_code] +foreground = "cyan" +underline = false +bold = false +italic = false + +[style.example_variable] +foreground = "cyan" +underline = true +bold = false +italic = false + +[display] +compact = false +use_pager = false + +[updates] +auto_update = true +auto_update_interval_hours = 720 + +[directories] diff --git a/profile/airootfs/root/content/home/.local/bin/tag b/profile/airootfs/root/content/home/.local/bin/tag new file mode 100755 index 0000000..759daf2 --- /dev/null +++ b/profile/airootfs/root/content/home/.local/bin/tag @@ -0,0 +1,66 @@ +#!/bin/sh +set -e +BLUE="\033[0;34m" +WHITE="\033[1;37m" +RESET="\033[0m" +log() { echo -e "$BLUE [tag]" $@ "$RESET" ; } + + +if [ $# -lt 1 ] || [ $1 = "-h" ] || [ $1 = "--help" ] +then + echo "tag - Crée ou tag un commit et le push. +Usage: + tag + +Arguments: + suffix Suffix du 'tag' appliqué. + +Exemple: + git add -A + tag exercise-epiTinderDB- + # Crée un commit avec le tag 'exercise-epiTinderDB-1709847215' + # et le push. + +Crée un commit contenant tout les changements ajoutés 'git add'. +Et 'tag' ce commit avec un certain suffix et un id généré. + + Le message de commit est 'tag - $(date +"%d/%m/%Y %H:%M")'. + Le tag sur le commit est ''. + +Auteur: + Matthieu JOLIMAITRE +" + exit 1 +fi + + +suffix="$1" +message="tag - $(date +"%d/%m/%Y %H:%M")" +tag_name="$suffix$(date +"%s")" + +alias is_git_repo="git rev-parse 2> /dev/null" +if ! is_git_repo +then + log "Not a git repository." + exit 1 +fi + + +log "Checking for staged changes ..." + alias is_content_staged="! git diff --cached --quiet" + if is_content_staged + then + log "Committing staged changes." + git commit --message "$message" + fi + + +log "Tagging commit with tag $WHITE$tag_name$BLUE ..." + git tag --annotate "$tag_name" --message "$message" + + +log "Pushing commits ..." + git push --follow-tags + + +log "Done." diff --git a/profile/airootfs/root/content/home/.nanorc b/profile/airootfs/root/content/home/.nanorc new file mode 100644 index 0000000..92042f1 --- /dev/null +++ b/profile/airootfs/root/content/home/.nanorc @@ -0,0 +1,321 @@ +## Sample initialization file for GNU nano. +## +## For the options that take parameters, the default value is shown. +## Other options are unset by default. To make sure that an option +## is disabled, you can use "unset