summaryrefslogtreecommitdiff
path: root/opentech
diff options
context:
space:
mode:
Diffstat (limited to 'opentech')
-rwxr-xr-xopentech24
1 files changed, 24 insertions, 0 deletions
diff --git a/opentech b/opentech
new file mode 100755
index 0000000..4c868ba
--- /dev/null
+++ b/opentech
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+if [ $1 == cstyle ];
+then
+ firefox https://intra.epitech.eu/file/public/technical-documentations/C/epitech_c_coding_style.pdf
+ clear
+elif [ $1 == intra ];
+then
+ firefox https://intra.epitech.eu/
+ clear
+elif [ $1 == mouli ];
+then
+ firefox my.epitech.eu
+else
+ # Récupérer le nom du répertoire courant
+ DIR_NAME=$(basename "$PWD")
+
+ # Construire l'URL
+ URL="https://github.com/EpitechPGEPromo2029/${DIR_NAME}/tree/main"
+
+ # Ouvrir l'URL dans Firefox
+ firefox "$URL"
+ clear
+fi