diff --git a/.screenrc b/.screenrc index fdb2f6b..7591a56 100644 --- a/.screenrc +++ b/.screenrc @@ -13,6 +13,8 @@ startup_message off chdir $HOME/ +#pour augmenter le scrollback de l'ecran +defscrollback 10000 #pour afficher une ligne avec des infos hardstatus on #pour qu'elle s'affiche en bas diff --git a/.vimrc b/.vimrc index e6a963f..91bb20f 100644 --- a/.vimrc +++ b/.vimrc @@ -61,6 +61,25 @@ set number set nowrap + +"--------------------------------------------------------------- +" pour pouvoir utiliser la norminette partout +"--------------------------------------------------------------- +let g:norminette_exec = '~/.local/bin/norminette' + + + +"--------------------------------------------------------------- +" pour deplacer des lignes avec Ctrl + fleches Up et Down +"--------------------------------------------------------------- +nnoremap :m+== +nnoremap :m-2== +inoremap :m+==gi +inoremap :m-2==gi +vnoremap :m'>+gv=gv +vnoremap :m-2gv=gv + + "--------------------------------------------------------------- " pour gerer les swap files "--------------------------------------------------------------- diff --git a/git.txt b/git.txt index bdb29ba..5ff2708 100644 --- a/git.txt +++ b/git.txt @@ -33,3 +33,16 @@ **git stash pop** reapply the stashed changes and removes them from the stash area **git stash apply** reaply the stashed changes and keep them in the stash area **git config --global credential.helper store** store the passwords in .git-credentials in the HOME directory (thanks to global, as opposed to the project directory) so you don't have tot type it each time +**git cherry-pick NAME_OF_BRANCH** ti merge a branch into the actual one, but only with the last commit +**relier dossier sur serveur en local avec git** + **acceder au serveur via ssh :** + `ssh hugugtzx@world-370.fr.planethoster.net -p 5022` + **initier git dans le repo remote :** + `git init` in the repo + **dans le dossier local, cloner le repo :** + git clone ssh://hugugtzx@world-370.fr.planethoster.net:5022/home/hugugtzx/wordpress.hugulumu.fr + **avec :** + git clone ssh://username@hostname/path/to/project + avec `unsername@hostname` == la commande ssh + et `/path/to/project` == la sortie de `pwd` dans le dossier remote + diff --git a/shell.txt b/shell.txt index 8fcebb9..92ace49 100644 --- a/shell.txt +++ b/shell.txt @@ -8,6 +8,8 @@ **pwd** print working directory **xdg-open .** open working directory +**ssh username@ssh.server.com -p 0000** se connecter a un serveur via ssh en precisant un port + **pdftotext** transforme un pdf en un fichier texte **^** designe le debut d'une ligne * n'importe quel caractere autant de fois que possible @@ -24,6 +26,7 @@ **sass name.scss name.css** create a css file from a scss file **sass --watch name.scss:name.css** make the transformations of scss in css file + **'tree' like :** find | sort | grep -ve "node_modules/" -e ".git/" | sed 's#[^/]*/#|__ #g;s#__ |# |#g;s#| # #g;s#\(node_modules\|.git[ignore]*\)#\1 ...#;$a\ ' @@ -41,4 +44,3 @@ find | sort | grep -ve "node_modules/" -e ".git/" | sed 's#[^/]*/#|__ #g;s#__ |# **n** again if you want more partitions **w** write and quit -