Giter Site home page Giter Site logo

dotfiles's Introduction

dotfiles

curl -o- https://raw.githubusercontent.com/msrose/dotfiles/master/install.sh | bash

dotfiles's People

Contributors

msrose avatar

Watchers

 avatar  avatar  avatar  avatar

dotfiles's Issues

VSCode settings.json

{
    "[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"
}

IDEA vimrc (IntelliJ)

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

SSH config for Sierra+

Host *
 AddKeysToAgent yes
 UseKeychain yes
 IdentityFile ~/.ssh/id_rsa

Possibly only needed for ssh keys with passphrases

zsh config

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

Git pager config

Possibly needed with zsh?

git config --global core.pager "less -X -F"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.