multi modifs

This commit is contained in:
hugogogo
2021-12-16 09:09:32 +01:00
parent ae4a700007
commit 308b4c4fdc
4 changed files with 37 additions and 1 deletions

View File

@@ -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

19
.vimrc
View File

@@ -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 <C-Down> :m+<CR>==
nnoremap <C-Up> :m-2<CR>==
inoremap <C-Down> <Esc>:m+<CR>==gi
inoremap <C-Up> <Esc>:m-2<CR>==gi
vnoremap <C-Down> :m'>+<CR>gv=gv
vnoremap <C-Up> :m-2<CR>gv=gv
"---------------------------------------------------------------
" pour gerer les swap files
"---------------------------------------------------------------

13
git.txt
View File

@@ -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

View File

@@ -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