This commit is contained in:
Tykayn 2024-02-14 16:41:33 +01:00 committed by tykayn
parent cdaf5a2f37
commit 67d5953c38
7 changed files with 38 additions and 9 deletions

View File

@ -4,5 +4,6 @@
# done for my blog http://www.cipherbliss.com
#
# load variables
echo " chargement de bash aliases"
source ~/Nextcloud/ressources/workflow_nextcloud/public_workflow/workflow_variables.sh
source $WORKFLOW_PATH_PUBLIC/install/.bash_custom_aliases

View File

@ -1,10 +1,10 @@
#!/bin/bash
# these bash aliases are meant to be added in your user folder,
# in a file named: .bash_aliases (with the dot at the beginning)
# these bash aliases are meant to be added in your user folder,
# in a file named: .bash_aliases (with the dot at the beginning)
# done for my blog http://www.cipherbliss.com
#
# load variables
#echo "load functions to sync files"
# load variables
echo "bash custom aliases: load functions to sync files"
source ~/Nextcloud/ressources/workflow_nextcloud/public_workflow/workflow_variables.sh

View File

@ -75,6 +75,12 @@ plugins=(git cp colored-man-pages colorize command-not-found composer symfony2 p
source $ZSH/oh-my-zsh.sh
# User configuration
if [ -f ~/Nextcloud/ressources/workflow_nextcloud/workflow_variables.sh ]; then
. ~/Nextcloud/ressources/workflow_nextcloud/workflow_variables.sh
else
echo "/!\\ bashrc: fichier de variables workflow_nextcloud non trouvé:"
echo "~/Nextcloud/ressources/workflow_nextcloud/workflow_variables.sh"
fi
# export MANPATH="/usr/local/man:$MANPATH"
@ -100,4 +106,9 @@ if [[ -n $SSH_CONNECTION ]]; then
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
if [ "$debug" = true ]; then
echo "chargement des aliases ~/.bash_aliases"
fi
source ~/.bash_aliases

View File

@ -1,7 +1,7 @@
#!/bin/bash
#
# mise en place du workflow
#
# mise en place du workflow
echo "========== init de workflow par Tykayn ======="
source ~/Nextcloud/ressources/workflow_nextcloud/public_workflow/workflow_variables.sh
@ -12,8 +12,8 @@ bash "$WORKFLOW_PATH_PUBLIC/initialization/partials/dev_tools.sh"
bash "$WORKFLOW_PATH_PUBLIC/initialization/partials/java-josm.sh"
# bash $WORKFLOW_PATH_PUBLIC/update_git_projects.sh
# copier quelques fichiers de config dans la home
echo "copier quelques fichiers de config dans la home"
cp "$WORKFLOW_PATH_PUBLIC/assets/.*" "~/"
cp "$WORKFLOW_PATH_PUBLIC/assets/konsole.profile" "~/"
cp "$WORKFLOW_PATH_PUBLIC/assets/guessfilenameconfig.py" "~/"

View File

@ -4,6 +4,9 @@
# les créer au besoin,
# alerter sur l'impossibilité de créer en ajoutant une tâche orgmode au dossier de textes
#
if [ "$debug" = true ]; then
echo "# ========== vérifier l'intégrité des dossiers ==========#"
fi
if [ ! -d $WORKFLOW_PATH ]; then
echo "création du dossier nextcloud workflow_nextcloud"
mkdir -p $WORKFLOW_PATH

View File

@ -1,7 +1,13 @@
#!/bin/bash
# variables globales qui seront importées dans chaque terminal ouvert par l'utilisateur
if [ "$debug" = true ]; then
echo "# chargement des variables de public workflow ..."
fi
source "$WORKFLOW_PATH/secrets.sh"
#echo " exemple de secret importé dans le workflow: $secret_key "
if [ "$debug" = true ]; then
echo "# chargement des variables de public workflow OK --------"
fi

View File

@ -4,6 +4,10 @@
# source ~/Nextcloud/ressources/workflow_nextcloud/public_workflow/workflow_variables.sh
#
#
export debug=true
if [ "$debug" = true ]; then
echo "# chargement des variables de workflow"
fi
export main_user="tykayn"
@ -83,4 +87,8 @@ exclude_opts=()
export exclude_opts
bash $WORKFLOW_PATH_PUBLIC/variables.sh
if [ "$debug" = true ]; then
echo "# chargement des variables de workflow OK --------"
fi
source $WORKFLOW_PATH_PUBLIC/variables.sh