Compare commits

..

3 Commits

Author SHA1 Message Date
nemo 5eb57989af fix nocoment comment 2024-10-10 15:42:33 +02:00
nemo 60040a8912 add journal 2024-09-18 16:05:25 +02:00
nemo 6630de6553 cheat-sheet rename git serveur 2024-09-09 21:10:54 +02:00
4 changed files with 30 additions and 3 deletions

1
bashrc
View File

@ -150,6 +150,7 @@ alias shrek="firefox https://www.youtube.com/watch?v=_S7WEVLbQ-Y"
alias ssh-save='eval $(ssh-agent) && ssh-add'
alias raylib="cd /usr/local/include && v raylib.h"
alias d="dev"
alias packtoday="grep ' install ' /var/log/dpkg.log"
# alias avec parametre
emoji(){ grep -i $1 $OPT_PATH/emoji; }

2
cs
View File

@ -20,7 +20,7 @@ case $1 in
git plog
exit;;
"-ps") cd $cs_folder
git push bbsrv
git push
exit;;
"-h") echo "cs -h : affiche aide commande"
echo "cs <cheat-sheet> : ouvre le cheat-sheet ou le crée s'il n'exite pas"

26
journal Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
pat="/home/$USER/opt/journal"
ane=$(date +%Y)
auj=$(date +%d-%b | tr '[:upper:]' '[:lower:]')
if [[ $2 != "" ]]; then
nvim $pat/$2/$1
exit
fi;
if [[ $1 == "save" ]]; then
cd $pat
git add .
git commit -am "$auj"
git push
exit
fi;
if [[ $1 != "" ]]; then
nvim $pat/$ane/$1
exit
fi;
mkdir -p $pat/$ane
nvim $pat/$ane/$auj

View File

@ -1,4 +1,4 @@
#!/bin/bash
sed "/^\/\//d" $1 |\
sed "/^\/\*/,/\*\/$/d"
sed "/\/\//d" $1 |\
sed "/\/\*/,/\*\/$/d"