inital commit
This commit is contained in:
parent
356fd76671
commit
21a3f05d47
21 changed files with 366 additions and 1100 deletions
22
.bashrc
22
.bashrc
|
@ -1,22 +0,0 @@
|
|||
[ -z "$PS1" ] && return
|
||||
|
||||
export PATH=$PATH:~/bin
|
||||
export VISUAL=/bin/nano
|
||||
export EDITOR=/bin/nano
|
||||
export CLASSPATH=$CLASSPATH:/opt
|
||||
export VDPAU_TRACE=1
|
||||
|
||||
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
|
||||
for _FILE in $(ls ~/dotfiles/bash/); do
|
||||
source ~/dotfiles/bash/$_FILE
|
||||
done
|
||||
|
||||
#source ~/ovhrc
|
||||
PATH="/home/qgodefro/perl5/bin${PATH:+:${PATH}}"; export PATH;
|
||||
PERL5LIB="/home/qgodefro/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
|
||||
PERL_LOCAL_LIB_ROOT="/home/qgodefro/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
|
||||
PERL_MB_OPT="--install_base \"/home/qgodefro/perl5\""; export PERL_MB_OPT;
|
||||
PERL_MM_OPT="INSTALL_BASE=/home/qgodefro/perl5"; export PERL_MM_OPT;
|
|
@ -1 +0,0 @@
|
|||
Subproject commit ad59bf2e80752f86158da3d1fac50f8d6fd13b2a
|
279
.nanorc
279
.nanorc
|
@ -1,279 +0,0 @@
|
|||
## Sample initialization file for GNU nano.
|
||||
##
|
||||
## Please note that you must have configured nano with --enable-nanorc
|
||||
## for this file to be read! Also note that this file should not be in
|
||||
## DOS or Mac format, and that characters specially interpreted by the
|
||||
## shell should not be escaped here.
|
||||
##
|
||||
## To make sure an option is disabled, use "unset <option>".
|
||||
##
|
||||
## For the options that take parameters, the default value is given.
|
||||
## Other options are unset by default.
|
||||
##
|
||||
## Quotes inside string parameters don't have to be escaped with
|
||||
## backslashes. The last double quote in the string will be treated as
|
||||
## its end. For example, for the "brackets" option, ""')>]}" will match
|
||||
## ", ', ), >, ], and }.
|
||||
|
||||
## Silently ignore problems with unknown directives in the nanorc file.
|
||||
## Useful when your nanorc file might be read on systems with multiple
|
||||
## versions of nano installed (e.g. your home directory is on NFS).
|
||||
# set quiet
|
||||
|
||||
## When soft line wrapping is enabled, make it wrap lines at blanks
|
||||
## (tabs and spaces) instead of always at the edge of the screen.
|
||||
# set atblanks
|
||||
|
||||
## Use auto-indentation.
|
||||
# set autoindent
|
||||
|
||||
## Back up files to the current filename plus a tilde.
|
||||
# set backup
|
||||
|
||||
## The directory to put unique backup files in.
|
||||
set backupdir "~/.cache/nano/"
|
||||
|
||||
## Do backwards searches by default.
|
||||
# set backwards
|
||||
|
||||
## Use bold text instead of reverse video text.
|
||||
# set boldtext
|
||||
|
||||
## The characters treated as closing brackets when justifying
|
||||
## paragraphs. They cannot contain blank characters. Only closing
|
||||
## punctuation, optionally followed by closing brackets, can end
|
||||
## sentences.
|
||||
set brackets ""')>]}"
|
||||
|
||||
## Do case-sensitive searches by default.
|
||||
# set casesensitive
|
||||
|
||||
## Constantly display the cursor position in the status bar. Note that
|
||||
## this overrides "quickblank".
|
||||
set constantshow
|
||||
## (The old form, 'const', is deprecated.)
|
||||
|
||||
## Use cut-from-cursor-to-end-of-line by default.
|
||||
# set cutfromcursor
|
||||
## (The old form, 'cut', is deprecated.)
|
||||
|
||||
## Set the line length for wrapping text and justifying paragraphs.
|
||||
## If the value is 0 or less, the wrapping point will be the screen
|
||||
## width less this number.
|
||||
# set fill -4
|
||||
|
||||
## Remember the used search/replace strings for the next session.
|
||||
# set historylog
|
||||
|
||||
## Make the justify command kill whitespace at the end of lines.
|
||||
# set justifytrim
|
||||
|
||||
## Display line numbers to the left of the text.
|
||||
# set linenumbers
|
||||
|
||||
## Enable vim-style lock-files. This is just to let a vim user know you
|
||||
## are editing a file [s]he is trying to edit and vice versa. There are
|
||||
## no plans to implement vim-style undo state in these files.
|
||||
# set locking
|
||||
|
||||
## The opening and closing brackets that can be found by bracket
|
||||
## searches. They cannot contain blank characters. The former set must
|
||||
## come before the latter set, and both must be in the same order.
|
||||
set matchbrackets "(<[{)>]}"
|
||||
|
||||
## Use the blank line below the title bar as extra editing space.
|
||||
# set morespace
|
||||
|
||||
## Enable mouse support, if available for your system. When enabled,
|
||||
## mouse clicks can be used to place the cursor, set the mark (with a
|
||||
## double click), and execute shortcuts. The mouse will work in the X
|
||||
## Window System, and on the console when gpm is running.
|
||||
# set mouse
|
||||
|
||||
## Switch on multiple file buffers (inserting a file will put it into
|
||||
## a separate buffer).
|
||||
# set multibuffer
|
||||
|
||||
## Don't convert files from DOS/Mac format.
|
||||
# set noconvert
|
||||
|
||||
## Don't display the helpful shortcut lists at the bottom of the screen.
|
||||
# set nohelp
|
||||
|
||||
## Don't pause between warnings at startup. Which means that only the
|
||||
## last one will be readable (when there are multiple ones).
|
||||
# set nopauses
|
||||
|
||||
## Don't add newlines to the ends of files.
|
||||
set nonewlines
|
||||
|
||||
## Don't wrap text at all.
|
||||
# set nowrap
|
||||
|
||||
## Set operating directory. nano will not read or write files outside
|
||||
## this directory and its subdirectories. Also, the current directory
|
||||
## is changed to here, so any files are inserted from this dir. A blank
|
||||
## string means the operating-directory feature is turned off.
|
||||
# set operatingdir ""
|
||||
|
||||
## Remember the cursor position in each file for the next editing session.
|
||||
# set positionlog
|
||||
## (The old form, 'poslog', is deprecated.)
|
||||
|
||||
## Preserve the XON and XOFF keys (^Q and ^S).
|
||||
# set preserve
|
||||
|
||||
## The characters treated as closing punctuation when justifying
|
||||
## paragraphs. They cannot contain blank characters. Only closing
|
||||
## punctuation, optionally followed by closing brackets, can end
|
||||
## sentences.
|
||||
set punct "!.?"
|
||||
|
||||
## Do quick status-bar blanking. Status-bar messages will disappear after
|
||||
## 1 keystroke instead of 26. Note that "constantshow" overrides this.
|
||||
# set quickblank
|
||||
|
||||
## The email-quote string, used to justify email-quoted paragraphs.
|
||||
## This is an extended regular expression if your system supports them,
|
||||
## otherwise a literal string.
|
||||
## If you have extended regular expression support, the default is:
|
||||
# set quotestr "^([ ]*[#:>\|}])+"
|
||||
## Otherwise:
|
||||
# set quotestr "> "
|
||||
|
||||
## Fix Backspace/Delete confusion problem.
|
||||
# set rebinddelete
|
||||
|
||||
## Fix numeric keypad key confusion problem.
|
||||
# set rebindkeypad
|
||||
|
||||
## Do extended regular expression searches by default.
|
||||
# set regexp
|
||||
|
||||
## Put the cursor on the highlighted item in the file browser;
|
||||
## useful for people who use a braille display.
|
||||
# set showcursor
|
||||
|
||||
## Make the Home key smarter. When Home is pressed anywhere but at the
|
||||
## very beginning of non-whitespace characters on a line, the cursor
|
||||
## will jump to that beginning (either forwards or backwards). If the
|
||||
## cursor is already at that position, it will jump to the true
|
||||
## beginning of the line.
|
||||
# set smarthome
|
||||
|
||||
## Use smooth scrolling as the default.
|
||||
# set smooth
|
||||
|
||||
## Enable soft line wrapping (AKA full-line display).
|
||||
# set softwrap
|
||||
|
||||
## Use this spelling checker instead of the internal one. This option
|
||||
## does not have a default value.
|
||||
# set speller "aspell -x -c"
|
||||
|
||||
## Allow nano to be suspended.
|
||||
# set suspend
|
||||
|
||||
## Use this tab size instead of the default; it must be greater than 0.
|
||||
set tabsize 4
|
||||
|
||||
## Convert typed tabs to spaces.
|
||||
# set tabstospaces
|
||||
|
||||
## Save automatically on exit; don't prompt.
|
||||
# set tempfile
|
||||
|
||||
## Disallow file modification. Why would you want this in an rcfile? ;)
|
||||
# set view
|
||||
|
||||
## The two single-column characters used to display the first characters
|
||||
## of tabs and spaces. 187 in ISO 8859-1 (0000BB in Unicode) and 183 in
|
||||
## ISO-8859-1 (0000B7 in Unicode) seem to be good values for these.
|
||||
## The default when in a UTF-8 locale:
|
||||
# set whitespace "»·"
|
||||
## The default otherwise:
|
||||
# set whitespace ">."
|
||||
|
||||
## Detect word boundaries differently by treating punctuation
|
||||
## characters as parts of words.
|
||||
# set wordbounds
|
||||
|
||||
## The characters (besides alphanumeric ones) that should be considered
|
||||
## as parts of words. This option does not have a default value. When
|
||||
## set, it overrides option 'set wordbounds'.
|
||||
# set wordchars "<_>."
|
||||
|
||||
|
||||
## Paint the interface elements of nano.
|
||||
## These are examples; by default there are no colors.
|
||||
set titlecolor brightwhite,blue
|
||||
set statuscolor brightwhite,green
|
||||
set selectedcolor brightwhite,magenta
|
||||
set numbercolor cyan
|
||||
set keycolor cyan
|
||||
set functioncolor green
|
||||
## In root's .nanorc you might want to use:
|
||||
# set titlecolor brightwhite,red
|
||||
# set statuscolor brightwhite,red
|
||||
# set selectedcolor brightwhite,cyan
|
||||
# set numbercolor magenta
|
||||
# set keycolor brightmagenta
|
||||
# set functioncolor magenta
|
||||
|
||||
|
||||
## Setup of syntax coloring.
|
||||
##
|
||||
## Format:
|
||||
##
|
||||
## syntax "short description" ["filename regex" ...]
|
||||
##
|
||||
## The "none" syntax is reserved; specifying it on the command line is
|
||||
## the same as not having a syntax at all. The "default" syntax is
|
||||
## special: it takes no filename regexes, and applies to files that
|
||||
## don't match any other syntax's filename regexes.
|
||||
##
|
||||
## color foreground,background "regex" ["regex"...]
|
||||
## or
|
||||
## icolor foreground,background "regex" ["regex"...]
|
||||
##
|
||||
## "color" will do case-sensitive matches, while "icolor" will do
|
||||
## case-insensitive matches.
|
||||
##
|
||||
## Valid colors: white, black, red, blue, green, yellow, magenta, cyan.
|
||||
## For foreground colors, you may use the prefix "bright" to get a
|
||||
## stronger highlight.
|
||||
##
|
||||
## To use multi-line regexes, use the start="regex" end="regex"
|
||||
## [start="regex" end="regex"...] format.
|
||||
##
|
||||
## If your system supports transparency, not specifying a background
|
||||
## color will use a transparent color. If you don't want this, be sure
|
||||
## to set the background color to black or white.
|
||||
##
|
||||
## All regexes should be extended regular expressions.
|
||||
##
|
||||
## If you wish, you may put your syntax definitions in separate files.
|
||||
## You can make use of such files as follows:
|
||||
##
|
||||
## include "/path/to/syntax_file.nanorc"
|
||||
##
|
||||
## Unless otherwise noted, the name of the syntax file (without the
|
||||
## ".nanorc" extension) should be the same as the "short description"
|
||||
## name inside that file. These names are kept fairly short to make
|
||||
## them easier to remember and faster to type using nano's -Y option.
|
||||
##
|
||||
## To include all existing syntax definitions, you can do:
|
||||
include "/usr/share/nano/*.nanorc"
|
||||
|
||||
|
||||
## Key bindings.
|
||||
## See nanorc(5) (section REBINDING KEYS) for more details on this.
|
||||
##
|
||||
## The following three functions are not bound to any key by default.
|
||||
## You may wish to choose different keys than the ones suggested here.
|
||||
# bind ^S savefile main
|
||||
# bind M-B cutwordleft main
|
||||
# bind M-N cutwordright main
|
||||
|
||||
## Set this if your Backspace key sends Del most of the time.
|
||||
# bind Del backspace all
|
|
@ -1,220 +0,0 @@
|
|||
" Vim color file
|
||||
"
|
||||
" Author: Tomas Restrepo <tomas@winterdom.com>
|
||||
"
|
||||
" Note: Based on the monokai theme for textmate
|
||||
" by Wimer Hazenberg and its darker variant
|
||||
" by Hamish Stuart Macpherson
|
||||
"
|
||||
" Slightly modified for transparent terminals by Dennis Klein / http://klein2.de
|
||||
|
||||
hi clear
|
||||
|
||||
"set background=dark
|
||||
if version > 580
|
||||
" no guarantees for version 5.8 and below, but this makes it stop
|
||||
" complaining
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
endif
|
||||
let g:colors_name="molokai"
|
||||
|
||||
if exists("g:molokai_original")
|
||||
let s:molokai_original = g:molokai_original
|
||||
else
|
||||
let s:molokai_original = 0
|
||||
endif
|
||||
|
||||
|
||||
hi Boolean guifg=#AE81FF
|
||||
hi Character guifg=#E6DB74
|
||||
hi Number guifg=#AE81FF
|
||||
hi String guifg=#E6DB74
|
||||
hi Conditional guifg=#F92672 gui=bold
|
||||
hi Constant guifg=#AE81FF gui=bold
|
||||
hi Cursor guifg=#000000 guibg=#F8F8F0
|
||||
hi Debug guifg=#BCA3A3 gui=bold
|
||||
hi Define guifg=#66D9EF
|
||||
hi Delimiter guifg=#8F8F8F
|
||||
hi DiffAdd guibg=#13354A
|
||||
hi DiffChange guifg=#89807D guibg=#4C4745
|
||||
hi DiffDelete guifg=#960050 guibg=#1E0010
|
||||
hi DiffText guibg=#4C4745 gui=italic,bold
|
||||
|
||||
hi Directory guifg=#A6E22E gui=bold
|
||||
hi Error guifg=#960050 guibg=#1E0010
|
||||
hi ErrorMsg guifg=#F92672 guibg=#232526 gui=bold
|
||||
hi Exception guifg=#A6E22E gui=bold
|
||||
hi Float guifg=#AE81FF
|
||||
hi FoldColumn guifg=#465457 guibg=#000000
|
||||
hi Folded guifg=#465457 guibg=#000000
|
||||
hi Function guifg=#A6E22E
|
||||
hi Identifier guifg=#FD971F
|
||||
hi Ignore guifg=#808080 guibg=bg
|
||||
hi IncSearch guifg=#C4BE89 guibg=#000000
|
||||
|
||||
hi Keyword guifg=#F92672 gui=bold
|
||||
hi Label guifg=#E6DB74 gui=none
|
||||
hi Macro guifg=#C4BE89 gui=italic
|
||||
hi SpecialKey guifg=#66D9EF gui=italic
|
||||
|
||||
hi MatchParen guifg=#000000 guibg=#FD971F gui=bold
|
||||
hi ModeMsg guifg=#E6DB74
|
||||
hi MoreMsg guifg=#E6DB74
|
||||
hi Operator guifg=#F92672
|
||||
|
||||
" complete menu
|
||||
hi Pmenu guifg=#66D9EF guibg=#000000
|
||||
hi PmenuSel guibg=#808080
|
||||
hi PmenuSbar guibg=#080808
|
||||
hi PmenuThumb guifg=#66D9EF
|
||||
|
||||
hi PreCondit guifg=#A6E22E gui=bold
|
||||
hi PreProc guifg=#A6E22E
|
||||
hi Question guifg=#66D9EF
|
||||
hi Repeat guifg=#F92672 gui=bold
|
||||
hi Search guifg=#FFFFFF guibg=#455354
|
||||
" marks column
|
||||
hi SignColumn guifg=#A6E22E guibg=#232526
|
||||
hi SpecialChar guifg=#F92672 gui=bold
|
||||
hi SpecialComment guifg=#465457 gui=bold
|
||||
hi Special guifg=#66D9EF guibg=bg gui=italic
|
||||
hi SpecialKey guifg=#888A85 gui=italic
|
||||
if has("spell")
|
||||
hi SpellBad guisp=#FF0000 gui=undercurl
|
||||
hi SpellCap guisp=#7070F0 gui=undercurl
|
||||
hi SpellLocal guisp=#70F0F0 gui=undercurl
|
||||
hi SpellRare guisp=#FFFFFF gui=undercurl
|
||||
endif
|
||||
hi Statement guifg=#F92672 gui=bold
|
||||
hi StatusLine guifg=#455354 guibg=fg
|
||||
hi StatusLineNC guifg=#808080 guibg=#080808
|
||||
hi StorageClass guifg=#FD971F gui=italic
|
||||
hi Structure guifg=#66D9EF
|
||||
hi Tag guifg=#F92672 gui=italic
|
||||
hi Title guifg=#ef5939
|
||||
hi Todo guifg=#FFFFFF guibg=bg gui=bold
|
||||
|
||||
hi Typedef guifg=#66D9EF
|
||||
hi Type guifg=#66D9EF gui=none
|
||||
hi Underlined guifg=#808080 gui=underline
|
||||
|
||||
hi VertSplit guifg=#808080 guibg=#080808 gui=bold
|
||||
hi VisualNOS guibg=#403D3D
|
||||
hi Visual guibg=#403D3D
|
||||
hi WarningMsg guifg=#FFFFFF guibg=#333333 gui=bold
|
||||
hi WildMenu guifg=#66D9EF guibg=#000000
|
||||
|
||||
if s:molokai_original == 1
|
||||
hi Normal guifg=#F8F8F2 guibg=none
|
||||
hi Comment guifg=#75715E
|
||||
hi CursorLine guibg=#3E3D32
|
||||
hi CursorColumn guibg=#3E3D32
|
||||
hi LineNr guifg=#BCBCBC guibg=#3B3A32
|
||||
hi NonText guifg=#BCBCBC guibg=#3B3A32
|
||||
hi NonText guifg=#BCBCBC guibg=none
|
||||
else
|
||||
hi Normal guifg=#F8F8F2 guibg=none
|
||||
hi Comment guifg=#465457
|
||||
hi CursorLine guibg=#293739
|
||||
hi CursorColumn guibg=#293739
|
||||
hi LineNr guifg=#BCBCBC guibg=#232526
|
||||
hi NonText guifg=#BCBCBC guibg=#232526
|
||||
end
|
||||
|
||||
"
|
||||
" Support for 256-color terminal
|
||||
"
|
||||
if &t_Co > 255
|
||||
hi Boolean ctermfg=135
|
||||
hi Character ctermfg=144
|
||||
hi Number ctermfg=135
|
||||
hi String ctermfg=144
|
||||
hi Conditional ctermfg=161 cterm=bold
|
||||
hi Constant ctermfg=135 cterm=bold
|
||||
hi Cursor ctermfg=16 ctermbg=253
|
||||
hi Debug ctermfg=225 cterm=bold
|
||||
hi Define ctermfg=81
|
||||
hi Delimiter ctermfg=241
|
||||
|
||||
hi DiffAdd ctermbg=24
|
||||
hi DiffChange ctermfg=181 ctermbg=239
|
||||
hi DiffDelete ctermfg=162 ctermbg=53
|
||||
hi DiffText ctermbg=102 cterm=bold
|
||||
|
||||
hi Directory ctermfg=118 cterm=bold
|
||||
hi Error ctermfg=219 ctermbg=89
|
||||
hi ErrorMsg ctermfg=199 ctermbg=16 cterm=bold
|
||||
hi Exception ctermfg=118 cterm=bold
|
||||
hi Float ctermfg=135
|
||||
hi FoldColumn ctermfg=67 ctermbg=16
|
||||
hi Folded ctermfg=67 ctermbg=16
|
||||
hi Function ctermfg=118
|
||||
hi Identifier ctermfg=208
|
||||
hi Ignore ctermfg=244 ctermbg=232
|
||||
hi IncSearch ctermfg=193 ctermbg=16
|
||||
|
||||
hi Keyword ctermfg=161 cterm=bold
|
||||
hi Label ctermfg=229 cterm=none
|
||||
hi Macro ctermfg=193
|
||||
hi SpecialKey ctermfg=81
|
||||
|
||||
hi MatchParen ctermfg=16 ctermbg=208 cterm=bold
|
||||
hi ModeMsg ctermfg=229
|
||||
hi MoreMsg ctermfg=229
|
||||
hi Operator ctermfg=161
|
||||
|
||||
" complete menu
|
||||
hi Pmenu ctermfg=81 ctermbg=16
|
||||
hi PmenuSel ctermbg=244
|
||||
hi PmenuSbar ctermbg=232
|
||||
hi PmenuThumb ctermfg=81
|
||||
|
||||
hi PreCondit ctermfg=118 cterm=bold
|
||||
hi PreProc ctermfg=118
|
||||
hi Question ctermfg=81
|
||||
hi Repeat ctermfg=161 cterm=bold
|
||||
hi Search ctermfg=253 ctermbg=66
|
||||
|
||||
" marks column
|
||||
hi SignColumn ctermfg=118 ctermbg=235
|
||||
hi SpecialChar ctermfg=161 cterm=bold
|
||||
hi SpecialComment ctermfg=245 cterm=bold
|
||||
hi Special ctermfg=81 ctermbg=232
|
||||
hi SpecialKey ctermfg=245
|
||||
|
||||
hi Statement ctermfg=161 cterm=bold
|
||||
hi StatusLine ctermfg=238 ctermbg=253
|
||||
hi StatusLineNC ctermfg=244 ctermbg=232
|
||||
hi StorageClass ctermfg=208
|
||||
hi Structure ctermfg=81
|
||||
hi Tag ctermfg=161
|
||||
hi Title ctermfg=166
|
||||
hi Todo ctermfg=231 ctermbg=232 cterm=bold
|
||||
|
||||
hi Typedef ctermfg=81
|
||||
hi Type ctermfg=81 cterm=none
|
||||
hi Underlined ctermfg=244 cterm=underline
|
||||
|
||||
hi VertSplit ctermfg=244 ctermbg=232 cterm=bold
|
||||
hi VisualNOS ctermbg=238
|
||||
hi Visual ctermfg=33 ctermbg=235 cterm=bold
|
||||
hi WarningMsg ctermfg=231 ctermbg=238 cterm=bold
|
||||
hi WildMenu ctermfg=81 ctermbg=16
|
||||
|
||||
hi Normal ctermfg=252 ctermbg=none
|
||||
hi Comment ctermfg=59
|
||||
hi CursorLine ctermbg=234 cterm=none
|
||||
hi CursorColumn ctermbg=234
|
||||
hi LineNr ctermfg=250 ctermbg=234
|
||||
" hi NonText ctermfg=250 ctermbg=234
|
||||
hi NonText cterm=NONE ctermbg=none ctermfg=none
|
||||
hi ExtraWhitespace ctermbg=88 guibg=88
|
||||
" tabs
|
||||
hi TabLineFill ctermfg=236 ctermbg=236
|
||||
hi TabLine ctermfg=White ctermbg=234 cterm=none
|
||||
hi TabLineSel ctermfg=18 ctermbg=39 cterm=none
|
||||
end
|
||||
|
1
.viminfo
1
.viminfo
|
@ -1 +0,0 @@
|
|||
*encoding=utf-8
|
52
.vimrc
52
.vimrc
|
@ -1,52 +0,0 @@
|
|||
" All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by
|
||||
" the call to :runtime you can find below. If you wish to change any of those
|
||||
" settings, you should do it in this file (/etc/vim/vimrc), since debian.vim
|
||||
" will be overwritten everytime an upgrade of the vim packages is performed.
|
||||
" It is recommended to make changes after sourcing debian.vim since it alters
|
||||
" the value of the 'compatible' option.
|
||||
|
||||
" This line should not be removed as it ensures that various options are
|
||||
" properly set to work with the Vim-related packages available in Debian.
|
||||
runtime! debian.vim
|
||||
|
||||
" Uncomment the next line to make Vim more Vi-compatible
|
||||
" NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
|
||||
" options, so any other options should be set AFTER setting 'compatible'.
|
||||
"set compatible
|
||||
|
||||
" Vim5 and later versions support syntax highlighting. Uncommenting the next
|
||||
" line enables syntax highlighting by default.
|
||||
"syntax on
|
||||
|
||||
" If using a dark background within the editing area and syntax highlighting
|
||||
" turn on this option as well
|
||||
"set background=dark
|
||||
|
||||
" Uncomment the following to have Vim jump to the last position when
|
||||
" reopening a file
|
||||
"if has("autocmd")
|
||||
" au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
|
||||
"endif
|
||||
|
||||
" Uncomment the following to have Vim load indentation rules and plugins
|
||||
" according to the detected filetype.
|
||||
"if has("autocmd")
|
||||
" filetype plugin indent on
|
||||
"endif
|
||||
|
||||
" The following are commented out as they cause vim to behave a lot
|
||||
" differently from regular Vi. They are highly recommended though.
|
||||
"set showcmd " Show (partial) command in status line.
|
||||
"set showmatch " Show matching brackets.
|
||||
"set ignorecase " Do case insensitive matching
|
||||
"set smartcase " Do smart case matching
|
||||
"set incsearch " Incremental search
|
||||
"set autowrite " Automatically save before commands like :next and :make
|
||||
"set hidden " Hide buffers when they are abandoned
|
||||
"set mouse=a " Enable mouse usage (all modes)
|
||||
|
||||
" Source a global configuration file if available
|
||||
if filereadable("/etc/vim/vimrc.local")
|
||||
source /etc/vim/vimrc.local
|
||||
endif
|
||||
|
276
.zshrc
276
.zshrc
|
@ -1,276 +0,0 @@
|
|||
export PATH="/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:~/bin:~/toolbox:~/hosting-run-scripts/rc-files"
|
||||
|
||||
export TERM=rxvt-unicode-256color
|
||||
|
||||
# completion
|
||||
autoload -U compinit
|
||||
compinit
|
||||
|
||||
# correction
|
||||
setopt correct
|
||||
|
||||
#history
|
||||
HISTFILE="$HOME/.zshistory"
|
||||
HISTSIZE=20000
|
||||
SAVEHIST=10000
|
||||
alias hist='history -D -E'
|
||||
setopt hist_ignore_dups
|
||||
|
||||
#autocd
|
||||
setopt autocd
|
||||
|
||||
#extended wildcards
|
||||
setopt extendedglob
|
||||
|
||||
#color adn format def
|
||||
local black="%{"$'\033[00;30m'"%}"
|
||||
local green="%{"$'\033[00;32m'"%}"
|
||||
local red="%{"$'\033[00;31m'"%}"
|
||||
local yellow="%{"$'\033[00;33m'"%}"
|
||||
local blue="%{"$'\033[00;34m'"%}"
|
||||
local dblue="%{"$'\033[00;34m'"%}"
|
||||
local magenta="%{"$'\033[00;35m'"%}"
|
||||
local cyan="%{"$'\033[00;36m'"%}"
|
||||
|
||||
local bgreen="%{"$'\033[03;32m'"%}"
|
||||
local bcyan="%{"$'\033[03;36m'"%}"
|
||||
|
||||
local bold="%{"$'\033[01;39m'"%}"
|
||||
local norm="%{"$'\033[00m'"%}"
|
||||
|
||||
setopt PROMPT_SUBST
|
||||
autoload -Uz add-zsh-hook
|
||||
|
||||
#source /home/qgodefro/dotfiles/zshrc.sh
|
||||
source ~/hosting-run-scripts/rc-files/ovhrc
|
||||
|
||||
export PS1="${bold}${bgreen}%n${yellow} â—‹ ${bcyan}%m ${norm}[${magenta}%~${norm}]${norm}${norm} %# ${norm}"
|
||||
export RPROMPT='$(git_super_status) ${norm}(%*) (%(?.${green}0.${red}%?)${norm})${norm}'
|
||||
|
||||
## don't ask me 'do you wish to see all XX possibilities' before menu selection
|
||||
LISTPROMPT=''
|
||||
|
||||
## SPROMPT - the spelling prompt
|
||||
SPROMPT='zsh: correct '%R' to '%r' ? ([Y]es/[N]o/[E]dit/[A]bort) '
|
||||
|
||||
###########################################################################
|
||||
|
||||
#known hosts completion
|
||||
hosts=( $(cat /etc/hosts | grep -v "^#" | awk '{print $1}'| cut -d"," -f1), $(cat $HOME/.ssh/known_hosts | awk '{print $1}'| cut -d"," -f1))
|
||||
zstyle ':completion:*' hosts $hosts
|
||||
|
||||
## add colors to completions
|
||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||
|
||||
## find all suid files
|
||||
suidfind ()
|
||||
{ ls -l /**/*(su0x) }
|
||||
|
||||
# Push the former directory in the pile when we use 'cd'
|
||||
setopt auto_pushd
|
||||
# Ignore repetition in the pile
|
||||
setopt pushd_ignore_dups
|
||||
# Do not display pile after a 'pushd' or 'popd'
|
||||
setopt pushd_silent
|
||||
# 'pushd' without given arguments = 'pushd $HOME'
|
||||
setopt pushd_to_home
|
||||
|
||||
# Ask confirmation when mass deleting
|
||||
unsetopt rm_star_silent
|
||||
|
||||
eval "$(dircolors -b $HOME/.myenv/dircolors.256dark)"
|
||||
|
||||
### DIRCOLORS ###
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ "$TERM" != "dumb" ]; then
|
||||
[ -e "$HOME/.myenv/dircolors" ] && DIR_COLORS="$HOME/.myenv/dircolors"
|
||||
[ -e "$DIR_COLORS" ] || DIR_COLORS=""
|
||||
eval "`dircolors -b $DIR_COLORS`"
|
||||
fi
|
||||
|
||||
|
||||
##########################################################################
|
||||
#Alias alias ...
|
||||
|
||||
# alias expend
|
||||
alias sudo='sudo '
|
||||
|
||||
alias ls='ls --classify --tabsize=0 --literal --color=auto --show-control-chars --human-readable'
|
||||
alias l='ls'
|
||||
alias ll='ls -ahl'
|
||||
|
||||
# autocorrect
|
||||
alias sl='ls'
|
||||
alias ms='ls'
|
||||
alias lq='ls'
|
||||
#alias sm='ls'
|
||||
alias ql='ls'
|
||||
|
||||
alias xs='cd'
|
||||
alias vf='cd'
|
||||
|
||||
############
|
||||
|
||||
alias h='history'
|
||||
|
||||
#upgrading piss me off
|
||||
alias upgrade='apt-get update && apt-get upgrade && apt-get clean'
|
||||
|
||||
alias man='man -P most'
|
||||
|
||||
# changing keymap quickly
|
||||
alias fr='setxkbmap fr'
|
||||
alias us='setxkbmap us'
|
||||
alias 1='fr'
|
||||
alias 2='us'
|
||||
alias 3='ru'
|
||||
|
||||
# Command to compress/uncompress files to/from tar.gz quickly
|
||||
alias ctz='tar cfvz'
|
||||
alias xtz='tar zxvf'
|
||||
alias xtj='tar jxvf'
|
||||
|
||||
alias df='df --human-readable'
|
||||
alias du='du --human-readable'
|
||||
|
||||
alias rwin='rdesktop -g 1400x900 windesk'
|
||||
|
||||
alias sr='ssh -l root'
|
||||
#alias ssh='ssh -2 -C -c blowfish'
|
||||
alias cgrep="grep -n --color"
|
||||
alias show="ls | grep --color $1"
|
||||
|
||||
alias p='popd'
|
||||
|
||||
#Opening specific files with adapted software
|
||||
alias -s tex=vim
|
||||
alias -s c=vim
|
||||
alias -s com=w3m
|
||||
alias -s fr=w3m
|
||||
alias -s org=w3m
|
||||
alias -s html=w3m
|
||||
|
||||
alias er="shred -u -z -n 25 "
|
||||
alias more=less
|
||||
# Special functions
|
||||
###################################################
|
||||
|
||||
needed() {
|
||||
objdump -p $1 | grep NEEDED | awk '{print $2;};'
|
||||
}
|
||||
|
||||
status() {
|
||||
print ""
|
||||
print "Date..: "$(date "+%Y-%m-%d %H:%M:%S")""
|
||||
print "Shell.: Zsh $ZSH_VERSION (PID = $$, $SHLVL nests)"
|
||||
print "Term..: $TTY ($TERM), $BAUD bauds, $COLUMNS x $LINES cars"
|
||||
print "Login.: $LOGNAME (UID = $EUID) on $HOST"
|
||||
print "System: $(cat /etc/[A-Za-z]*[_-][rv]e[lr]*)"
|
||||
print "Uptime:$(uptime)"
|
||||
print ""
|
||||
}
|
||||
|
||||
# searching piss me off too
|
||||
s(){
|
||||
apt-cache search $1 $2 $3
|
||||
}
|
||||
|
||||
# See below...
|
||||
i(){
|
||||
apt-get install $1 $2 $3
|
||||
}
|
||||
|
||||
z0() {
|
||||
export TERM=xterm ; ssh qgodefro@z3.ovh.net -t -- root@$1 ; export TERM=rxvt-unicode
|
||||
}
|
||||
|
||||
z3() {
|
||||
ssh qgodefro@z3.ovh.net -t -- qgodefro@$1
|
||||
}
|
||||
|
||||
mongs() {
|
||||
ssh qgodefro@z3.ovh.net -t -- root@mon-gs.ovh.net
|
||||
}
|
||||
|
||||
mongs2() {
|
||||
ssh qgodefro@z3.ovh.net -t -- qgodefro@mon-gs2.ovh.net
|
||||
}
|
||||
|
||||
mutu71() {
|
||||
ssh qgodefro@z3.ovh.net -t -- root@mutubackup71-10g-rbx.ovh.net
|
||||
}
|
||||
|
||||
mutu64() {
|
||||
ssh qgodefro@z3.ovh.net -t -- root@mutubackup64-10g-rbx.ovh.net
|
||||
}
|
||||
|
||||
qgodefro() {
|
||||
ssh root@gw01.admings.net -p 10106
|
||||
}
|
||||
|
||||
mpsgw() {
|
||||
ssh root@5.135.111.53
|
||||
}
|
||||
|
||||
sm() {
|
||||
ssh -i /home/qgodefro/.ssh/id_rsa_sm qgodefro@213.186.33.101 -t --
|
||||
}
|
||||
|
||||
ptsapi() {
|
||||
export TERM=xterm ; ssh -i /home/qgodefro/.ssh/id_rsa_sm qgodefro@213.186.33.101 -t -- gs@10.15.21.1 ; export TERM=rxvt-unicode-256color
|
||||
}
|
||||
|
||||
ptsmozg() {
|
||||
export TERM=xterm ; ssh -i /home/qgodefro/.ssh/id_rsa_sm qgodefro@213.186.33.101 -t -- robot-gs@10.15.21.13 ; export TERM=rxvt-unicode-256color
|
||||
}
|
||||
|
||||
meltingpot() {
|
||||
export TERM=xterm ; ssh -i /home/qgodefro/.ssh/id_rsa_sm qgodefro@213.186.33.101 -t -- gs@mozg-meltingpot ; export TERM=rxvt-unicode-256color
|
||||
}
|
||||
|
||||
sdev() {
|
||||
export TERM=xterm ; ssh -i /home/qgodefro/.ssh/id_rsa_sm qgodefro@213.186.33.101 -t -- qgodefro@qgodefro.sdev ; export TERM=rxvt-unicode-256color
|
||||
|
||||
}
|
||||
|
||||
bigdata() {
|
||||
export TERM=xterm ; ssh -i /home/qgodefro/.ssh/id_rsa_sm qgodefro@213.186.33.101 -t -- bigdata@mozg-bigdata ; export TERM=rxvt-unicode-256color
|
||||
}
|
||||
|
||||
alias prestaadminca='z0 192.99.134.113'
|
||||
alias prestaadminfr='z0 178.32.71.66'
|
||||
|
||||
alias ws='python -m SimpleHTTPServer 1024'
|
||||
|
||||
alias recordscreen='ffmpeg -video_size 1920x1080 -framerate 25 -f x11grab -i :0.0+1280,0'
|
||||
|
||||
alias meteo='curl -4 http://wttr.in/Lyon'
|
||||
|
||||
goo() {
|
||||
Q="$@";
|
||||
GOOG_URL="http://www.google.com/search?q=";
|
||||
AGENT="Mozilla/4.0";
|
||||
stream=$(curl -A "$AGENT" -skLm 10 "${GOOG_URL}\"${Q/\ /+}\"" | grep -oP '\/url\?q=.+?&' | sed 's/\/url?q=//;s/&//'); echo -e "$
|
||||
{stream//\%/\x}"
|
||||
}
|
||||
|
||||
prettynetstat() {
|
||||
netstat -an | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | awk '{ printf("%s\t%s\t",$2,$1) ; for (i =0; i < $1; i++) {printf("*")}; print "" }'
|
||||
}
|
||||
|
||||
prettyroute() {
|
||||
route -Cn | grep eth0 | awk '{print $2}' | awk -F: '{print $1}' | sort | uniq -c | awk '{ printf("%s\t%s\t",$2,$1) ; for (i = 0; i < $1; i++) {printf("*")}; print "" }'
|
||||
}
|
||||
|
||||
established() {
|
||||
for i in `netstat -an | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq`;
|
||||
do
|
||||
whois $i | grep -i netname | awk '{printf("%s : ",$2)}'
|
||||
echo $i
|
||||
done
|
||||
}
|
||||
|
||||
rfc () { curl -s http://www.ietf.org/rfc/rfc$1.txt | less }
|
||||
|
||||
bindkey '^[[3~' delete-char # Del
|
||||
|
0
Makefile
0
Makefile
|
@ -1,17 +0,0 @@
|
|||
IMAGE=docker.edmund.ovh/hactarus/$(basename $(pwd))
|
||||
VERSION=dev
|
||||
|
||||
default: build
|
||||
|
||||
build: Dockerfile
|
||||
docker build -t $IMAGE:$VERSION .
|
||||
|
||||
run:
|
||||
docker run --rm -ti $IMAGE:$VERSION
|
||||
|
||||
push: Dockerfile
|
||||
docker push $IMAGE:$VERSION
|
||||
|
||||
prod: Dockerfile
|
||||
docker tag $IMAGE:$VERSION $IMAGE:latest
|
||||
docker push $IMAGE:latest
|
|
@ -1,26 +0,0 @@
|
|||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
alias dir='dir --color=auto'
|
||||
alias vdir='vdir --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
fi
|
||||
alias ls='ls --color=auto'
|
||||
alias ll='ls -lah'
|
||||
alias la='ls -A'
|
||||
alias flip="shuf -i 0-1 -n 1 | sed -e 's/1/Pile/' -e 's/0/Face/'"
|
||||
alias dl="wget -r -k -T 5 -t 2 -U 'Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0' "
|
||||
alias paste="pastebin -m -n Hactar"
|
||||
alias pass="tr -dc A-Za-z0-9_ < /dev/urandom | head -c 20 | xargs"
|
||||
alias oss="openstack server"
|
||||
alias osc="openstack console log show"
|
||||
alias public="z3 root@public01.infra.gs.ovh.net"
|
||||
alias melt="sm3 gs@mozg-meltingpot.ovh.ha.ovh.net"
|
||||
alias hr-admin="z3 root@hr-admin.rungs.ovh"
|
||||
alias mis="sm3 mozg-mis.ovh.ha.ovh.net"
|
||||
alias thot_reseller-robot-preprod='thot '\''wss://thot.ovh.com/tail/?tk=e4bdf746-d041-41d3-81a5-7e4629d3e507'\'
|
||||
alias thot_cloudweb-robot-preprod='thot '\''wss://thot.ovh.com/tail/?tk=c89ec346-ce0d-4504-b69b-b3c216e91385'\'
|
||||
alias m5='sm3 ovh@mozg-mutu5.ovh.ha.ovh.net'
|
||||
alias gw01='z3 gw01.infra.mps.gs.ovh.net'
|
|
@ -1,3 +0,0 @@
|
|||
export GOROOT=$HOME/go
|
||||
export GOPATH=$GOROOT/bin
|
||||
export PATH=~/toolbox:~/bin:$PATH:$GOROOT/bin
|
174
bash/bash_ps
174
bash/bash_ps
|
@ -1,174 +0,0 @@
|
|||
# Normal Colors
|
||||
Black='\e[0;30m' # Black
|
||||
Red='\e[0;31m' # Red
|
||||
Green='\e[0;32m' # Green
|
||||
Yellow='\e[0;33m' # Yellow
|
||||
Blue='\e[0;34m' # Blue
|
||||
Purple='\e[0;35m' # Purple
|
||||
Cyan='\e[0;36m' # Cyan
|
||||
White='\e[0;37m' # White
|
||||
|
||||
# Bold
|
||||
BBlack='\e[1;30m' # Black
|
||||
BRed='\e[1;31m' # Red
|
||||
BGreen='\e[1;32m' # Green
|
||||
BYellow='\e[1;33m' # Yellow
|
||||
BBlue='\e[1;34m' # Blue
|
||||
BPurple='\e[1;35m' # Purple
|
||||
BCyan='\e[1;36m' # Cyan
|
||||
BWhite='\e[1;37m' # White
|
||||
|
||||
# Background
|
||||
On_Black='\e[40m' # Black
|
||||
On_Red='\e[41m' # Red
|
||||
On_Green='\e[42m' # Green
|
||||
On_Yellow='\e[43m' # Yellow
|
||||
On_Blue='\e[44m' # Blue
|
||||
On_Purple='\e[45m' # Purple
|
||||
On_Cyan='\e[46m' # Cyan
|
||||
On_White='\e[47m' # White
|
||||
|
||||
NC="\e[m" # Color Reset
|
||||
#-------------------------------------------------------------
|
||||
# Shell Prompt - for many examples, see:
|
||||
# http://www.debian-administration.org/articles/205
|
||||
# http://www.askapache.com/linux/bash-power-prompt.html
|
||||
# http://tldp.org/HOWTO/Bash-Prompt-HOWTO
|
||||
# https://github.com/nojhan/liquidprompt
|
||||
#-------------------------------------------------------------
|
||||
# Current Format: [TIME USER@HOST PWD] >
|
||||
# TIME:
|
||||
# Green == machine load is low
|
||||
# Orange == machine load is medium
|
||||
# Red == machine load is high
|
||||
# ALERT == machine load is very high
|
||||
# USER:
|
||||
# Cyan == normal user
|
||||
# Orange == SU to user
|
||||
# Red == root
|
||||
# HOST:
|
||||
# Cyan == local session
|
||||
# Green == secured remote connection (via ssh)
|
||||
# Red == unsecured remote connection
|
||||
# PWD:
|
||||
# Green == more than 10% free disk space
|
||||
# Orange == less than 10% free disk space
|
||||
# ALERT == less than 5% free disk space
|
||||
# Red == current user does not have write privileges
|
||||
# Cyan == current filesystem is size zero (like /proc)
|
||||
# >:
|
||||
# White == no background or suspended jobs in this shell
|
||||
# Cyan == at least one background job in this shell
|
||||
# Orange == at least one suspended job in this shell
|
||||
#
|
||||
# Command is added to the history file each time you hit enter,
|
||||
# so it's available to all shells (using 'history -a').
|
||||
|
||||
|
||||
# Test connection type:
|
||||
if [ -n "${SSH_CONNECTION}" ]; then
|
||||
CNX="\e[3"$(hostname | md5sum | cut -c 1)"m"
|
||||
#CNX="\e["$(hostname | od | tr ' ' '\n' | awk '{total = total + $1}END{print 30 + (total % 6)}')"m"
|
||||
#CNX=${Green} # Connected on remote machine, via ssh (good).
|
||||
elif [[ "${DISPLAY%%:0*}" != "" ]]; then
|
||||
CNX=${ALERT} # Connected on remote machine, not via ssh (bad).
|
||||
else
|
||||
CNX=${BCyan} # Connected on local machine.
|
||||
fi
|
||||
|
||||
# Test user type:
|
||||
if [[ ${USER} == "root" ]]; then
|
||||
SU=${Red} # User is root.
|
||||
elif [[ ${USER} != $(logname) ]]; then
|
||||
SU=${BRed} # User is not login user.
|
||||
else
|
||||
SU=${BCyan} # User is normal (well ... most of us are).
|
||||
fi
|
||||
|
||||
|
||||
|
||||
NCPU=$(grep -c 'processor' /proc/cpuinfo) # Number of CPUs
|
||||
SLOAD=$(( 100*${NCPU} )) # Small load
|
||||
MLOAD=$(( 200*${NCPU} )) # Medium load
|
||||
XLOAD=$(( 400*${NCPU} )) # Xlarge load
|
||||
|
||||
|
||||
# Returns system load as percentage, i.e., '40' rather than '0.40)'.
|
||||
function load()
|
||||
{
|
||||
local SYSLOAD=$(cut -d " " -f1 /proc/loadavg | tr -d '.')
|
||||
# System load of the current host.
|
||||
echo $((10#$SYSLOAD)) # Convert to decimal.
|
||||
}
|
||||
|
||||
# Returns a color indicating system load.
|
||||
function load_color()
|
||||
{
|
||||
local SYSLOAD=$(load)
|
||||
if [ ${SYSLOAD} -gt ${XLOAD} ]; then
|
||||
echo -en ${ALERT}
|
||||
elif [ ${SYSLOAD} -gt ${MLOAD} ]; then
|
||||
echo -en ${Red}
|
||||
elif [ ${SYSLOAD} -gt ${SLOAD} ]; then
|
||||
echo -en ${BRed}
|
||||
else
|
||||
echo -en ${Green}
|
||||
fi
|
||||
}
|
||||
|
||||
# Returns a color according to free disk space in $PWD.
|
||||
function disk_color()
|
||||
{
|
||||
if [ ! -w "${PWD}" ] ; then
|
||||
echo -en ${Red}
|
||||
# No 'write' privilege in the current directory.
|
||||
elif [ -s "${PWD}" ] ; then
|
||||
local used=$(command df -P "$PWD" |
|
||||
awk 'END {print $5} {sub(/%/,"")}')
|
||||
if [ ${used} -gt 95 ]; then
|
||||
echo -en ${ALERT} # Disk almost full (>95%).
|
||||
elif [ ${used} -gt 90 ]; then
|
||||
echo -en ${BRed} # Free disk space almost gone.
|
||||
else
|
||||
echo -en ${Green} # Free disk space is ok.
|
||||
fi
|
||||
else
|
||||
echo -en ${Cyan}
|
||||
# Current directory is size '0' (like /proc, /sys etc).
|
||||
fi
|
||||
}
|
||||
|
||||
# Returns a color according to running/suspended jobs.
|
||||
function job_color()
|
||||
{
|
||||
if [ $(jobs -s | wc -l) -gt "0" ]; then
|
||||
echo -en ${BRed}
|
||||
elif [ $(jobs -r | wc -l) -gt "0" ] ; then
|
||||
echo -en ${BCyan}
|
||||
fi
|
||||
}
|
||||
|
||||
# Adds some text in the terminal frame (if applicable).
|
||||
|
||||
|
||||
# Now we construct the prompt.
|
||||
PROMPT_COMMAND="history -a"
|
||||
case ${TERM} in
|
||||
*term | rxvt | linux)
|
||||
PS1="\[\$(load_color)\][\A\[${NC}\] "
|
||||
# Time of day (with load info):
|
||||
PS1="\[\$(load_color)\][\A\[${NC}\] "
|
||||
# User@Host (with connection type info):
|
||||
PS1=${PS1}"\[${SU}\]\u\[${NC}\]@\[${CNX}\]\h\[${NC}\] "
|
||||
# PWD (with 'disk space' info):
|
||||
PS1=${PS1}"\[\$(disk_color)\]\W]\[${NC}\] "
|
||||
# Prompt (with 'job' info):
|
||||
PS1=${PS1}"\[\$(job_color)\]>\[${NC}\] "
|
||||
# Set title of current xterm:
|
||||
PS1=${PS1}"\[\e]0;[\u@\h] \w\a\]"
|
||||
;;
|
||||
*)
|
||||
PS1="(\A \u@\h \W) > " # --> PS1="(\A \u@\h \w) > "
|
||||
# --> Shows full pathname of current dir.
|
||||
;;
|
||||
esac
|
2
bin/c
2
bin/c
|
@ -1,2 +0,0 @@
|
|||
#!/bin/bash
|
||||
echo "$@" | bc -l
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
_SERVER="https://paste.cresi.be"
|
||||
a=$(cat);
|
||||
curl -X POST -s -d "$a" ${_SERVER}/documents | awk -F '"' '{print "'${_SERVER}'/"$4}';
|
12
bin/initenv
12
bin/initenv
|
@ -1,12 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
for _FILE in .bashrc bin .vim .vimrc .zshrc
|
||||
do
|
||||
if [ ! -L $HOME/$_FILE ]; then
|
||||
if [[ -f $HOME/$_FILE ]]; then
|
||||
mv $HOME/$_FILE $HOME/$_FILE.bak
|
||||
fi
|
||||
ln -s "$HOME/dotfiles/$_FILE" "$HOME/$_FILE"
|
||||
fi
|
||||
done
|
||||
rsync -av "$HOME/dotfiles/.config" "$HOME/.config"
|
11
bin/pass
11
bin/pass
|
@ -1,11 +0,0 @@
|
|||
#!/bin/bash
|
||||
if [ $# -eq 1 ]; then
|
||||
LENGTH=$1
|
||||
else
|
||||
LENGTH=8
|
||||
fi
|
||||
cat /dev/urandom| tr -dc 'a-zA-Z0-9' | fold -w $LENGTH| head -n 1
|
||||
cat /dev/urandom| tr -dc 'a-zA-Z0-9-_!@#$%^&*()_+{}|:<>?='|fold -w $LENGTH| head -n 1| grep -i '[!@#$%^&*()_+{}|:<>?=]'
|
||||
pw=$(pwgen -Bs $LENGTH)
|
||||
echo $pw " " $(openssl passwd -1 -salt $(pwgen -s 8 -1) $pw)
|
||||
pw=123456
|
32
common.toml
Normal file
32
common.toml
Normal file
|
@ -0,0 +1,32 @@
|
|||
[macros.install__ubuntu]
|
||||
prefix = ["sudo", "apt-get", "install"]
|
||||
|
||||
[macros.install__arch]
|
||||
prefix = ["sudo", "pacman", "-S"]
|
||||
|
||||
[macros.install__archlinux]
|
||||
prefix = ["sudo", "pacman", "-S"]
|
||||
|
||||
[tasks.default]
|
||||
links = [
|
||||
[".config/htop/htoprc", "config/htop"]
|
||||
]
|
||||
|
||||
[tasks.git]
|
||||
rejects = [["which", "tmux"]]
|
||||
cmds = [["@install", "tmux"]]
|
||||
links = [[".zshrc", "config/tmux"]]
|
||||
|
||||
[tasks.git]
|
||||
rejects = [["which", "git"]],
|
||||
cmds = [["@install", "git"]]
|
||||
templates = [
|
||||
[".gitconfig", "gitconfig"]
|
||||
]
|
||||
|
||||
[tasks.zsh]
|
||||
rejects = [["which", "zsh"]]
|
||||
cmds = [["@install", "zsh"],
|
||||
["chsh", "-s", "/bin/zsh"],
|
||||
["git" ,"clone", "--depth=1" ,"https://github.com/robbyrussell/oh-my-zsh.git", ".oh-my-zsh"],
|
||||
links = [[".zshrc", "config/zshrc"]]
|
26
config/htop
Normal file
26
config/htop
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||
# The parser is also very primitive, and not human-friendly.
|
||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
||||
sort_key=46
|
||||
sort_direction=1
|
||||
hide_threads=0
|
||||
hide_kernel_threads=1
|
||||
hide_userland_threads=0
|
||||
shadow_other_users=0
|
||||
show_thread_names=0
|
||||
highlight_base_name=0
|
||||
highlight_megabytes=1
|
||||
highlight_threads=0
|
||||
tree_view=0
|
||||
header_margin=1
|
||||
detailed_cpu_time=0
|
||||
cpu_count_from_zero=0
|
||||
update_process_names=0
|
||||
account_guest_in_cpu_meter=0
|
||||
color_scheme=0
|
||||
delay=15
|
||||
left_meters=LeftCPUs Memory Swap
|
||||
left_meter_modes=1 1 1
|
||||
right_meters=RightCPUs Tasks LoadAverage Uptime
|
||||
right_meter_modes=1 2 2 2
|
||||
|
297
config/zshrc
Normal file
297
config/zshrc
Normal file
|
@ -0,0 +1,297 @@
|
|||
export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||
export ZSH=$HOME/.oh-my-zsh
|
||||
|
||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
||||
ZSH_THEME="agnoster"
|
||||
|
||||
# CASE_SENSITIVE="true"
|
||||
# HYPHEN_INSENSITIVE="true"
|
||||
# DISABLE_AUTO_UPDATE="true"
|
||||
# export UPDATE_ZSH_DAYS=13
|
||||
# DISABLE_LS_COLORS="true"
|
||||
# DISABLE_AUTO_TITLE="true"
|
||||
# ENABLE_CORRECTION="true"
|
||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||
# COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||
HIST_STAMPS="yyy-mm-dd"
|
||||
|
||||
# Would you like to use another custom folder than $ZSH/custom?
|
||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||
|
||||
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
plugins=(
|
||||
#adb
|
||||
#ant
|
||||
#apache2-macports
|
||||
#arcanist
|
||||
archlinux
|
||||
#asdf
|
||||
#autoenv
|
||||
#autojump
|
||||
#autopep8
|
||||
#aws
|
||||
#battery
|
||||
#bbedit
|
||||
#bgnotify
|
||||
#boot2docker
|
||||
bower
|
||||
branch
|
||||
#brew
|
||||
#bundler
|
||||
#bwana
|
||||
#cabal
|
||||
#cake
|
||||
#cakephp3
|
||||
#capistrano
|
||||
#cargo
|
||||
#cask
|
||||
#catimg
|
||||
#celery
|
||||
#chruby
|
||||
#chucknorris
|
||||
#cloudapp
|
||||
#codeclimate
|
||||
#coffee
|
||||
#colemak
|
||||
colored-man-pages
|
||||
colorize
|
||||
#command-not-found
|
||||
#common-aliases
|
||||
#compleat
|
||||
composer
|
||||
#copybuffer
|
||||
#copydir
|
||||
#copyfile
|
||||
cp
|
||||
#cpanm
|
||||
debian
|
||||
#dircycle
|
||||
#dirhistory
|
||||
#dirpersist
|
||||
#django
|
||||
#dnf
|
||||
docker
|
||||
docker-compose
|
||||
#docker-machine
|
||||
#dotenv
|
||||
#droplr
|
||||
#eecms
|
||||
#emacs
|
||||
#ember-cli
|
||||
#emoji
|
||||
#emoji-clock
|
||||
#emotty
|
||||
encode64
|
||||
#extract
|
||||
#fabric
|
||||
#fancy-ctrl-z
|
||||
#fasd
|
||||
#fastfile
|
||||
#fbterm
|
||||
#fedora
|
||||
#firewalld
|
||||
#forklift
|
||||
#fossil
|
||||
#frontend-search
|
||||
#gas
|
||||
#gb
|
||||
#geeknote
|
||||
#gem
|
||||
git
|
||||
git-extras
|
||||
git-flow
|
||||
git-flow-avh
|
||||
git-hubflow
|
||||
git-prompt
|
||||
git-remote-branch
|
||||
#gitfast
|
||||
#github
|
||||
gitignore
|
||||
#glassfish
|
||||
#globalias
|
||||
gnu-utils
|
||||
go
|
||||
golang
|
||||
gpg-agent
|
||||
#gradle
|
||||
#grails
|
||||
#grunt
|
||||
#gulp
|
||||
#hanami
|
||||
#helm
|
||||
#heroku
|
||||
history
|
||||
#history-substring-search
|
||||
#httpie
|
||||
iterm2
|
||||
#iwhois
|
||||
#jake-node
|
||||
#jhbuild
|
||||
#jira
|
||||
#jruby
|
||||
jsontools
|
||||
#jump
|
||||
#kate
|
||||
#kitchen
|
||||
#knife
|
||||
#knife_ssh
|
||||
#kops
|
||||
#kube-ps1
|
||||
#kubectl
|
||||
#laravel
|
||||
#laravel4
|
||||
#laravel5
|
||||
#last-working-dir
|
||||
#lein
|
||||
#lighthouse
|
||||
#lol
|
||||
#macports
|
||||
man
|
||||
#marked2
|
||||
#mercurial
|
||||
#meteor
|
||||
#minikube
|
||||
#mix
|
||||
#mix-fast
|
||||
#mosh
|
||||
#mvn
|
||||
#mysql-macports
|
||||
#n98-magerun
|
||||
nanoc
|
||||
#ng
|
||||
#nmap
|
||||
#node
|
||||
#nomad
|
||||
npm
|
||||
#npx
|
||||
#nvm
|
||||
#nyan
|
||||
#oc
|
||||
#osx
|
||||
#pass
|
||||
#paver
|
||||
#pep8
|
||||
#per-directory-history
|
||||
#perl
|
||||
#perms
|
||||
#phing
|
||||
pip
|
||||
#pj
|
||||
#pod
|
||||
postgres
|
||||
#pow
|
||||
#powder
|
||||
#powify
|
||||
#profiles
|
||||
#pyenv
|
||||
#pylint
|
||||
python
|
||||
#rails
|
||||
#rake
|
||||
#rake-fast
|
||||
#rand-quote
|
||||
#rbenv
|
||||
#rbfu
|
||||
#react-native
|
||||
#rebar
|
||||
redis-cli
|
||||
#repo
|
||||
rsync
|
||||
#ruby
|
||||
#rust
|
||||
#rvm
|
||||
#safe-paste
|
||||
#sbt
|
||||
#scala
|
||||
#scd
|
||||
#screen
|
||||
#scw
|
||||
#sfffe
|
||||
#shrink-path
|
||||
#singlechar
|
||||
#spring
|
||||
#sprunge
|
||||
ssh-agent
|
||||
#stack
|
||||
#sublime
|
||||
sudo
|
||||
supervisor
|
||||
#suse
|
||||
#svn
|
||||
#svn-fast-info
|
||||
#swiftpm
|
||||
#symfony
|
||||
#symfony2
|
||||
#systemadmin
|
||||
systemd
|
||||
#taskwarrior
|
||||
#terminalapp
|
||||
#terminitor
|
||||
#terraform
|
||||
#textastic
|
||||
#textmate
|
||||
#thefuck
|
||||
#themes
|
||||
#thor
|
||||
#tig
|
||||
tmux
|
||||
#tmux-cssh
|
||||
#tmuxinator
|
||||
#torrent
|
||||
#tugboat
|
||||
#ubuntu
|
||||
#urltools
|
||||
#vagrant
|
||||
#vault
|
||||
#vi-mode
|
||||
#vim-interaction
|
||||
#virtualenv
|
||||
#virtualenvwrapper
|
||||
#vundle
|
||||
#wakeonlan
|
||||
#wd
|
||||
#web-search
|
||||
#wp-cli
|
||||
#xcode
|
||||
#yarn
|
||||
#yii
|
||||
#yii2
|
||||
#yum
|
||||
#z
|
||||
#zeus
|
||||
#zsh-navigation-tools
|
||||
#zsh_reload
|
||||
)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# User configuration
|
||||
# export MANPATH="/usr/local/man:$MANPATH"
|
||||
# export LANG=en_US.UTF-8
|
||||
|
||||
# Preferred editor for local and remote sessions
|
||||
# if [[ -n $SSH_CONNECTION ]]; then
|
||||
# export EDITOR='vim'
|
||||
# else
|
||||
# export EDITOR='mvim'
|
||||
# fi
|
||||
|
||||
# Compilation flags
|
||||
# export ARCHFLAGS="-arch x86_64"
|
||||
|
||||
# ssh
|
||||
# export SSH_KEY_PATH="~/.ssh/rsa_id"
|
||||
|
||||
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
||||
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
||||
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
||||
# For a full list of active aliases, run `alias`.
|
||||
#
|
||||
# Example aliases
|
||||
# alias zshconfig="mate ~/.zshrc"
|
||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
11
gitconfig
Normal file
11
gitconfig
Normal file
|
@ -0,0 +1,11 @@
|
|||
[user]
|
||||
{{if eq .Env.USER "qgodefro"}}
|
||||
name = "Quentin Godefroid"
|
||||
email = "quentin.godefroid@corp.ovh.com"
|
||||
{{else if eq .Env.USER "quentin"}}
|
||||
name = "Quentin Godefroid"
|
||||
email = "quentin.git@godefroid.eu"
|
||||
{{else}}
|
||||
name = "Hactarus"
|
||||
email = "hactarus.git@cresi.be"
|
||||
{{end}}
|
Loading…
Add table
Reference in a new issue