msuriar / dotfiles Goto Github PK
View Code? Open in Web Editor NEWbash, zsh, screen and vim dotfiles that I've put together to do some useful things.
bash, zsh, screen and vim dotfiles that I've put together to do some useful things.
As above. Roughly:
Alias
http://items.sjbach.com/319/configuring-vim-right
" Random stuff to be merged back into git
set title
set hidden
nnoremap ' nnoremap
'
let mapleader = ","
nmap j :LustyJuggler
nmap n :set number! number?
nmap h :set hlsearch! hlsearch?
nmap l :set list! list?
Currently doing | tmux loadb -
a lot.
https://github.com/zsh-users/zsh-syntax-highlighting
Probably just use whichever distribution specific packages do the right thing.
Because it's 2019, and I'm tired of syntax highlighting in vim breaking periodically.
let g:markdown_folding = 1
require('lspconfig').pylsp.setup{
settings = {
pylsp = {
plugins = {
pycodestyle = {
maxLineLength = 88
}
}
}
}
}
This is chosen to be consistent with https://github.com/psf/black
Learn how they work. Update configuration if need be. ZSH? Vim?
tm.l or something.
Currently prompt rendering takes a second or so.
Several silly things going on, mostly dominated by version control cleverness.
update_vcs_vars
three times per prompt rendered.
preexec_functions
and chpwd_functions
in_git_repo
/in_hg_repo
are currently functions calling hg
/git
respectively.
% zprof
num calls time self name
-----------------------------------------------------------------------------------
1) 5 967.41 193.48 81.38% 967.41 193.48 81.38% in_hg_repo
2) 5 89.57 17.91 7.53% 89.57 17.91 7.53% in_git_repo
3) 1 113.05 113.05 9.51% 61.06 61.06 5.14% compinit
4) 2 52.00 26.00 4.37% 52.00 26.00 4.37% compaudit
5) 6 11.96 1.99 1.01% 10.82 1.80 0.91% source_if_readable
6) 2 4.40 2.20 0.37% 4.40 2.20 0.37% promptinit
7) 5 1058.57 211.71 89.05% 1.23 0.25 0.10% zsh_update_vcs_vars
8) 6 1.14 0.19 0.10% 1.14 0.19 0.10% compdef
9) 1 0.78 0.78 0.07% 0.78 0.78 0.07% bashcompinit
10) 5 0.37 0.07 0.03% 0.37 0.07 0.03% zsh_clear_vcs_vars
-----------------------------------------------------------------------------------
7) 5 1058.57 211.71 89.05% 1.23 0.25 0.10% zsh_update_vcs_vars
5/5 0.37 0.07 0.03% 0.37 0.07 zsh_clear_vcs_vars [10]
5/5 89.57 17.91 7.53% 89.57 17.91 in_git_repo [2]
5/5 967.41 193.48 81.38% 967.41 193.48 in_hg_repo [1]
-----------------------------------------------------------------------------------
5/5 967.41 193.48 81.38% 967.41 193.48 zsh_update_vcs_vars [7]
1) 5 967.41 193.48 81.38% 967.41 193.48 81.38% in_hg_repo
-----------------------------------------------------------------------------------
3) 1 113.05 113.05 9.51% 61.06 61.06 5.14% compinit
1/2 52.00 52.00 4.37% 1.36 1.36 compaudit [4]
-----------------------------------------------------------------------------------
5/5 89.57 17.91 7.53% 89.57 17.91 zsh_update_vcs_vars [7]
2) 5 89.57 17.91 7.53% 89.57 17.91 7.53% in_git_repo
-----------------------------------------------------------------------------------
1/2 52.00 52.00 4.37% 1.36 1.36 compinit [3]
1/2 50.64 50.64 4.26% 50.64 50.64 compaudit [4]
4) 2 52.00 26.00 4.37% 52.00 26.00 4.37% compaudit
1/2 50.64 50.64 4.26% 50.64 50.64 compaudit [4]
-----------------------------------------------------------------------------------
1/6 2.23 2.23 0.19% 1.34 1.34 source_if_readable [5]
5) 6 11.96 1.99 1.01% 10.82 1.80 0.91% source_if_readable
6/6 1.14 0.19 0.10% 1.14 0.19 compdef [8]
1/6 2.23 2.23 0.19% 1.34 1.34 source_if_readable [5]
-----------------------------------------------------------------------------------
1/2 3.62 3.62 0.30% 3.62 3.62 promptinit [6]
6) 2 4.40 2.20 0.37% 4.40 2.20 0.37% promptinit
1/2 3.62 3.62 0.30% 3.62 3.62 promptinit [6]
-----------------------------------------------------------------------------------
6/6 1.14 0.19 0.10% 1.14 0.19 source_if_readable [5]
8) 6 1.14 0.19 0.10% 1.14 0.19 0.10% compdef
-----------------------------------------------------------------------------------
9) 1 0.78 0.78 0.07% 0.78 0.78 0.07% bashcompinit
-----------------------------------------------------------------------------------
5/5 0.37 0.07 0.03% 0.37 0.07 zsh_update_vcs_vars [7]
10) 5 0.37 0.07 0.03% 0.37 0.07 0.03% zsh_clear_vcs_vars
So that $PWD/foo isn't needed. td=.... ?
Ideally, all top 10 commands should be... 3 chars or less? 2? 1 is a stretch.
Obvious candidate:
https://github.com/ervandew/supertab
And get rid of the basic thing robbed from garybernhardt's vimrc.
MANWIDTH=80
MANPAGER
https://github.com/junegunn/limelight.vim
let g:limelight_conceal_ctermfg = 245 " Solarized Base1
let g:limelight_conceal_guifg = '#8a8a8a' " Solarized Base1
This looks pretty epic.
http://codys.club/blog/2015/07/07/managing-your-dotfiles-with-gnu-stow/
http://brandon.invergo.net/news/2012-05-26-using-gnu-stow-to-manage-your-dotfiles.html
https://alexpearce.me/2016/02/managing-dotfiles-with-stow/
Probably just want to create a "stow" directory with a bunch of relative symlinks, and then do "stow stow".
Turns out hg branches aren't actually useful, so why bother using them?
Need an 'else' clause in the tmux/screen aliases too? Bleh.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.