multi modifs
This commit is contained in:
@@ -13,6 +13,8 @@ startup_message off
|
|||||||
|
|
||||||
chdir $HOME/
|
chdir $HOME/
|
||||||
|
|
||||||
|
#pour augmenter le scrollback de l'ecran
|
||||||
|
defscrollback 10000
|
||||||
#pour afficher une ligne avec des infos
|
#pour afficher une ligne avec des infos
|
||||||
hardstatus on
|
hardstatus on
|
||||||
#pour qu'elle s'affiche en bas
|
#pour qu'elle s'affiche en bas
|
||||||
|
|||||||
19
.vimrc
19
.vimrc
@@ -61,6 +61,25 @@ set number
|
|||||||
set nowrap
|
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
|
" pour gerer les swap files
|
||||||
"---------------------------------------------------------------
|
"---------------------------------------------------------------
|
||||||
|
|||||||
13
git.txt
13
git.txt
@@ -33,3 +33,16 @@
|
|||||||
**git stash pop** reapply the stashed changes and removes them from the stash area
|
**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 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 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
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
**pwd** print working directory
|
**pwd** print working directory
|
||||||
**xdg-open .** open 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
|
**pdftotext** transforme un pdf en un fichier texte
|
||||||
**^** designe le debut d'une ligne
|
**^** designe le debut d'une ligne
|
||||||
* n'importe quel caractere autant de fois que possible
|
* 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 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
|
**sass --watch name.scss:name.css** make the transformations of scss in css file
|
||||||
|
|
||||||
**'tree' like :**
|
**'tree' like :**
|
||||||
find | sort | grep -ve "node_modules/" -e ".git/" | sed 's#[^/]*/#|__ #g;s#__ |# |#g;s#| # #g;s#\(node_modules\|.git[ignore]*\)#\1 ...#;$a\ '
|
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
|
**n** again if you want more partitions
|
||||||
**w** write and quit
|
**w** write and quit
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user