Compare commits
3 Commits
781caee29f
...
5eb57989af
Author | SHA1 | Date |
---|---|---|
|
5eb57989af | |
|
60040a8912 | |
|
6630de6553 |
1
bashrc
1
bashrc
|
@ -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
2
cs
|
@ -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"
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue