/dotfiles

Primary LanguageVim Script

dotfiles

Pre-Install

  1. Install oh-my-zsh

  2. Install powerlevel9k

  3. Install awesome-terminal-fonts

  4. Install tpm

Install

  1. Git Clone in your home dir

    git clone git@github.com:kinyat/dotfiles.git
  2. Simply symlink the dotfile you want

    ln -s ~/dotfiles/.vimrc
    ln -s ~/dotfiles/.tmux.conf
    ln -s ~/dotfiles/.zshrc
    ln -s ~/dotfiles/.ackrc
  3. Make your terminal to run the following script when opening

    # Mac iTerm2
    tmux ls && read tmux_session && tmux -2 attach -t ${tmux_session:-default} || tmux -2 new -s ${tmux_session:-default}
    
    # Ubuntu Terminal
    sh -c "tmux ls && read tmux_session && tmux -2 attach -t ${tmux_session:-default} || tmux -2 new -s ${tmux_session:-default}"
  4. To make clipboard works in Ubuntu

    sudo apt install -y vim-gtk xclip
  5. Custom setting for Mac in Tmux

    # edit .tmux.conf and uncomment the following
    set -g default-command "reattach-to-user-namespace -l ${SHELL}"
  6. Insatll YouCompleteMe

  7. Install Tmux TPM plugins (see: https://github.com/tmux-plugins/tpm#key-bindings)

    In Tmux: prefix + I