Fix config for frXXX deployment

master
Julien Rosset 7 years ago
parent 609e6a493f
commit 0a1cd19be9

@ -28,7 +28,7 @@
editor = vim
autocrlf = false
[push]
default = simple
default = current
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f

@ -1,37 +0,0 @@
[submodule "zsh/zsh-syntax-highlighting"]
path = zsh/zsh-syntax-highlighting
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
[submodule "vim/bundle/html5.vim"]
path = vim/bundle/html5.vim
url = https://github.com/othree/html5.vim
[submodule "vim/bundle/syntastic"]
path = vim/bundle/syntastic
url = https://github.com/scrooloose/syntastic.git
[submodule "vim/bundle/vim-jquery"]
path = vim/bundle/vim-jquery
url = https://github.com/itspriddle/vim-jquery.git
[submodule "vim/bundle/nerdcommenter"]
path = vim/bundle/nerdcommenter
url = https://github.com/scrooloose/nerdcommenter.git
[submodule "vim/bundle/vim-pathogen"]
path = vim/bundle/vim-pathogen
url = https://github.com/tpope/vim-pathogen.git
[submodule "vim/bundle/vim-airline"]
path = vim/bundle/vim-airline
url = https://github.com/bling/vim-airline
[submodule "vim/bundle/tagbar"]
path = vim/bundle/tagbar
url = https://github.com/majutsushi/tagbar
[submodule "vim/bundle/htmljinja"]
path = vim/bundle/htmljinja
url = https://github.com/estin/htmljinja
[submodule "vim/bundle/Better-CSS-Syntax-for-Vim"]
path = vim/bundle/Better-CSS-Syntax-for-Vim
url = https://github.com/ChrisYip/Better-CSS-Syntax-for-Vim
[submodule "vim/bundle/nerdtree"]
path = vim/bundle/nerdtree
url = https://github.com/scrooloose/nerdtree
[submodule "vim/bundle/vim-yardoc"]
path = vim/bundle/vim-yardoc
url = https://github.com/noprompt/vim-yardoc.git

@ -22,7 +22,7 @@ Plugin 'ChrisYip/Better-CSS-Syntax-for-Vim'
Plugin 'noprompt/vim-yardoc'
Plugin 'php.vim--Hodge'
Plugin 'https://bitbucket.org/teramako/jscomplete-vim.git'
Plugin 'mattn/jscomplete-vim.git'
Plugin 'jelera/vim-javascript-syntax'
Plugin 'othree/javascript-libraries-syntax.vim'

@ -1,3 +1,5 @@
"runtime config/keyboard-remap.vim
"Couper, copier et coller avec le presse-papier du système
if has('x11') && has('clipboard')
:nmap <C-F10> "+dd
@ -41,7 +43,7 @@ endif
" (dé)Pliage de code
:nmap <silent> <C-Left> zc
:nmap <silent> <C-Right> zo
:nmap <silent> <C-S-Left> :%foldc!<CR>
:nmap <silent> <C-S-Left> :%foldc!<CR>i
:imap <silent> <C-Left> <Esc>zcki
:imap <silent> <C-Right> <Esc>zoi
@ -65,11 +67,11 @@ endif
:nmap <silent> <M-Right> gt
:nmap <silent>  :call A_askFile("File to open : ")<CR>:exec ":tabnew ". Filename<CR>
:imap <silent> <M-Left> <Esc>gTi
:imap <silent> <M-Right> <Esc>gti
:imap <silent> <A-Left> <Esc>gTi
:imap <silent> <A-Right> <Esc>gti
:vmap <silent> <M-Left> gT
:vmap <silent> <M-Right> gt
:vmap <silent> <A-Left> gT
:vmap <silent> <A-Right> gt
" (dé)Indentation
:nmap <silent> <Tab> >>
@ -103,3 +105,5 @@ endif
" Autres
:nmap <silent> <F5> :e<CR>
:nmap <silent> <C-F5> :w<CR>:e<CR>
:imap <silent> <C-u> <Esc><Right>v<S-Right><Left>Ui

@ -0,0 +1,19 @@
env=~/.ssh/agent.env
agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; }
agent_start () {
(umask 077; ssh-agent >| "$env")
. "$env" >| /dev/null
}
agent_load_env
# agent_run_state: 0=agent running w/ key; 1=agent w/o key; 2= agent not running
agent_run_state=$(ssh-add -l >| /dev/null 2>&1; echo $?)
if [ ! "$SSH_AUTH_SOCK" ] || [ $agent_run_state = 2 ]; then
agent_start
fi
unset env

@ -10,12 +10,12 @@ setopt histignorealldups sharehistory
# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e
bindkey '^[[H' beginning-of-line # [Origin]
bindkey '^[[F' end-of-line # [Fin]
bindkey '[1~' beginning-of-line # [Origin]
bindkey '[4~' end-of-line # [Fin]
bindkey '^[[2~' overwrite-mode # [Insert]
bindkey '^[[3~' delete-char # [Suppr]
bindkey '^[[5~' history-search-backward # [Page-Up]
bindkey '^[[6~' history-search-forward # [Page-Down]
bindkey '[5~' history-search-backward # [Page-Up]
bindkey '[6~' history-search-forward # [Page-Down]
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=1000
@ -69,8 +69,26 @@ maj_calibre() {
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | sudo python -c "import sys; main=lambda x:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main('/opt')"
}
find_php() {
# $1 : expression recherchée
# $2 : chemin
# $3 : option supplémentaires
arg_path=$2
if [ -z $arg_path ]; then
arg_path="."
fi
arg_options=$3
if [ -z $arg_options ]; then
arg_options="-n"
fi
find $arg_path -type f -iname "*.php" | xargs grep $arg_options $1
}
#alias cclive='cclive -c' # Continue automatiquement les DL
#alias cclive-best='cclive --stream best' # DL avec la qualité max
alias 7z_max="7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on"
alias maj="apti update && apti full-upgrade"
# Include other files
source "$HOME/consoleConfig/zsh/ssh_agent"

Loading…
Cancel
Save