curl -o- https://raw.githubusercontent.com/msrose/dotfiles/master/install.sh | bash
msrose / dotfiles Goto Github PK
View Code? Open in Web Editor NEWPraise the sun \[T]/
Praise the sun \[T]/
set -g @plugin 'tmux-plugins/tmux-resurrect'
run '~/.tmux/plugins/tpm/tpm'
set -g mouse on
TPM: https://github.com/tmux-plugins/tpm#installation
Resurrect: https://github.com/tmux-plugins/tmux-resurrect#installation-with-tmux-plugin-manager-recommended
alias __git_ps1="git branch 2>/dev/null | grep '*' | sed 's/* \(.*\)/(\1)/'"
{
"[python]": {
"editor.formatOnType": true
},
"githubPullRequests.pullBranch": "never",
"vim.vimrc.enable": true,
"vim.commandLineModeKeyBindings": [],
"vim.normalModeKeyBindings": [
{
"before": ["<leader>", "n"],
"commands": [
"workbench.action.toggleSidebarVisibility",
"workbench.files.action.showActiveFileInExplorer"
]
},
{
"before": ["<leader>", "p"],
"commands": [
"eslint.executeAutofix"
]
},
{
"before": ["<C-p>"],
"commands": [
"workbench.action.quickOpen"
]
},
{
"before": ["<C-n>"],
"commands": [
"workbench.action.toggleSidebarVisibility",
"workbench.action.focusSideBar"
]
},
{
"before": ["]", "l"],
"commands": [
"editor.action.marker.next"
]
},
{
"before": ["[", "l"],
"commands": [
"editor.action.marker.prev"
]
},
{
"before": ["<leader>", "t"],
"commands": [
"workbench.action.terminal.toggleTerminal"
]
}
],
"editor.wordWrap": "off",
"eslint.workingDirectories": [
{"mode": "auto"}
],
"githubPullRequests.terminalLinksHandler": "github",
"extensions.ignoreRecommendations": true,
"files.autoSave": "afterDelay",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.trimTrailingWhitespace": true,
"workbench.startupEditor": "none",
"git.openRepositoryInParentFolders": "never"
}
inoremap jj <Esc>
nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;
nnoremap j gj
nnoremap k gk
nnoremap <C-j> <C-w><C-j>
nnoremap <C-k> <C-w><C-k>
nnoremap <C-h> <C-w><C-h>
nnoremap <C-l> <C-w><C-l>
nnoremap Y y$
nnoremap gcc :action CommentByLineComment<CR>
vnoremap gc :action CommentByLineComment<CR>
nnoremap ]l :action GotoNextError<CR>
nnoremap [l :action GotoPreviousError<CR>
nnoremap <leader>n :action SelectInProjectView<CR>
nnoremap <leader>ws :action BlackCaiman.SyncFromWorkspace<CR>
nnoremap <C-p> :action GotoFile<CR>
nnoremap <C-b> :action RecentFiles<CR>
set ignorecase
set smartcase
set incsearch
set hlsearch
nnoremap cs'" F'r"f'r"
nnoremap cs"' F"r'f"r'
nnoremap ds' F'xf'x
nnoremap ds" F"xf"x
I never remember how to do this without going to https://help.github.com/articles/connecting-to-github-with-ssh/
Just use github CLI:
brew install gh
gh auth login
And it will give you the option to generate your SSH key if needed, and upload your public key to github
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
Possibly only needed for ssh keys with passphrases
alias zshconfig="vim ~/.zshrc"
alias ohmyzsh="vim ~/.oh-my-zsh"
integral="%(?:%{$fg_bold[green]%}∫:%{$fg_bold[red]%}∫)"
export PROMPT="$integral %{$fg[cyan]%}%n%{$reset_color%}%(1j: (%j):) %{$fg[cyan]%}%~%{$reset_color%} "
PROMPT+='$(git_prompt_info)'
PROMPT+="$integral%{$reset_color%}"$'\n'"Σ "
export NVM_DIR="/Users/michael/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
export YVM_DIR=/Users/michael/.yvm
[ -r $YVM_DIR/yvm.sh ] && . $YVM_DIR/yvm.sh
autoload -U add-zsh-hook
load-nvmrc() {
local node_version="$(nvm version)"
local nvmrc_path="$(nvm_find_nvmrc)"
if [ -n "$nvmrc_path" ]; then
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")
if [ "$nvmrc_node_version" = "N/A" ]; then
nvm install
elif [ "$nvmrc_node_version" != "$node_version" ]; then
nvm use
fi
elif [ "$node_version" != "$(nvm version default)" ]; then
echo "Reverting to nvm default version"
nvm use default
fi
}
add-zsh-hook chpwd load-nvmrc
load-nvmrc
https://github.com/universal-ctags/ctags
Brew tap: https://github.com/universal-ctags/homebrew-universal-ctags
Mac install: brew install --HEAD universal-ctags/universal-ctags/universal-ctags
Latest ctags: brew install universal-ctags
Possibly needed with zsh?
git config --global core.pager "less -X -F"
If Mac: brew install bash-completion
set -o vi
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.