Switched to Zsh and consolidated all aliases
Resolves #21 and closes #30. Combined all alias files, converted them into proper Zsh formatting and reorganized them into better sections. Installed Oh My Zsh and then sourced the combined aliases file (zsh_aliases) from .zshrc. Also made URL's clickable in urxvt and briefly commented purpose of all Vim plug-ins.
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
URxvt.font: xft:hack:size=11
|
||||
|
||||
/* transparency {{{ */
|
||||
URxvt*inheritPixmap: true
|
||||
URxvt*transparent: true
|
||||
! URxvt*shading: 0 to 99 darkens, 101 to 200 lightens
|
||||
URxvt*shading: 20
|
||||
URxvt*shading: 10
|
||||
/* }}} transparency */
|
||||
|
||||
URxvt.scrollBar: false
|
||||
|
||||
/* Clickable URLs {{{ */
|
||||
URxvt.perl-ext-common: default,matcher
|
||||
URxvt.url-launcher: /usr/bin/xdg-open
|
||||
URxvt.matcher.button: 1
|
||||
/* }}} Clickable URLs */
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Get directory variables from script.
|
||||
. ../dirs.sh
|
||||
# List of dotfiles I want to link to system.
|
||||
dotfiles="bashrc gitconfig inputrc vimrc Xresources"
|
||||
dotfiles="bashrc gitconfig inputrc vimrc Xresources zshrc"
|
||||
# cd $dot_dir
|
||||
for dotfile in $dotfiles; do
|
||||
# Remove system dotfile.
|
||||
|
||||
@@ -35,46 +35,82 @@ if empty(glob('~/.vim/autoload/plug.vim'))
|
||||
endif
|
||||
call plug#begin('~/.vim/plugged')
|
||||
|
||||
" prequisite for other plugins
|
||||
Plug 'vim-scripts/L9'
|
||||
|
||||
" find files from within Vim
|
||||
" Plug 'vim-scripts/FuzzyFinder'
|
||||
Plug 'whatyouhide/vim-gotham'
|
||||
|
||||
" Gotham color scheme
|
||||
" Plug 'whatyouhide/vim-gotham'
|
||||
|
||||
" collection of Vim color schemes
|
||||
Plug 'flazz/vim-colorschemes'
|
||||
|
||||
" preview Vim color scheme easily within Vim
|
||||
Plug 'xolox/vim-colorscheme-switcher'
|
||||
" prerequisite for above plugin
|
||||
Plug 'xolox/vim-misc'
|
||||
|
||||
" automatically save buffers upon returning to normal mode
|
||||
Plug '907th/vim-auto-save'
|
||||
let g:auto_save = 1
|
||||
|
||||
" compile LaTeX PDF while writing the file
|
||||
Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' }
|
||||
|
||||
" provides various functionality for writing LaTeX in Vim
|
||||
Plug 'lervag/vimtex'
|
||||
|
||||
" auto-completion for various languages
|
||||
Plug 'Valloric/YouCompleteMe'
|
||||
Plug 'Kevin-Mok/vim-snippets'
|
||||
|
||||
" wrote short bits of text that expand into whatever you want
|
||||
" demo: https://www.youtube.com/watch?v=Zik6u0klD40
|
||||
Plug 'SirVer/ultisnips'
|
||||
" better key bindings for UltiSnipsExpandTrigger
|
||||
let g:UltiSnipsExpandTrigger = "<tab>"
|
||||
let g:UltiSnipsJumpForwardTrigger = "<tab>"
|
||||
let g:UltiSnipsJumpBackwardTrigger = "<C-tab>"
|
||||
|
||||
" custom snippets
|
||||
Plug 'Kevin-Mok/vim-snippets'
|
||||
|
||||
" to make YouCompleteMe work with UltiSnips (both use Tab)
|
||||
Plug 'ervandew/supertab'
|
||||
" make YCM compatible with UltiSnips (using supertab)
|
||||
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
|
||||
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
|
||||
let g:SuperTabDefaultCompletionType = '<C-n>'
|
||||
|
||||
" easily comment/uncomment lines
|
||||
Plug 'scrooloose/nerdcommenter'
|
||||
let g:NERDTrimTrailingWhitespace = 1
|
||||
let g:NERDSpaceDelims = 1
|
||||
Plug 'xolox/vim-misc'
|
||||
Plug 'xolox/vim-colorscheme-switcher'
|
||||
|
||||
" add quotes/brackets around chunks of text easily
|
||||
Plug 'tpope/vim-surround'
|
||||
|
||||
" navigate around file easily and precisely
|
||||
Plug 'easymotion/vim-easymotion'
|
||||
|
||||
" status bar displaying various info about the current buffer
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
Plug 'dkarter/bullets.vim'
|
||||
Plug 'dylanaraps/wal.vim'
|
||||
" }}} vim-plug "
|
||||
|
||||
" YCM/UltiSnips {{{ "
|
||||
" make YCM compatible with UltiSnips (using supertab)
|
||||
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
|
||||
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
|
||||
let g:SuperTabDefaultCompletionType = '<C-n>'
|
||||
" better key bindings for UltiSnipsExpandTrigger
|
||||
let g:UltiSnipsExpandTrigger = "<tab>"
|
||||
let g:UltiSnipsJumpForwardTrigger = "<tab>"
|
||||
let g:UltiSnipsJumpBackwardTrigger = "<C-tab>"
|
||||
" }}} YCM/UltiSnips "
|
||||
" continue Markdown lists when started
|
||||
Plug 'dkarter/bullets.vim'
|
||||
|
||||
" coordinate Vim color scheme with terminal color scheme
|
||||
Plug 'dylanaraps/wal.vim'
|
||||
|
||||
call plug#end()
|
||||
|
||||
" colorscheme gotham256
|
||||
colorscheme wal
|
||||
|
||||
" }}} vim-plug "
|
||||
|
||||
" Mappings {{{ "
|
||||
map <F3> :wa<CR>
|
||||
map <F4> :wqa<CR>
|
||||
|
||||
95
dotfiles/zshrc
Normal file
95
dotfiles/zshrc
Normal file
@@ -0,0 +1,95 @@
|
||||
# If you come from bash you might have to change your $PATH.
|
||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||
|
||||
# Path to your oh-my-zsh installation.
|
||||
export ZSH=/home/kevin/.oh-my-zsh
|
||||
|
||||
# Set name of the theme to load. Optionally, if you set this to "random"
|
||||
# it'll load a random theme each time that oh-my-zsh is loaded.
|
||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
||||
ZSH_THEME="muse"
|
||||
|
||||
# Set list of themes to load
|
||||
# Setting this variable when ZSH_THEME=random
|
||||
# cause zsh load theme from this variable instead of
|
||||
# looking in ~/.oh-my-zsh/themes/
|
||||
# An empty array have no effect
|
||||
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
||||
|
||||
# Uncomment the following line to use case-sensitive completion.
|
||||
# CASE_SENSITIVE="true"
|
||||
|
||||
# Uncomment the following line to use hyphen-insensitive completion. Case
|
||||
# sensitive completion must be off. _ and - will be interchangeable.
|
||||
# HYPHEN_INSENSITIVE="true"
|
||||
|
||||
# Uncomment the following line to disable bi-weekly auto-update checks.
|
||||
# DISABLE_AUTO_UPDATE="true"
|
||||
|
||||
# Uncomment the following line to change how often to auto-update (in days).
|
||||
# export UPDATE_ZSH_DAYS=13
|
||||
|
||||
# Uncomment the following line to disable colors in ls.
|
||||
# DISABLE_LS_COLORS="true"
|
||||
|
||||
# Uncomment the following line to disable auto-setting terminal title.
|
||||
# DISABLE_AUTO_TITLE="true"
|
||||
|
||||
# Uncomment the following line to enable command auto-correction.
|
||||
# ENABLE_CORRECTION="true"
|
||||
|
||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||
# COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
# Uncomment the following line if you want to disable marking untracked files
|
||||
# under VCS as dirty. This makes repository status check for large repositories
|
||||
# much, much faster.
|
||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||
|
||||
# Uncomment the following line if you want to change the command execution time
|
||||
# stamp shown in the history command output.
|
||||
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||
# HIST_STAMPS="mm/dd/yyyy"
|
||||
|
||||
# Would you like to use another custom folder than $ZSH/custom?
|
||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||
|
||||
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
plugins=(
|
||||
git
|
||||
)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
source ~/linux-config/aliases/zsh_aliases
|
||||
|
||||
# User configuration
|
||||
|
||||
# export MANPATH="/usr/local/man:$MANPATH"
|
||||
|
||||
# You may need to manually set your language environment
|
||||
# export LANG=en_US.UTF-8
|
||||
|
||||
# Preferred editor for local and remote sessions
|
||||
# if [[ -n $SSH_CONNECTION ]]; then
|
||||
# export EDITOR='vim'
|
||||
# else
|
||||
# export EDITOR='mvim'
|
||||
# fi
|
||||
|
||||
# Compilation flags
|
||||
# export ARCHFLAGS="-arch x86_64"
|
||||
|
||||
# ssh
|
||||
# export SSH_KEY_PATH="~/.ssh/rsa_id"
|
||||
|
||||
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
||||
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
||||
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
||||
# For a full list of active aliases, run `alias`.
|
||||
#
|
||||
# Example aliases
|
||||
# alias zshconfig="mate ~/.zshrc"
|
||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||
Reference in New Issue
Block a user