Add basic configuration

This commit is contained in:
Kacper Donat 2018-02-19 18:42:00 +01:00
commit c0b7e46cb9
15 changed files with 1547 additions and 0 deletions

15
.gitconfig Normal file
View File

@ -0,0 +1,15 @@
[user]
name = Kacper Donat
email = kadet1090@gmail.com
[alias]
st = status
ci = commit
co = checkout
br = branch
unstage = reset HEAD --
last = log -1 HEAD
fuck = reset --hard
ktokurwa = blame

57
.ideavimrc Normal file
View File

@ -0,0 +1,57 @@
set rnu
set surround
set vb
set ignorecase smartcase
" Moving blocks of text in visual mode
vnoremap < <gv
vnoremap > >gv
" Select all text
map <Space>a ggVG
" reload
nnoremap <Space>vs :source ~/.ideavimrc<CR>
" Copy until the end of the line
noremap Y y$
" clipboard
noremap <space>y "*y
noremap <space>Y "*Y
noremap <space>p "*p
noremap <space>P "*P
" refactoring
nnoremap <space>rf :action RenameFile<cr>
nnoremap <space>rr :action RenameElement<cr>
nnoremap <space>ll :action ReformatCode<cr>
" actions
nnoremap ;; :action CommentByLineComment<cr>
nnoremap <space>b :action ToggleLineBreakpoint<cr>
nnoremap <space>oi :action OptimizeImports<CR>
nnoremap ee :action SearchEverywhere<cr>
nnoremap <tab> :action Switcher<cr>
" gotos
nnoremap gi :action GotoImplementation<cr>
nnoremap gs :action GotoSuperMethod<cr>
nnoremap gu :action ShowUsages<cr>
" unimpaired mappings
nnoremap [<space> O<esc>j
nnoremap ]<space> o<esc>k
nnoremap q[ :action PreviousOccurence<cr>
nnoremap q] :action NextOccurence<cr>
nnoremap m[ :action MethodUp<cr>
nnoremap m] :action MethodDown<cr>
nnoremap c[ :action VcsShowPrevChangeMarker<cr>
nnoremap c] :action VcsShowNextChangeMarker<cr>
" blank lines
nnoremap <space>j :set paste<CR>m`o<Esc>``:set nopaste<CR>
nnoremap <space>k :set paste<CR>m`O<Esc>``:set nopaste<CR>
nnoremap space<down> <space>j
nnoremap space<up> <space>k

136
.vimrc Normal file
View File

@ -0,0 +1,136 @@
set nocompatible " be iMproved, required
if has('win32') || has ('win64')
let $VIMHOME = $HOME."/vimfiles"
else
let $VIMHOME = $HOME."/.vim"
endif
call plug#begin($VIMHOME.'/plugged')
Plug 'terryma/vim-multiple-cursors'
Plug 'thinca/vim-localrc'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'nightsense/seagrey'
Plug 'lervag/vimtex'
Plug 'eagletmt/neco-ghc'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'tpope/vim-surround'
" Plug 'Valloric/YouCompleteMe'
" Plug 'scrooloose/nerdtree'
call plug#end()
set backupdir=$TEMP//
set directory=$TEMP//
set colorcolumn=80,120
"
" My own config
"
let g:ycm_global_ycm_extra_conf = "~\vimfiles\.ycm_extra_conf.py"
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:airline_powerline_fonts = 1
let g:airline_theme = "deus"
let g:airline#extensions#tabline#enabled = 1
set splitbelow
set shellslash
" UTF-8 support
if has("multi_byte")
if &termencoding == ""
let &termencoding = &encoding
endif
set enc=utf-8
set encoding=utf-8
setglobal fileencoding=utf-8
" setglobal bomb
" set fileencodings=ucs-bom,utf-8,latin1
endif
set backspace=2
set autoindent
" tabs
set expandtab
set tabstop=4
set shiftwidth=4
" syntax
syntax on
set number
" disable bells
set noeb vb t_vb=
nmap \\ :CtrlP<CR>
" filetypes
" autocmd FileType c,cpp :compiler cl
au FileType asm :set ft=masm
" one time settings
if !exists("g:running")
" Conemu specific settings
if !has('gui_running') && !has('nvim')
set term=xterm
set t_Co=256
inoremap <Char-0x07F> <BS>
nnoremap <Char-0x07F> <BS>
let &t_AB="\e[48;5;%dm"
let &t_AF="\e[38;5;%dm"
inoremap <Esc>[62~ <C-X><C-E>
inoremap <Esc>[63~ <C-X><C-Y>
nnoremap <Esc>[62~ <C-E>
nnoremap <Esc>[63~ <C-Y>
endif
if has('gui_running')
set guifont=Fira_Code_Medium:h9:cANSI:qDRAFT
set guioptions=
set columns=200
set lines=58
colorscheme seagrey-dark
endif
endif
" latex
let g:vimtex_view_general_viewer = 'SumatraPDF'
let g:vimtex_view_general_options
\ = '-reuse-instance -forward-search @tex @line @pdf'
let g:running = 1
set completeopt=longest,menuone
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
" open omni completion menu closing previous if open and opening new menu without changing the text
inoremap <expr> <C-Space> (pumvisible() ? (col('.') > 1 ? '<Esc>i<Right>' : '<Esc>i') : '') .
\ '<C-x><C-o><C-r>=pumvisible() ? "\<lt>C-n>\<lt>C-p>\<lt>Down>" : ""<CR>'
" remapings
nnoremap YY :%y+<CR>
nnoremap <space><cr> :nohlsearch<cr>
noremap <space>y "*y
noremap <space>Y "*Y
noremap <space>p "*p
noremap <space>P "*P
nnoremap <c-s-tab> gT
nnoremap <c-tab> gt
nnoremap <space>a ggVG
vnoremap > >gv
vnoremap < <gv

902
ConEmu.xml Normal file
View File

@ -0,0 +1,902 @@
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2018-02-19 17:55:52" build="180206">
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Shells::PowerShell}"/>
<value name="StartFarFolders" type="hex" data="00"/>
<value name="StartFarEditors" type="hex" data="00"/>
<value name="StartCreateDelay" type="ulong" data="100"/>
<value name="ColorTable00" type="dword" data="00181818"/>
<value name="ColorTable01" type="dword" data="00ad6c33"/>
<value name="ColorTable02" type="dword" data="0066b389"/>
<value name="ColorTable03" type="dword" data="009aa56d"/>
<value name="ColorTable04" type="dword" data="004b17e5"/>
<value name="ColorTable05" type="dword" data="00d16b9c"/>
<value name="ColorTable06" type="dword" data="000097ff"/>
<value name="ColorTable07" type="dword" data="00c0c0c0"/>
<value name="ColorTable08" type="dword" data="00808080"/>
<value name="ColorTable09" type="dword" data="00fda039"/>
<value name="ColorTable10" type="dword" data="0000dba1"/>
<value name="ColorTable11" type="dword" data="00fec17e"/>
<value name="ColorTable12" type="dword" data="004b4bff"/>
<value name="ColorTable13" type="dword" data="00e09cbd"/>
<value name="ColorTable14" type="dword" data="007be6f4"/>
<value name="ColorTable15" type="dword" data="00ffffff"/>
<value name="ColorTable16" type="dword" data="00000000"/>
<value name="ColorTable17" type="dword" data="00800000"/>
<value name="ColorTable18" type="dword" data="00008000"/>
<value name="ColorTable19" type="dword" data="00808000"/>
<value name="ColorTable20" type="dword" data="00000080"/>
<value name="ColorTable21" type="dword" data="00800080"/>
<value name="ColorTable22" type="dword" data="00008080"/>
<value name="ColorTable23" type="dword" data="00c0c0c0"/>
<value name="ColorTable24" type="dword" data="00808080"/>
<value name="ColorTable25" type="dword" data="00ff0000"/>
<value name="ColorTable26" type="dword" data="0000ff00"/>
<value name="ColorTable27" type="dword" data="00ffff00"/>
<value name="ColorTable28" type="dword" data="000000ff"/>
<value name="ColorTable29" type="dword" data="00ff00ff"/>
<value name="ColorTable30" type="dword" data="0000ffff"/>
<value name="ColorTable31" type="dword" data="00ffffff"/>
<value name="ExtendColors" type="hex" data="00"/>
<value name="ExtendColorIdx" type="hex" data="0E"/>
<value name="TextColorIdx" type="hex" data="10"/>
<value name="BackColorIdx" type="hex" data="10"/>
<value name="PopTextColorIdx" type="hex" data="10"/>
<value name="PopBackColorIdx" type="hex" data="10"/>
<value name="ExtendFonts" type="hex" data="00"/>
<value name="ExtendFontNormalIdx" type="hex" data="01"/>
<value name="ExtendFontBoldIdx" type="hex" data="0C"/>
<value name="ExtendFontItalicIdx" type="hex" data="0D"/>
<value name="CursorTypeActive" type="dword" data="000232c1"/>
<value name="CursorTypeInactive" type="dword" data="00823280"/>
<value name="ClipboardDetectLineEnd" type="hex" data="01"/>
<value name="ClipboardBashMargin" type="hex" data="00"/>
<value name="ClipboardTrimTrailing" type="hex" data="02"/>
<value name="ClipboardEOL" type="hex" data="00"/>
<value name="ClipboardArrowStart" type="hex" data="01"/>
<value name="ClipboardAllLines" type="hex" data="01"/>
<value name="ClipboardAllLinesPosix" type="hex" data="00"/>
<value name="ClipboardFirstLine" type="hex" data="01"/>
<value name="ClipboardFirstLinePosix" type="hex" data="00"/>
<value name="ClipboardClickPromptPosition" type="hex" data="02"/>
<value name="ClipboardDeleteLeftWord" type="hex" data="02"/>
<value name="TrueColorerSupport" type="hex" data="01"/>
<value name="VividColors" type="hex" data="01"/>
<value name="FadeInactive" type="hex" data="01"/>
<value name="FadeInactiveLow" type="hex" data="00"/>
<value name="FadeInactiveHigh" type="hex" data="D0"/>
<value name="ConVisible" type="hex" data="00"/>
<value name="UseInjects" type="hex" data="01"/>
<value name="SetDefaultTerminal" type="hex" data="01"/>
<value name="SetDefaultTerminalStartup" type="hex" data="01"/>
<value name="SetDefaultTerminalStartupTSA" type="hex" data="00"/>
<value name="DefaultTerminalAgressive" type="hex" data="01"/>
<value name="DefaultTerminalNoInjects" type="hex" data="00"/>
<value name="DefaultTerminalNewWindow" type="hex" data="00"/>
<value name="DefaultTerminalDebugLog" type="hex" data="00"/>
<value name="DefaultTerminalConfirm" type="hex" data="01"/>
<value name="DefaultTerminalApps" type="string" data="explorer.exe|git-bash.exe|phpstorm.exe"/>
<value name="ProcessAnsi" type="hex" data="01"/>
<value name="AnsiExecution" type="hex" data="01"/>
<value name="AnsiAllowedCommands" type="multi"/>
<value name="AnsiLog" type="hex" data="00"/>
<value name="AnsiLogPath" type="string" data="%ConEmuDir%\Logs\"/>
<value name="KillSshAgent" type="hex" data="01"/>
<value name="ProcessNewConArg" type="hex" data="01"/>
<value name="ProcessCmdStart" type="hex" data="01"/>
<value name="ProcessCtrlZ" type="hex" data="00"/>
<value name="SuppressBells" type="hex" data="01"/>
<value name="ConsoleExceptionHandler" type="hex" data="00"/>
<value name="UseClink" type="hex" data="01"/>
<value name="StoreTaskbarkTasks" type="hex" data="01"/>
<value name="StoreTaskbarCommands" type="hex" data="00"/>
<value name="JumpListAutoUpdate" type="hex" data="01"/>
<value name="SaveCmdHistory" type="hex" data="01"/>
<value name="CmdLineHistory" type="multi">
<line data="{Shells::PowerShell (Admin)}"/>
<line data="{SSH::m1.kadet.net}"/>
<line data="{SSH::m0.kadet.net}"/>
<line data="{Bash::bash}"/>
<line data="{Shells::Git Bash}"/>
<line data="{Shells::PowerShell}"/>
<line data="{SSH::Kadet.net}"/>
<line data="powershell.exe"/>
<line data="{Shells::cmd}"/>
<line data="{Tests::Show ANSI colors}"/>
</value>
<value name="SingleInstance" type="hex" data="01"/>
<value name="ShowHelpTooltips" type="hex" data="01"/>
<value name="Multi" type="hex" data="01"/>
<value name="Multi.ShowButtons" type="hex" data="00"/>
<value name="Multi.ShowSearch" type="hex" data="00"/>
<value name="Multi.NumberInCaption" type="hex" data="00"/>
<value name="Multi.CloseConfirmFlags" type="hex" data="04"/>
<value name="Multi.NewConfirm" type="hex" data="00"/>
<value name="Multi.DupConfirm" type="hex" data="01"/>
<value name="Multi.DetachConfirm" type="hex" data="01"/>
<value name="Multi.UseArrows" type="hex" data="00"/>
<value name="Multi.UseNumbers" type="hex" data="01"/>
<value name="Multi.UseWinTab" type="hex" data="00"/>
<value name="Multi.AutoCreate" type="hex" data="00"/>
<value name="Multi.LeaveOnClose" type="hex" data="00"/>
<value name="Multi.HideOnClose" type="hex" data="00"/>
<value name="Multi.MinByEsc" type="hex" data="02"/>
<value name="MapShiftEscToEsc" type="hex" data="01"/>
<value name="Multi.Iterate" type="hex" data="01"/>
<value name="Multi.SplitWidth" type="hex" data="04"/>
<value name="Multi.SplitHeight" type="hex" data="04"/>
<value name="KeyboardHooks" type="hex" data="01"/>
<value name="FontName" type="string" data="Source Code Pro Semibold"/>
<value name="FontName2" type="string" data="Arial"/>
<value name="FontAutoSize" type="hex" data="00"/>
<value name="FontSize" type="ulong" data="12"/>
<value name="FontSizeX" type="ulong" data="0"/>
<value name="FontUseDpi" type="hex" data="01"/>
<value name="FontUseUnits" type="hex" data="01"/>
<value name="FontSizeX2" type="ulong" data="0"/>
<value name="FontSizeX3" type="ulong" data="0"/>
<value name="FontCharSet" type="hex" data="EE"/>
<value name="Anti-aliasing" type="ulong" data="6"/>
<value name="FontBold" type="hex" data="00"/>
<value name="FontItalic" type="hex" data="00"/>
<value name="Monospace" type="hex" data="00"/>
<value name="CompressLongStrings" type="hex" data="01"/>
<value name="BackGround Image show" type="hex" data="00"/>
<value name="BackGround Image" type="string" data="C:\Users\k_don\Downloads\conemubg.png"/>
<value name="bgImageDarker" type="hex" data="FF"/>
<value name="bgImageColors" type="dword" data="ffffffff"/>
<value name="bgOperation" type="hex" data="08"/>
<value name="bgPluginAllowed" type="hex" data="01"/>
<value name="AlphaValue" type="hex" data="FC"/>
<value name="AlphaValueSeparate" type="hex" data="01"/>
<value name="AlphaValueInactive" type="hex" data="C1"/>
<value name="UserScreenTransparent" type="hex" data="00"/>
<value name="ColorKeyTransparent" type="hex" data="00"/>
<value name="ColorKeyValue" type="dword" data="00010101"/>
<value name="UseCurrentSizePos" type="hex" data="01"/>
<value name="AutoSaveSizePos" type="hex" data="01"/>
<value name="Cascaded" type="hex" data="00"/>
<value name="IntegralSize" type="hex" data="00"/>
<value name="WindowMode" type="dword" data="00000520"/>
<value name="ConWnd X" type="long" data="62"/>
<value name="ConWnd Y" type="long" data="0"/>
<value name="LastMonitor" type="string" data="62,0,1920,1080"/>
<value name="ConWnd Width" type="dword" data="00000072"/>
<value name="ConWnd Height" type="dword" data="00000036"/>
<value name="16bit Height" type="ulong" data="0"/>
<value name="QuakeStyle" type="hex" data="00"/>
<value name="Restore2ActiveMon" type="hex" data="00"/>
<value name="QuakeAnimation" type="ulong" data="300"/>
<value name="HideCaption" type="hex" data="01"/>
<value name="HideChildCaption" type="hex" data="01"/>
<value name="FocusInChildWindows" type="hex" data="01"/>
<value name="HideCaptionAlways" type="hex" data="00"/>
<value name="HideCaptionAlwaysFrame" type="hex" data="00"/>
<value name="HideCaptionAlwaysDelay" type="ulong" data="2000"/>
<value name="HideCaptionAlwaysDisappear" type="ulong" data="2000"/>
<value name="DownShowHiddenMessage" type="hex" data="00"/>
<value name="DownShowExOnTopMessage" type="hex" data="00"/>
<value name="ConsoleFontName" type="string" data="Lucida Console"/>
<value name="ConsoleFontWidth" type="long" data="3"/>
<value name="ConsoleFontHeight" type="long" data="5"/>
<value name="DynamicBufferHeight" type="hex" data="01"/>
<value name="DefaultBufferHeight" type="long" data="1000"/>
<value name="AutoBufferHeight" type="hex" data="01"/>
<value name="UseScrollLock" type="hex" data="01"/>
<value name="ComSpec.Type" type="hex" data="00"/>
<value name="ComSpec.Bits" type="hex" data="00"/>
<value name="ComSpec.UpdateEnv" type="hex" data="00"/>
<value name="ComSpec.EnvAddPath" type="hex" data="01"/>
<value name="ComSpec.EnvAddExePath" type="hex" data="01"/>
<value name="ComSpec.UncPaths" type="hex" data="00"/>
<value name="ComSpec.Path" type="string" data=""/>
<value name="EnvironmentSet" type="multi"/>
<value name="CTS.Intelligent" type="hex" data="01"/>
<value name="CTS.IntelligentExceptions" type="string" data="far|vim.exe"/>
<value name="CTS.AutoCopy" type="hex" data="01"/>
<value name="CTS.ResetOnRelease" type="hex" data="00"/>
<value name="CTS.IBeam" type="hex" data="01"/>
<value name="CTS.EndOnTyping" type="hex" data="00"/>
<value name="CTS.EndOnKeyPress" type="hex" data="00"/>
<value name="CTS.EraseBeforeReset" type="hex" data="01"/>
<value name="CTS.Freeze" type="hex" data="00"/>
<value name="CTS.SelectBlock" type="hex" data="01"/>
<value name="CTS.SelectText" type="hex" data="01"/>
<value name="CTS.HtmlFormat" type="hex" data="00"/>
<value name="CTS.ForceLocale" type="dword" data="00000000"/>
<value name="CTS.RBtnAction" type="hex" data="03"/>
<value name="CTS.MBtnAction" type="hex" data="00"/>
<value name="CTS.ColorIndex" type="hex" data="E0"/>
<value name="ClipboardConfirmEnter" type="hex" data="01"/>
<value name="ClipboardConfirmLonger" type="ulong" data="200"/>
<value name="FarGotoEditorOpt" type="hex" data="01"/>
<value name="FarGotoEditorPath" type="string" data='far.exe /e%1:%2 "%3"'/>
<value name="HighlightMouseRow" type="hex" data="00"/>
<value name="HighlightMouseCol" type="hex" data="00"/>
<value name="FixFarBorders" type="hex" data="00"/>
<value name="Anti-aliasing2" type="hex" data="01"/>
<value name="FixFarBordersRanges" type="string" data="E0A0-F280;"/>
<value name="ExtendUCharMap" type="hex" data="01"/>
<value name="EnhanceGraphics" type="hex" data="01"/>
<value name="EnhanceButtons" type="hex" data="00"/>
<value name="PartBrush75" type="hex" data="C8"/>
<value name="PartBrush50" type="hex" data="96"/>
<value name="PartBrush25" type="hex" data="5A"/>
<value name="PartBrushBlack" type="hex" data="20"/>
<value name="RightClick opens context menu" type="hex" data="02"/>
<value name="RightClickMacro2" type="string" data=""/>
<value name="SendAltTab" type="hex" data="00"/>
<value name="SendAltEsc" type="hex" data="00"/>
<value name="SendAltPrintScrn" type="hex" data="00"/>
<value name="SendPrintScrn" type="hex" data="00"/>
<value name="SendCtrlEsc" type="hex" data="00"/>
<value name="Min2Tray" type="hex" data="00"/>
<value name="AlwaysShowTrayIcon" type="hex" data="00"/>
<value name="SafeFarClose" type="hex" data="01"/>
<value name="SafeFarCloseMacro" type="string" data=""/>
<value name="FARuseASCIIsort" type="hex" data="00"/>
<value name="ShellNoZoneCheck" type="hex" data="00"/>
<value name="FixAltOnAltTab" type="hex" data="00"/>
<value name="UseAltGrayPlus" type="hex" data="01"/>
<value name="DisableMouse" type="hex" data="00"/>
<value name="RSelectionFix" type="hex" data="01"/>
<value name="MouseSkipActivation" type="hex" data="01"/>
<value name="MouseSkipMoving" type="hex" data="01"/>
<value name="MouseDragWindow" type="hex" data="01"/>
<value name="FarHourglass" type="hex" data="01"/>
<value name="FarHourglassDelay" type="ulong" data="500"/>
<value name="Dnd" type="hex" data="01"/>
<value name="DndDrop" type="hex" data="01"/>
<value name="DefCopy" type="hex" data="01"/>
<value name="DropUseMenu" type="hex" data="02"/>
<value name="DragOverlay" type="hex" data="01"/>
<value name="DragShowIcons" type="hex" data="01"/>
<value name="DebugSteps" type="hex" data="01"/>
<value name="DebugLog" type="hex" data="00"/>
<value name="DragPanel" type="hex" data="02"/>
<value name="DragPanelBothEdges" type="hex" data="00"/>
<value name="KeyBarRClick" type="hex" data="01"/>
<value name="StatusBar.Show" type="hex" data="01"/>
<value name="StatusBar.Flags" type="dword" data="00000002"/>
<value name="StatusFontFace" type="string" data="Segoe UI"/>
<value name="StatusFontCharSet" type="ulong" data="0"/>
<value name="StatusFontHeight" type="long" data="12"/>
<value name="StatusBar.Color.Back" type="dword" data="00000000"/>
<value name="StatusBar.Color.Light" type="dword" data="00e3f6fd"/>
<value name="StatusBar.Color.Dark" type="dword" data="00a1a193"/>
<value name="StatusBar.Hide.VCon" type="hex" data="00"/>
<value name="StatusBar.Hide.CapsL" type="hex" data="00"/>
<value name="StatusBar.Hide.NumL" type="hex" data="00"/>
<value name="StatusBar.Hide.ScrL" type="hex" data="00"/>
<value name="StatusBar.Hide.VisL" type="hex" data="00"/>
<value name="StatusBar.Hide.Lang" type="hex" data="01"/>
<value name="StatusBar.Hide.KeyHooks" type="hex" data="01"/>
<value name="StatusBar.Hide.TMode" type="hex" data="01"/>
<value name="StatusBar.Hide.RMode" type="hex" data="01"/>
<value name="StatusBar.Hide.WPos" type="hex" data="01"/>
<value name="StatusBar.Hide.WSize" type="hex" data="01"/>
<value name="StatusBar.Hide.WClient" type="hex" data="01"/>
<value name="StatusBar.Hide.WWork" type="hex" data="01"/>
<value name="StatusBar.Hide.WVBack" type="hex" data="01"/>
<value name="StatusBar.Hide.WVDC" type="hex" data="01"/>
<value name="StatusBar.Hide.WMode" type="hex" data="01"/>
<value name="StatusBar.Hide.Style" type="hex" data="01"/>
<value name="StatusBar.Hide.StyleEx" type="hex" data="01"/>
<value name="StatusBar.Hide.hFore" type="hex" data="01"/>
<value name="StatusBar.Hide.hFocus" type="hex" data="01"/>
<value name="StatusBar.Hide.Zoom" type="hex" data="00"/>
<value name="StatusBar.Hide.Dpi" type="hex" data="00"/>
<value name="StatusBar.Hide.ABuf" type="hex" data="01"/>
<value name="StatusBar.Hide.CPos" type="hex" data="00"/>
<value name="StatusBar.Hide.CSize" type="hex" data="00"/>
<value name="StatusBar.Hide.BSize" type="hex" data="01"/>
<value name="StatusBar.Hide.CurX" type="hex" data="01"/>
<value name="StatusBar.Hide.CurY" type="hex" data="01"/>
<value name="StatusBar.Hide.CurS" type="hex" data="01"/>
<value name="StatusBar.Hide.CurI" type="hex" data="01"/>
<value name="StatusBar.Hide.CellI" type="hex" data="01"/>
<value name="StatusBar.Hide.ConEmuPID" type="hex" data="01"/>
<value name="StatusBar.Hide.ConEmuHWND" type="hex" data="01"/>
<value name="StatusBar.Hide.ConEmuView" type="hex" data="01"/>
<value name="StatusBar.Hide.Srv" type="hex" data="01"/>
<value name="StatusBar.Hide.SrvHWND" type="hex" data="01"/>
<value name="StatusBar.Hide.Transparency" type="hex" data="00"/>
<value name="StatusBar.Hide.New" type="hex" data="00"/>
<value name="StatusBar.Hide.Sync" type="hex" data="00"/>
<value name="StatusBar.Hide.Proc" type="hex" data="00"/>
<value name="StatusBar.Hide.Title" type="hex" data="01"/>
<value name="StatusBar.Hide.Time" type="hex" data="00"/>
<value name="StatusBar.Hide.Resize" type="hex" data="00"/>
<value name="Tabs" type="hex" data="00"/>
<value name="TabsLocation" type="hex" data="00"/>
<value name="TabIcons" type="hex" data="01"/>
<value name="OneTabPerGroup" type="hex" data="00"/>
<value name="ActivateSplitMouseOver" type="hex" data="01"/>
<value name="TabSelf" type="hex" data="01"/>
<value name="TabLazy" type="hex" data="01"/>
<value name="TabFlashChanged" type="long" data="8"/>
<value name="TabRecent" type="hex" data="01"/>
<value name="TabDblClick" type="ulong" data="3"/>
<value name="TabBtnDblClick" type="ulong" data="0"/>
<value name="TabsOnTaskBar" type="hex" data="02"/>
<value name="TaskBarOverlay" type="hex" data="01"/>
<value name="TaskbarProgress" type="hex" data="01"/>
<value name="TabCloseMacro" type="string" data=""/>
<value name="TabFontFace" type="string" data="Segoe UI"/>
<value name="TabFontCharSet" type="ulong" data="0"/>
<value name="TabFontHeight" type="long" data="13"/>
<value name="SaveAllEditors" type="string" data=""/>
<value name="ToolbarAddSpace" type="long" data="0"/>
<value name="TabConsole" type="string" data="&lt;%c&gt; %s"/>
<value name="TabModifiedSuffix" type="string" data="[*]"/>
<value name="TabSkipWords" type="string" data="Administrator:|Администратор:"/>
<value name="TabPanels" type="string" data="&lt;%c&gt; %s"/>
<value name="TabEditor" type="string" data="&lt;%c.%i&gt;{%s}"/>
<value name="TabEditorModified" type="string" data="&lt;%c.%i&gt;[%s] *"/>
<value name="TabViewer" type="string" data="&lt;%c.%i&gt;[%s]"/>
<value name="TabLenMax" type="ulong" data="20"/>
<value name="AdminTitleSuffix" type="string" data=" (Admin)"/>
<value name="AdminShowShield" type="hex" data="01"/>
<value name="HideInactiveConsoleTabs" type="hex" data="00"/>
<value name="ShowFarWindows" type="hex" data="01"/>
<value name="TryToCenter" type="hex" data="01"/>
<value name="CenterConsolePad" type="ulong" data="0"/>
<value name="ShowScrollbar" type="hex" data="02"/>
<value name="ScrollBarAppearDelay" type="ulong" data="100"/>
<value name="ScrollBarDisappearDelay" type="ulong" data="1000"/>
<value name="IconID" type="ulong" data="1"/>
<value name="MainTimerElapse" type="ulong" data="10"/>
<value name="MainTimerInactiveElapse" type="ulong" data="1000"/>
<value name="AffinityMask" type="dword" data="00000000"/>
<value name="SkipFocusEvents" type="hex" data="00"/>
<value name="MonitorConsoleLang" type="hex" data="03"/>
<value name="SnapToDesktopEdges" type="hex" data="01"/>
<value name="AlwaysOnTop" type="hex" data="00"/>
<value name="SleepInBackground" type="hex" data="01"/>
<value name="RetardInactivePanes" type="hex" data="00"/>
<value name="MinimizeOnLoseFocus" type="hex" data="00"/>
<value name="DisableFarFlashing" type="hex" data="00"/>
<value name="DisableAllFlashing" type="hex" data="00"/>
<value name="FindText" type="string" data=""/>
<value name="FindMatchCase" type="hex" data="00"/>
<value name="FindMatchWholeWords" type="hex" data="00"/>
<value name="FindTransparent" type="hex" data="01"/>
<value name="PanView.BackColor" type="dword" data="30ffffff"/>
<value name="PanView.PFrame" type="long" data="1"/>
<value name="PanView.PFrameColor" type="dword" data="28808080"/>
<value name="PanView.SFrame" type="long" data="1"/>
<value name="PanView.SFrameColor" type="dword" data="07c0c0c0"/>
<value name="PanView.Thumbs.ImgSize" type="long" data="96"/>
<value name="PanView.Thumbs.SpaceX1" type="long" data="1"/>
<value name="PanView.Thumbs.SpaceY1" type="long" data="1"/>
<value name="PanView.Thumbs.SpaceX2" type="long" data="5"/>
<value name="PanView.Thumbs.SpaceY2" type="long" data="20"/>
<value name="PanView.Thumbs.LabelSpacing" type="long" data="2"/>
<value name="PanView.Thumbs.LabelPadding" type="long" data="0"/>
<value name="PanView.Thumbs.FontName" type="string" data="Segoe UI"/>
<value name="PanView.Thumbs.FontHeight" type="long" data="14"/>
<value name="PanView.Tiles.ImgSize" type="long" data="48"/>
<value name="PanView.Tiles.SpaceX1" type="long" data="4"/>
<value name="PanView.Tiles.SpaceY1" type="long" data="4"/>
<value name="PanView.Tiles.SpaceX2" type="long" data="172"/>
<value name="PanView.Tiles.SpaceY2" type="long" data="4"/>
<value name="PanView.Tiles.LabelSpacing" type="long" data="4"/>
<value name="PanView.Tiles.LabelPadding" type="long" data="1"/>
<value name="PanView.Tiles.FontName" type="string" data="Segoe UI"/>
<value name="PanView.Tiles.FontHeight" type="long" data="14"/>
<value name="PanView.LoadPreviews" type="hex" data="03"/>
<value name="PanView.LoadFolders" type="hex" data="01"/>
<value name="PanView.LoadTimeout" type="ulong" data="15"/>
<value name="PanView.MaxZoom" type="ulong" data="600"/>
<value name="PanView.UsePicView2" type="hex" data="01"/>
<value name="PanView.RestoreOnStartup" type="hex" data="00"/>
<value name="Update.VerLocation" type="string" data=""/>
<value name="Update.CheckOnStartup" type="hex" data="01"/>
<value name="Update.CheckHourly" type="hex" data="00"/>
<value name="Update.ConfirmDownload" type="hex" data="01"/>
<value name="Update.UseBuilds" type="hex" data="02"/>
<value name="Update.InetTool" type="hex" data="00"/>
<value name="Update.InetToolCmd" type="string" data=""/>
<value name="Update.UseProxy" type="hex" data="00"/>
<value name="Update.Proxy" type="string" data=""/>
<value name="Update.ProxyUser" type="string" data=""/>
<value name="Update.ProxyPassword" type="string" data=""/>
<value name="Update.ExeCmdLine" type="string" data=""/>
<value name="Update.ArcCmdLine" type="string" data=""/>
<value name="Update.DownloadPath" type="string" data="%TEMP%\ConEmu"/>
<value name="Update.LeavePackages" type="hex" data="00"/>
<value name="Update.PostUpdateCmd" type="string" data="echo Last successful update&gt;ConEmuUpdate.info &amp;&amp; date /t&gt;&gt;ConEmuUpdate.info &amp;&amp; time /t&gt;&gt;ConEmuUpdate.info"/>
<key name="HotKeys" modified="2018-02-19 17:55:52" build="180206">
<value name="KeyMacroVersion" type="hex" data="02"/>
<value name="Multi.Modifier" type="dword" data="0000005b"/>
<value name="Multi.ArrowsModifier" type="dword" data="0000005b"/>
<value name="MinimizeRestore" type="dword" data="00005bc0"/>
<value name="MinimizeRestore2" type="dword" data="00000000"/>
<value name="GlobalRestore" type="dword" data="00000000"/>
<value name="CdExplorerPath" type="dword" data="00000000"/>
<value name="ForcedFullScreen" type="dword" data="12115b0d"/>
<value name="SwitchGuiFocus" type="dword" data="00005b5a"/>
<value name="SetFocusGui" type="dword" data="00000000"/>
<value name="SetFocusChild" type="dword" data="00000000"/>
<value name="ChildSystemMenu" type="dword" data="00000000"/>
<value name="Multi.NewConsole" type="dword" data="00005b57"/>
<value name="Multi.NewConsoleShift" type="dword" data="00105b57"/>
<value name="Multi.CmdKey" type="dword" data="00005b58"/>
<value name="Multi.NewWindow" type="dword" data="00000000"/>
<value name="Multi.NewConsolePopup" type="dword" data="00005b4e"/>
<value name="Multi.NewConsolePopup2" type="dword" data="00000000"/>
<value name="Multi.NewAttach" type="dword" data="00005b47"/>
<value name="Multi.NewSplitV" type="dword" data="00101148"/>
<value name="Multi.NewSplitH" type="dword" data="0010114a"/>
<value name="Multi.SplitMaximize" type="dword" data="00005d0d"/>
<value name="Multi.SplitSizeVU" type="dword" data="00105d26"/>
<value name="Multi.SplitSizeVD" type="dword" data="00105d28"/>
<value name="Multi.SplitSizeHL" type="dword" data="00105d25"/>
<value name="Multi.SplitSizeHR" type="dword" data="00105d27"/>
<value name="Key.TabPane1" type="dword" data="00005d09"/>
<value name="Key.TabPane2" type="dword" data="00105d09"/>
<value name="Multi.SplitFocusU" type="dword" data="00005d26"/>
<value name="Multi.SplitFocusD" type="dword" data="00005d28"/>
<value name="Multi.SplitFocusL" type="dword" data="00005d25"/>
<value name="Multi.SplitFocusR" type="dword" data="00005d27"/>
<value name="Multi.SplitSwap" type="dword" data="00125d58"/>
<value name="Multi.SplitSwapU" type="dword" data="00125d26"/>
<value name="Multi.SplitSwapD" type="dword" data="00125d28"/>
<value name="Multi.SplitSwapL" type="dword" data="00125d25"/>
<value name="Multi.SplitSwapR" type="dword" data="00125d27"/>
<value name="Multi.Next" type="dword" data="00005b51"/>
<value name="Multi.NextShift" type="dword" data="00105b51"/>
<value name="Multi.Recreate" type="dword" data="000011c0"/>
<value name="Multi.AltCon" type="dword" data="00005b41"/>
<value name="Multi.Pause" type="dword" data="80808013"/>
<value name="Multi.Scroll" type="dword" data="00000000"/>
<value name="Multi.GroupInput" type="dword" data="00005d47"/>
<value name="Multi.GroupInputAll" type="dword" data="00105d47"/>
<value name="Multi.GroupInputKey" type="dword" data="00125d47"/>
<value name="Multi.Detach" type="dword" data="00000000"/>
<value name="Multi.Unfasten" type="dword" data="00000000"/>
<value name="Multi.Close" type="dword" data="00005b2e"/>
<value name="CloseTabKey" type="dword" data="00125b2e"/>
<value name="CloseGroupKey" type="dword" data="00115b2e"/>
<value name="CloseGroupPrcKey" type="dword" data="00000000"/>
<value name="CloseAllConKey" type="dword" data="00000000"/>
<value name="CloseZombiesKey" type="dword" data="00000000"/>
<value name="CloseExceptConKey" type="dword" data="00000000"/>
<value name="CloseToRightKey" type="dword" data="00000000"/>
<value name="KillProcessKey" type="dword" data="00000000"/>
<value name="KillAllButShellKey" type="dword" data="00105b2e"/>
<value name="DuplicateRootKey" type="dword" data="00005b53"/>
<value name="CloseConEmuKey" type="dword" data="00005b73"/>
<value name="Multi.Rename" type="dword" data="00005d52"/>
<value name="AffinityPriorityKey" type="dword" data="00005d41"/>
<value name="Multi.MoveLeft" type="dword" data="00125b25"/>
<value name="Multi.MoveRight" type="dword" data="00125b27"/>
<value name="CTS.VkBlockStart" type="dword" data="00000000"/>
<value name="CTS.VkTextStart" type="dword" data="00000000"/>
<value name="CTS.VkCopyFmt0" type="dword" data="00001143"/>
<value name="CTS.VkCopyFmt1" type="dword" data="00101143"/>
<value name="CTS.VkCopyFmt2" type="dword" data="00000000"/>
<value name="CTS.VkCopyAll" type="dword" data="00000000"/>
<value name="HighlightMouseSwitch" type="dword" data="00005d4c"/>
<value name="HighlightMouseSwitchX" type="dword" data="00005d58"/>
<value name="Multi.ShowTabsList" type="dword" data="00000000"/>
<value name="Multi.ShowTabsList2" type="dword" data="00005d7b"/>
<value name="ClipboardVkAllLines" type="dword" data="0000102d"/>
<value name="ClipboardVkFirstLine" type="dword" data="00001156"/>
<value name="Key.AltNumpad" type="dword" data="00000000"/>
<value name="DeleteWordToLeft" type="dword" data="00001108"/>
<value name="FindTextKey" type="dword" data="00005d46"/>
<value name="ScreenshotKey" type="dword" data="00005b48"/>
<value name="ScreenshotFullKey" type="dword" data="00105b48"/>
<value name="ShowStatusBarKey" type="dword" data="0000a453"/>
<value name="ShowTabBarKey" type="dword" data="0000a454"/>
<value name="ShowCaptionKey" type="dword" data="0000a443"/>
<value name="AlwaysOnTopKey" type="dword" data="0000a451"/>
<value name="TransparencyInc" type="dword" data="00000000"/>
<value name="TransparencyDec" type="dword" data="00000000"/>
<value name="Key.TabMenu" type="dword" data="00005d20"/>
<value name="Key.TabMenu2" type="dword" data="00001002"/>
<value name="Key.Maximize" type="dword" data="00001278"/>
<value name="Key.MaximizeWidth" type="dword" data="00105b28"/>
<value name="Key.MaximizeHeight" type="dword" data="00105b26"/>
<value name="Key.TileToLeft" type="dword" data="00005b25"/>
<value name="Key.TileToRight" type="dword" data="00005b27"/>
<value name="Key.JumpActiveMonitor" type="dword" data="00000000"/>
<value name="Key.JumpPrevMonitor" type="dword" data="00105b25"/>
<value name="Key.JumpNextMonitor" type="dword" data="00105b27"/>
<value name="Key.FullScreen" type="dword" data="0000120d"/>
<value name="Key.SysMenu" type="dword" data="00001220"/>
<value name="Key.SysMenu2" type="dword" data="00001102"/>
<value name="Key.DebugProcess" type="dword" data="00105b44"/>
<value name="Key.DumpProcess" type="dword" data="00000000"/>
<value name="Key.DumpTree" type="dword" data="00000000"/>
<value name="Key.BufUp" type="dword" data="00001126"/>
<value name="Key.BufDn" type="dword" data="00001128"/>
<value name="Key.BufPgUp" type="dword" data="00001121"/>
<value name="Key.BufPgDn" type="dword" data="00001122"/>
<value name="Key.BufHfPgUp" type="dword" data="00005d21"/>
<value name="Key.BufHfPgDn" type="dword" data="00005d22"/>
<value name="Key.BufTop" type="dword" data="00005d24"/>
<value name="Key.BufBottom" type="dword" data="00005d23"/>
<value name="Key.BufPrUp" type="dword" data="00121121"/>
<value name="Key.BufPrDn" type="dword" data="00121122"/>
<value name="Key.BufCursor" type="dword" data="00005d08"/>
<value name="Key.ResetTerm" type="dword" data="00000000"/>
<value name="FontLargerKey" type="dword" data="000011d0"/>
<value name="FontSmallerKey" type="dword" data="000011d1"/>
<value name="FontOriginalKey" type="dword" data="00001104"/>
<value name="PasteFileKey" type="dword" data="00101146"/>
<value name="PastePathKey" type="dword" data="00101144"/>
<value name="PasteCygwinKey" type="dword" data="00005d2d"/>
<value name="KeyMacro01" type="dword" data="00000000"/>
<value name="KeyMacro01.Text" type="string" data=""/>
<value name="KeyMacro02" type="dword" data="00000000"/>
<value name="KeyMacro02.Text" type="string" data=""/>
<value name="KeyMacro03" type="dword" data="00000000"/>
<value name="KeyMacro03.Text" type="string" data=""/>
<value name="KeyMacro04" type="dword" data="00000000"/>
<value name="KeyMacro04.Text" type="string" data=""/>
<value name="KeyMacro05" type="dword" data="00000000"/>
<value name="KeyMacro05.Text" type="string" data=""/>
<value name="KeyMacro06" type="dword" data="00000000"/>
<value name="KeyMacro06.Text" type="string" data=""/>
<value name="KeyMacro07" type="dword" data="00000000"/>
<value name="KeyMacro07.Text" type="string" data=""/>
<value name="KeyMacro08" type="dword" data="00000000"/>
<value name="KeyMacro08.Text" type="string" data=""/>
<value name="KeyMacro09" type="dword" data="00000000"/>
<value name="KeyMacro09.Text" type="string" data=""/>
<value name="KeyMacro10" type="dword" data="00000000"/>
<value name="KeyMacro10.Text" type="string" data=""/>
<value name="KeyMacro11" type="dword" data="00000000"/>
<value name="KeyMacro11.Text" type="string" data=""/>
<value name="KeyMacro12" type="dword" data="00000000"/>
<value name="KeyMacro12.Text" type="string" data=""/>
<value name="KeyMacro13" type="dword" data="00000000"/>
<value name="KeyMacro13.Text" type="string" data=""/>
<value name="KeyMacro14" type="dword" data="00000000"/>
<value name="KeyMacro14.Text" type="string" data=""/>
<value name="KeyMacro15" type="dword" data="00000000"/>
<value name="KeyMacro15.Text" type="string" data=""/>
<value name="KeyMacro16" type="dword" data="00000000"/>
<value name="KeyMacro16.Text" type="string" data=""/>
<value name="KeyMacro17" type="dword" data="00000000"/>
<value name="KeyMacro17.Text" type="string" data=""/>
<value name="KeyMacro18" type="dword" data="00000000"/>
<value name="KeyMacro18.Text" type="string" data=""/>
<value name="KeyMacro19" type="dword" data="00000000"/>
<value name="KeyMacro19.Text" type="string" data=""/>
<value name="KeyMacro20" type="dword" data="00000000"/>
<value name="KeyMacro20.Text" type="string" data=""/>
<value name="KeyMacro21" type="dword" data="00000000"/>
<value name="KeyMacro21.Text" type="string" data=""/>
<value name="KeyMacro22" type="dword" data="00000000"/>
<value name="KeyMacro22.Text" type="string" data=""/>
<value name="KeyMacro23" type="dword" data="00000000"/>
<value name="KeyMacro23.Text" type="string" data=""/>
<value name="KeyMacro24" type="dword" data="00000000"/>
<value name="KeyMacro24.Text" type="string" data=""/>
<value name="KeyMacro25" type="dword" data="00000000"/>
<value name="KeyMacro25.Text" type="string" data=""/>
<value name="KeyMacro26" type="dword" data="00000000"/>
<value name="KeyMacro26.Text" type="string" data=""/>
<value name="KeyMacro27" type="dword" data="00000000"/>
<value name="KeyMacro27.Text" type="string" data=""/>
<value name="KeyMacro28" type="dword" data="00000000"/>
<value name="KeyMacro28.Text" type="string" data=""/>
<value name="KeyMacro29" type="dword" data="00000000"/>
<value name="KeyMacro29.Text" type="string" data=""/>
<value name="KeyMacro30" type="dword" data="00000000"/>
<value name="KeyMacro30.Text" type="string" data=""/>
<value name="KeyMacro31" type="dword" data="00000000"/>
<value name="KeyMacro31.Text" type="string" data=""/>
<value name="KeyMacro32" type="dword" data="00000000"/>
<value name="KeyMacro32.Text" type="string" data=""/>
<value name="CTS.VkBlock" type="hex" data="A4"/>
<value name="CTS.VkText" type="hex" data="A0"/>
<value name="CTS.VkAct" type="hex" data="00"/>
<value name="CTS.VkPrompt" type="hex" data="00"/>
<value name="FarGotoEditorVk" type="hex" data="A2"/>
<value name="DndLKey" type="hex" data="00"/>
<value name="DndRKey" type="hex" data="A2"/>
<value name="WndDragKey" type="dword" data="00121101"/>
</key>
<key name="Tasks" modified="2018-02-19 17:55:52" build="180206">
<value name="Count" type="long" data="13"/>
<key name="Task1" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="{Shells::Git Bash}"/>
<value name="Flags" type="dword" data="00000000"/>
<value name="Hotkey" type="dword" data="00000000"/>
<value name="GuiArgs" type="string" data='/icon "C:\Program Files\Git\git-cmd.exe"'/>
<value name="Active" type="long" data="0"/>
<value name="Count" type="long" data="1"/>
<value name="Cmd1" type="string" data='"C:\Program Files\Git\git-bash.exe"'/>
</key>
<key name="Task2" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="{Shells::Git Bash (Admin)}"/>
<value name="Flags" type="dword" data="00000000"/>
<value name="Hotkey" type="dword" data="00000000"/>
<value name="GuiArgs" type="string" data='/icon "C:\Program Files\Git\git-cmd.exe"'/>
<value name="Active" type="long" data="0"/>
<value name="Count" type="long" data="1"/>
<value name="Cmd1" type="string" data='*"C:\Program Files\Git\git-bash.exe"'/>
</key>
<key name="Task3" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="{Shells::cmd}"/>
<value name="Flags" type="dword" data="00000000"/>
<value name="Hotkey" type="dword" data="00000000"/>
<value name="GuiArgs" type="string" data=""/>
<value name="Active" type="long" data="0"/>
<value name="Count" type="long" data="1"/>
<value name="Cmd1" type="string" data='cmd.exe /k "%ConEmuBaseDir%\CmdInit.cmd"'/>
</key>
<key name="Task4" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="{Shells::cmd (Admin)}"/>
<value name="Flags" type="dword" data="00000000"/>
<value name="Hotkey" type="dword" data="00000000"/>
<value name="GuiArgs" type="string" data=""/>
<value name="Active" type="long" data="0"/>
<value name="Count" type="long" data="1"/>
<value name="Cmd1" type="string" data='cmd.exe /k "%ConEmuBaseDir%\CmdInit.cmd" -new_console:a'/>
</key>
<key name="Task5" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="{Shells::cmd 64/32}"/>
<value name="Flags" type="dword" data="00000000"/>
<value name="Hotkey" type="dword" data="00000000"/>
<value name="GuiArgs" type="string" data=""/>
<value name="Active" type="long" data="1"/>
<value name="Count" type="long" data="2"/>
<value name="Cmd1" type="string" data='&gt; "%windir%\system32\cmd.exe" /k ""%ConEmuBaseDir%\CmdInit.cmd" &amp; echo This is Native cmd.exe"'/>
<value name="Cmd2" type="string" data='"%windir%\syswow64\cmd.exe" /k ""%ConEmuBaseDir%\CmdInit.cmd" &amp; echo This is 32 bit cmd.exe -new_console:s50V"'/>
</key>
<key name="Task6" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="{Shells::PowerShell}"/>
<value name="Flags" type="dword" data="00000003"/>
<value name="Hotkey" type="dword" data="00000000"/>
<value name="GuiArgs" type="string" data=""/>
<value name="Active" type="long" data="0"/>
<value name="Count" type="long" data="1"/>
<value name="Cmd1" type="string" data='"C:\Program Files\PowerShell\6.0.0\pwsh.exe"'/>
</key>
<key name="Task7" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="{Shells::PowerShell (Admin)}"/>
<value name="Flags" type="dword" data="00000000"/>
<value name="Hotkey" type="dword" data="00000000"/>
<value name="GuiArgs" type="string" data=""/>
<value name="Active" type="long" data="0"/>
<value name="Count" type="long" data="1"/>
<value name="Cmd1" type="string" data='"C:\Program Files\PowerShell\6.0.0\pwsh.exe" -new_console:a '/>
</key>
<key name="Task8" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="{Tests::Show ANSI colors}"/>
<value name="Flags" type="dword" data="00000000"/>
<value name="Hotkey" type="dword" data="00000000"/>
<value name="GuiArgs" type="string" data=""/>
<value name="Active" type="long" data="0"/>
<value name="Count" type="long" data="1"/>
<value name="Cmd1" type="string" data='cmd.exe /k type "%ConEmuBaseDir%\Addons\AnsiColors16t.ans" -cur_console:n'/>
</key>
<key name="Task9" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="{Scripts::Chocolatey (Admin)}"/>
<value name="Flags" type="dword" data="00000000"/>
<value name="Hotkey" type="dword" data="00000000"/>
<value name="GuiArgs" type="string" data=""/>
<value name="Active" type="long" data="0"/>
<value name="Count" type="long" data="1"/>
<value name="Cmd1" type="string" data='*cmd.exe /k Title Chocolatey &amp; "%ConEmuBaseDir%\Addons\ChocolateyAbout.cmd"'/>
</key>
<key name="Task10" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="{SSH::m0.kadet.net}"/>
<value name="Flags" type="dword" data="00000000"/>
<value name="Hotkey" type="dword" data="00000000"/>
<value name="GuiArgs" type="string" data='/icon "C:\Users\k_don\Documents\ssh-icon.png"'/>
<value name="Active" type="long" data="0"/>
<value name="Count" type="long" data="1"/>
<value name="Cmd1" type="string" data='"%programfiles%\Git\bin\sh.exe" --login -c "ssh kadet@m0.kadet.net"'/>
</key>
<key name="Task11" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="{SSH::m1.kadet.net}"/>
<value name="Flags" type="dword" data="00000004"/>
<value name="Hotkey" type="dword" data="00000000"/>
<value name="GuiArgs" type="string" data='/icon "C:\Users\k_don\Documents\ssh-icon.png"'/>
<value name="Active" type="long" data="0"/>
<value name="Count" type="long" data="1"/>
<value name="Cmd1" type="string" data='"%programfiles%\Git\bin\sh.exe" --login -c "ssh kadet@m1.kadet.net"'/>
</key>
<key name="Task12" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="{Shells::cmd-32}"/>
<value name="Flags" type="dword" data="00000004"/>
<value name="Hotkey" type="dword" data="00000000"/>
<value name="GuiArgs" type="string" data=""/>
<value name="Active" type="long" data="0"/>
<value name="Count" type="long" data="1"/>
<value name="Cmd1" type="string" data='"%windir%\syswow64\cmd.exe" /k "%ConEmuBaseDir%\CmdInit.cmd"'/>
</key>
<key name="Task13" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="{Bash::bash}"/>
<value name="Flags" type="dword" data="00000004"/>
<value name="Hotkey" type="dword" data="00000000"/>
<value name="GuiArgs" type="string" data='-icon "%USERPROFILE%\AppData\Local\lxss\bash.ico"'/>
<value name="Active" type="long" data="0"/>
<value name="Count" type="long" data="1"/>
<value name="Cmd1" type="string" data="%windir%\system32\bash.exe -cur_console:pm:/mnt"/>
</key>
</key>
<key name="Apps" modified="2018-02-19 17:55:52" build="180206">
<value name="Count" type="long" data="0"/>
</key>
<key name="Colors" modified="2018-02-19 17:55:52" build="180206">
<value name="Count" type="long" data="4"/>
<key name="Palette1" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="#Attached:cmd"/>
<value name="ExtendColors" type="hex" data="00"/>
<value name="ExtendColorIdx" type="hex" data="0E"/>
<value name="TextColorIdx" type="hex" data="07"/>
<value name="BackColorIdx" type="hex" data="00"/>
<value name="PopTextColorIdx" type="hex" data="05"/>
<value name="PopBackColorIdx" type="hex" data="0F"/>
<value name="ColorTable00" type="dword" data="00000000"/>
<value name="ColorTable01" type="dword" data="00800000"/>
<value name="ColorTable02" type="dword" data="00008000"/>
<value name="ColorTable03" type="dword" data="00808000"/>
<value name="ColorTable04" type="dword" data="00000080"/>
<value name="ColorTable05" type="dword" data="00800080"/>
<value name="ColorTable06" type="dword" data="00008080"/>
<value name="ColorTable07" type="dword" data="00c0c0c0"/>
<value name="ColorTable08" type="dword" data="00808080"/>
<value name="ColorTable09" type="dword" data="00ff0000"/>
<value name="ColorTable10" type="dword" data="0000ff00"/>
<value name="ColorTable11" type="dword" data="00ffff00"/>
<value name="ColorTable12" type="dword" data="000000ff"/>
<value name="ColorTable13" type="dword" data="00ff00ff"/>
<value name="ColorTable14" type="dword" data="0000ffff"/>
<value name="ColorTable15" type="dword" data="00ffffff"/>
<value name="ColorTable16" type="dword" data="00000000"/>
<value name="ColorTable17" type="dword" data="00800000"/>
<value name="ColorTable18" type="dword" data="00008000"/>
<value name="ColorTable19" type="dword" data="00808000"/>
<value name="ColorTable20" type="dword" data="00000080"/>
<value name="ColorTable21" type="dword" data="00800080"/>
<value name="ColorTable22" type="dword" data="00008080"/>
<value name="ColorTable23" type="dword" data="00c0c0c0"/>
<value name="ColorTable24" type="dword" data="00808080"/>
<value name="ColorTable25" type="dword" data="00ff0000"/>
<value name="ColorTable26" type="dword" data="0000ff00"/>
<value name="ColorTable27" type="dword" data="00ffff00"/>
<value name="ColorTable28" type="dword" data="000000ff"/>
<value name="ColorTable29" type="dword" data="00ff00ff"/>
<value name="ColorTable30" type="dword" data="0000ffff"/>
<value name="ColorTable31" type="dword" data="00ffffff"/>
</key>
<key name="Palette2" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="Kadet"/>
<value name="ExtendColors" type="hex" data="00"/>
<value name="ExtendColorIdx" type="hex" data="0E"/>
<value name="TextColorIdx" type="hex" data="10"/>
<value name="BackColorIdx" type="hex" data="10"/>
<value name="PopTextColorIdx" type="hex" data="10"/>
<value name="PopBackColorIdx" type="hex" data="10"/>
<value name="ColorTable00" type="dword" data="00181818"/>
<value name="ColorTable01" type="dword" data="00ad6c33"/>
<value name="ColorTable02" type="dword" data="0066b389"/>
<value name="ColorTable03" type="dword" data="009aa56d"/>
<value name="ColorTable04" type="dword" data="004b17e5"/>
<value name="ColorTable05" type="dword" data="00d16b9c"/>
<value name="ColorTable06" type="dword" data="000097ff"/>
<value name="ColorTable07" type="dword" data="00c0c0c0"/>
<value name="ColorTable08" type="dword" data="00808080"/>
<value name="ColorTable09" type="dword" data="00fda039"/>
<value name="ColorTable10" type="dword" data="0000dba1"/>
<value name="ColorTable11" type="dword" data="00ffff00"/>
<value name="ColorTable12" type="dword" data="004b17e5"/>
<value name="ColorTable13" type="dword" data="00e09cbd"/>
<value name="ColorTable14" type="dword" data="007be6f4"/>
<value name="ColorTable15" type="dword" data="00ffffff"/>
<value name="ColorTable16" type="dword" data="00000000"/>
<value name="ColorTable17" type="dword" data="00800000"/>
<value name="ColorTable18" type="dword" data="00008000"/>
<value name="ColorTable19" type="dword" data="00808000"/>
<value name="ColorTable20" type="dword" data="00000080"/>
<value name="ColorTable21" type="dword" data="00800080"/>
<value name="ColorTable22" type="dword" data="00008080"/>
<value name="ColorTable23" type="dword" data="00c0c0c0"/>
<value name="ColorTable24" type="dword" data="00808080"/>
<value name="ColorTable25" type="dword" data="00ff0000"/>
<value name="ColorTable26" type="dword" data="0000ff00"/>
<value name="ColorTable27" type="dword" data="00ffff00"/>
<value name="ColorTable28" type="dword" data="000000ff"/>
<value name="ColorTable29" type="dword" data="00ff00ff"/>
<value name="ColorTable30" type="dword" data="0000ffff"/>
<value name="ColorTable31" type="dword" data="00ffffff"/>
</key>
<key name="Palette3" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="moe-dark"/>
<value name="ExtendColors" type="hex" data="00"/>
<value name="ExtendColorIdx" type="hex" data="0E"/>
<value name="TextColorIdx" type="hex" data="10"/>
<value name="BackColorIdx" type="hex" data="10"/>
<value name="PopTextColorIdx" type="hex" data="10"/>
<value name="PopBackColorIdx" type="hex" data="10"/>
<value name="ColorTable00" type="dword" data="00181818"/>
<value name="ColorTable01" type="dword" data="00ff5b1f"/>
<value name="ColorTable02" type="dword" data="0000ffaf"/>
<value name="ColorTable03" type="dword" data="00ffff87"/>
<value name="ColorTable04" type="dword" data="002929ef"/>
<value name="ColorTable05" type="dword" data="00ff8ad1"/>
<value name="ColorTable06" type="dword" data="000097ff"/>
<value name="ColorTable07" type="dword" data="00ffffff"/>
<value name="ColorTable08" type="dword" data="00999999"/>
<value name="ColorTable09" type="dword" data="00fda039"/>
<value name="ColorTable10" type="dword" data="0000dba1"/>
<value name="ColorTable11" type="dword" data="00afd700"/>
<value name="ColorTable12" type="dword" data="004b4bff"/>
<value name="ColorTable13" type="dword" data="00a34eff"/>
<value name="ColorTable14" type="dword" data="007be6f4"/>
<value name="ColorTable15" type="dword" data="00e7fdfd"/>
<value name="ColorTable16" type="dword" data="00000000"/>
<value name="ColorTable17" type="dword" data="00000080"/>
<value name="ColorTable18" type="dword" data="00008000"/>
<value name="ColorTable19" type="dword" data="00008080"/>
<value name="ColorTable20" type="dword" data="00800000"/>
<value name="ColorTable21" type="dword" data="00800080"/>
<value name="ColorTable22" type="dword" data="00808000"/>
<value name="ColorTable23" type="dword" data="00c0c0c0"/>
<value name="ColorTable24" type="dword" data="00808080"/>
<value name="ColorTable25" type="dword" data="000000ff"/>
<value name="ColorTable26" type="dword" data="0000ff00"/>
<value name="ColorTable27" type="dword" data="0000ffff"/>
<value name="ColorTable28" type="dword" data="00ff0000"/>
<value name="ColorTable29" type="dword" data="00ff00ff"/>
<value name="ColorTable30" type="dword" data="00ffff00"/>
<value name="ColorTable31" type="dword" data="00ffffff"/>
</key>
<key name="Palette4" modified="2018-02-19 17:55:52" build="180206">
<value name="Name" type="string" data="Monokai Edited"/>
<value name="ExtendColors" type="hex" data="00"/>
<value name="ExtendColorIdx" type="hex" data="0E"/>
<value name="TextColorIdx" type="hex" data="10"/>
<value name="BackColorIdx" type="hex" data="10"/>
<value name="PopTextColorIdx" type="hex" data="10"/>
<value name="PopBackColorIdx" type="hex" data="10"/>
<value name="ColorTable00" type="dword" data="00121212"/>
<value name="ColorTable01" type="dword" data="00e77901"/>
<value name="ColorTable02" type="dword" data="0004aa74"/>
<value name="ColorTable03" type="dword" data="00a6831a"/>
<value name="ColorTable04" type="dword" data="003403a7"/>
<value name="ColorTable05" type="dword" data="009c5689"/>
<value name="ColorTable06" type="dword" data="0049b6b6"/>
<value name="ColorTable07" type="dword" data="00cacaca"/>
<value name="ColorTable08" type="dword" data="007c7c7c"/>
<value name="ColorTable09" type="dword" data="00fda039"/>
<value name="ColorTable10" type="dword" data="0006d08d"/>
<value name="ColorTable11" type="dword" data="00e5c258"/>
<value name="ColorTable12" type="dword" data="004b04f3"/>
<value name="ColorTable13" type="dword" data="00b87da8"/>
<value name="ColorTable14" type="dword" data="0081cccc"/>
<value name="ColorTable15" type="dword" data="00ffffff"/>
<value name="ColorTable16" type="dword" data="00000000"/>
<value name="ColorTable17" type="dword" data="00800000"/>
<value name="ColorTable18" type="dword" data="00008000"/>
<value name="ColorTable19" type="dword" data="00808000"/>
<value name="ColorTable20" type="dword" data="00000080"/>
<value name="ColorTable21" type="dword" data="00800080"/>
<value name="ColorTable22" type="dword" data="00008080"/>
<value name="ColorTable23" type="dword" data="00c0c0c0"/>
<value name="ColorTable24" type="dword" data="00808080"/>
<value name="ColorTable25" type="dword" data="00ff0000"/>
<value name="ColorTable26" type="dword" data="0000ff00"/>
<value name="ColorTable27" type="dword" data="00ffff00"/>
<value name="ColorTable28" type="dword" data="000000ff"/>
<value name="ColorTable29" type="dword" data="00ff00ff"/>
<value name="ColorTable30" type="dword" data="0000ffff"/>
<value name="ColorTable31" type="dword" data="00ffffff"/>
</key>
</key>
</key>
</key>
</key>

1
PowerShell/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
local.ps1

View File

@ -0,0 +1,20 @@
#default encoding for dconsole
[Console]::OutputEncoding = New-Object -typename System.Text.UTF8Encoding
[Console]::InputEncoding = New-Object -typename System.Text.UTF8Encoding
Import-Module posh-git
Import-Module php
$__dir__ = $(Get-Item $profile).Directory;
. "$__dir__\functions.ps1"
. "$__dir__\aliases.ps1"
. "$__dir__\prompt.ps1"
if (Test-Path "$__dir__\local.ps1") {
. "$__dir__\local.ps1" # load local configuration if needed
}
$global:admin = Test-IsAdmin
Set-PSReadlineOption -HistoryNoDuplicates

4
PowerShell/Modules/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
/*
!.gitignore
!php

Binary file not shown.

View File

@ -0,0 +1,51 @@
$script:versions = @{ }
function Add-PhpVersion {
[CmdletBinding()]
param(
[Parameter(Position=0, Mandatory=$true)]
[Alias('Ver', 'Php')]
[string]
$Version,
[Parameter(Position=1, Mandatory=$true)]
[string]
$Path,
[Parameter(Mandatory=$false)]
[switch]
$Set = $false
)
$php = Join-Path $Path 'php.exe'
if (-not (Test-Path $php)) {
Write-Error "PHP is not installed in that directory, maybe you have misspeled that?"
return
}
$script:versions[$Version] = $Path;
if ($Set) {
Set-PhpVersion $Version
}
}
function Set-PhpVersion {
[CmdletBinding()]
param(
[Parameter(Position=0)]
[string]
$Version
);
if (-not $script:versions.ContainsKey($Version)) {
Write-Error "You have not declared $Version to be installed, maybe you should call Add-PhpVersion?"
return
}
$env:Path = (@($env:Path -split ';' | Where-Object { (-not $script:versions.ContainsKey($_)) -and $_ }) + @($script:versions[$Version])) -join ';'
$env:PHP_VER = $Version;
Write-Output "PHP Version set to $Version installed in $($script:versions[$Version])"
}

2
PowerShell/Scripts/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

21
PowerShell/aliases.ps1 Normal file
View File

@ -0,0 +1,21 @@
# APPS
Set-Alias python3 "C:\Users\k_don\AppData\Local\Programs\Python\Python35\python.exe"
Set-Alias sharex "C:\Program Files\ShareX\ShareX.exe"
# Aliases
Set-Alias composer Run-Composer
Set-Alias dep Run-Deployer
Set-Alias phpmd Run-PhpMD
Set-Alias box Run-Box
Set-Alias symfony Run-Symfony
Set-Alias artisan Start-Artisan
Set-Alias ofe Open-FileExplorer
Set-Alias upf Upload-File
Set-Alias sajbh Start-JobHere
Set-Alias notify Show-Notification
Set-Alias vim "C:\Program Files (x86)\Vim\vim80\vim.exe"
Set-Alias gvim "C:\Program Files (x86)\Vim\vim80\gvim.exe"

217
PowerShell/functions.ps1 Normal file
View File

@ -0,0 +1,217 @@
function Test-IsAdmin {
try {
$identity = [Security.Principal.WindowsIdentity]::GetCurrent()
$principal = New-Object Security.Principal.WindowsPrincipal -ArgumentList $identity
return $principal.IsInRole( [Security.Principal.WindowsBuiltInRole]::Administrator )
} catch {
throw "Failed to determine if the current user has elevated privileges. The error was: '{0}'." -f $_
}
<#
.SYNOPSIS
Checks if the current Powershell instance is running with elevated privileges or not.
.EXAMPLE
PS C:\> Test-IsAdmin
.OUTPUTS
System.Boolean
True if the current Powershell is elevated, false if not.
#>
}
function Pick-One {
[CmdletBinding()]
param(
[String[]]$options
);
$rand = Get-Random -Minimum 0 -Maximum $options.Length;
foreach ($option in $options) {
if($option -eq $options[$rand]) {
Write-Host -ForegroundColor Green '=> ' $option;
} else {
Write-Host ' ' $option -ForegroundColor DarkGray;
}
}
}
function Prepend-LineNumbers {
[CmdletBinding()]
param(
[Parameter(ValueFromPipeline=$true)]$input,
[int]$pad = 4
);
$line = 0;
$input | % {
$line++;
$line.ToString().PadLeft($pad, ' ') + " $_"
}
}
function Fix-Colors {
[System.Console]::ForegroundColor = [System.ConsoleColor]::White;
[System.Console]::BackgroundColor = [System.ConsoleColor]::Black;
$escape = [char]27
echo "$escape[0m"
}
function Upload-File {
param([string]$Path)
sharex $(Resolve-Path $Path)
}
function Set-VsVars
{
[CmdletBinding()]
param(
[Parameter(Mandatory=$true, HelpMessage="Enter VS version as 2010, 2012, 2013, 2015, 2017, 2017-BuildTools")]
[ValidateSet(2010,2012,2013,2015,2017,'2017-BuildTools')]
[string]$Version,
[Parameter(Mandatory=$false, HelpMessage="Architecture either x64, x86 or arm (2017 only)")]
[Alias('Arch')]
[ValidateSet('x64', 'x86', 'arm')]
[string]$Architecture
)
$VS_VERSION = @{
2010 = " 10.0";
2012 = " 11.0";
2013 = " 12.0";
2015 = " 14.0";
2017 = "\2017\Community";
'2017-BuildTools' = '\2017\BuildTools'
}
if($version -ge 2015)
{
$targetDir = "c:\Program Files (x86)\Microsoft Visual Studio$($VS_VERSION[$version])\Common7\Tools"
$vcvars = "VsDevCmd.bat"
if ($Architecture) {
$params = ' -arch=' + $Architecture
}
}
else
{
$targetDir = "c:\Program Files (x86)\Microsoft Visual Studio$($VS_VERSION[$version])\VC"
$vcvars = "vcvarsall.bat"
if($Architecture -eq 'x64') {
$Architecture = 'x86_64';
}
if ($Architecture) {
$params = ' ' + $Architecture
}
}
if (!(Test-Path (Join-Path $targetDir $vcvars))) {
"Error: Visual Studio $version not installed"
return
}
$command = $vcvars + $params
pushd $targetDir
Write-Verbose "$command & set"
cmd /c "$command & set" | % {
if ($_ -match "(.*?)=(.*)") {
Write-Verbose $_
Set-Item -force -path "ENV:\$($matches[1])" -value "$($matches[2])"
}
}
popd
write-host "`nVisual Studio $version Command Prompt variables set." -ForegroundColor Yellow
}
function Import-VariablesFromCmd
{
[CmdletBinding()]
param([string]$path)
cmd /c $path + "&set" | % {
if ($_ -match "(.*?)=(.*)") {
Write-Verbose $_
Set-Item -force -path "ENV:\$($matches[1])" -value "$($matches[2])"
}
}
}
# not working, will get fixed eventually
function Out-PasteBin
{
[CmdletBinding()]
param(
[Parameter(
Position=0,
ValueFromPipeline=$true,
parametersetname='nopipeline'
)][string] $File,
[Parameter(
Position=1,
ValueFromPipelineByPropertyName=$true
)][string] $Language,
[Parameter(
ValueFromPipelineByPropertyName=$true
)][string] $Author,
[Parameter(
ValueFromPipelineByPropertyName=$true
)][string] $Title,
[Parameter(
ValueFromPipelineByPropertyName=$true
)][string] $Key = $global:PastebinKey
)
Begin {
$pipeline = -not ($PSCmdlet.ParameterSetName -eq 'nopipeline');
}
Process {
$Source += $_ + "`n";
}
End {
$paste = if ($pipeline) { $Source } else { cat $File | Out-String }
return (Invoke-WebRequest bin.kadet.net -Method Post -MaximumRedirection 0 -ErrorAction SilentlyContinue -Body @{
author=$Author;
key=$Key;
title=$Title;
language=$Language;
paste=$paste;
})
}
}
function ~ {
cd ~ @args;
}
function .. {
cd .. @args;
}
function Run-Box {
php '-dphar.readonly=0' "D:\Software\box.phar" @args;
}
function Run-Symfony {
$path = if (Test-Path ./bin/console) { "./bin/console" }
elseif (Test-Path ./app/console) { "./app/console" }
else { throw "oh die" };
php $path @args;
}
function Run-Artisan {
php artisan @args;
}

103
PowerShell/prompt.ps1 Normal file
View File

@ -0,0 +1,103 @@
$script:bg = [Console]::BackgroundColor;
$script:fg = [System.ConsoleColor]::White;
$script:first = $true;
$script:last = 0;
$global:PromptReplacementDirs = @{
$env:USERPROFILE = '~';
}
function Write-PromptFancyEnd {
Write-Host -NoNewline -ForegroundColor $script:fg
$script:bg = [System.ConsoleColor]::Black
$script:fg = [System.ConsoleColor]::White
}
function Write-PromptSegment {
param(
[Parameter(
Position=0,
Mandatory=$true,
ValueFromPipeline=$true,
ValueFromPipelineByPropertyName=$true
)][string]$Text,
[Parameter(Position=1)][System.ConsoleColor] $Foreground = [System.ConsoleColor]::White,
[Parameter(Position=2)][System.ConsoleColor] $Background = [Console]::BackgroundColor,
[switch] $NoSegment
)
Write-Host $text -NoNewline -BackgroundColor $Background -ForegroundColor $Foreground
if (-not $NoSegment) {
Write-Host -NoNewline -BackgroundColor $Background -ForegroundColor $Foreground
}
$script:bg = $Background;
$script:fg = $Foreground;
}
function Get-FancyDir {
$location = $(Get-Location).ToString();
foreach($replacement in $global:PromptReplacementDirs.GetEnumerator()) {
$location = $location.Replace($replacement.Name, $replacement.Value);
}
return $location.Replace('\', '  ');
}
function Get-GitBranch {
$HEAD = Get-Content $(Join-Path $(Get-GitDirectory) HEAD)
if($HEAD -like 'ref: refs/heads/*') {
return $HEAD -replace 'ref: refs/heads/(.*?)', "$1";
} else {
return $HEAD.Substring(0, 8);
}
}
function Write-PromptStatus {
if($script:last) {
Write-PromptSegment ' ✔ ' Green
} else {
Write-PromptSegment "$lastexitcode " Red
}
}
function Write-PromptUser {
if($global:admin) {
Write-PromptSegment ' ADMIN ' Red
}
}
function Write-PromptVirtualEnv {
if($env:VIRTUAL_ENV) {
Write-PromptSegment " $(split-path $env:VIRTUAL_ENV -leaf) " Cyan
}
}
function Write-PromptDir {
Write-PromptSegment " $(Get-FancyDir) " DarkGray -NoSegment
}
# Depends on posh-git
function Write-PromptGit {
if(Get-GitDirectory) {
Write-PromptSegment "$(Get-GitBranch) " Blue
}
}
function prompt {
$script:last = $?;
$script:first = $true;
Write-PromptStatus
Write-PromptUser
Write-PromptVirtualEnv
Write-PromptGit
Write-PromptDir
Write-PromptFancyEnd
return ' '
}

18
install.ps1 Normal file
View File

@ -0,0 +1,18 @@
# install vim-plug
md ~\vimfiles\autoload
$uri = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
(New-Object Net.WebClient).DownloadFile(
$uri,
$ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath(
"~\vimfiles\autoload\plug.vim"
)
)
# create symlinks
New-Item -Type SymbolicLink -Path ~/.vimrc -Value $(Join-Path $PSScriptRoot .vimrc)
New-Item -Type SymbolicLink -Path ~/.ideavimrc -Value $(Join-Path $PSScriptRoot .ideavimrc)
New-Item -Type SymbolicLink -Path ~/.gitconfig -Value $(Join-Path $PSScriptRoot .gitconfig)
New-Item -Type SymbolicLink -Path ~/Documents/PowerShell/ -Value $(Join-Path $PSScriptRoot PowerShell)
# install modules
Install-Module posh-git