Browse Source

Merge branch 'master' of https://github.com/Kevin-Mok/linux-config

red-hat-laptop
Kevin Mok 7 years ago
parent
commit
33c81c57a2
  1. 18
      dotfiles/.bash_aliases
  2. 2
      dotfiles/.bashrc
  3. 1
      dotfiles/.gvimrc
  4. 32
      dotfiles/.vimrc
  5. 11
      dotfiles/.vimrc-runtime
  6. 4
      set-from-git.sh

18
dotfiles/.bash_aliases

@ -1,5 +1,5 @@
# system
alias bs="xmodmap -e \"clear Lock\""
xmodmap -e "clear Lock"
alias c="clear"
shopt -s dotglob
alias reb="sudo shutdown -r 0"
@ -10,14 +10,16 @@ alias s="systemctl suspend"
alias cdr="cd ~/../../"
alias cdd="cd ~/Downloads"
alias 221="cd ~/Documents/School/221"
alias 221lt="okular ~/Downloads/Textbook.pdf"
alias mt="okular ~/Documents/School/221/Textbook.pdf"
alias mlt="okular ~/Downloads/Textbook.pdf"
alias p1="cd ~/258/258-labs-self/l5/p1"
alias p2="cd ~/258/258-labs-self/l5/p2"
alias l5="cd ~/258/258-labs-self/l5"
alias lab="cd ~/258/258-labs-self"
# bash
alias vb="vim ~/.bash_aliases"
# config
alias vb="gvim ~/.bash_aliases"
alias vv="gvim ~/.vimrc"
alias rba=". ~/.bashrc"
# git
@ -30,11 +32,15 @@ alias ga="git add *"
alias gai="git add .gitignore"
alias gd="git diff"
alias gdc="git diff --cached"
alias gstore="git config credential.helper store"
gc(){
git commit -m "$1"
}
# redshift
g(){
gvim $1
}
rs(){
redshift -O $1
}

2
dotfiles/.bashrc

@ -130,7 +130,7 @@ bind "set menu-complete-display-prefix on"
DIR_LAB="/h/u3/c7/05/mokkar/.bash_it"
DIR_HOME="/home/kevin/.bash_it"
# Path to the bash it configuration
export BASH_IT="$DIR_HOME"
export BASH_IT="$DIR_LAB"
# Lock and Load a custom theme file
# location /.bash_it/themes/

1
dotfiles/.gvimrc

@ -0,0 +1 @@
set guifont=Monospace\ 14

32
dotfiles/.vimrc

@ -1,24 +1,22 @@
" set runtimepath+=~/.vim_runtime
"
" source ~/.vim_runtime/vimrcs/basic.vim
" source ~/.vim_runtime/vimrcs/filetypes.vim
" source ~/.vim_runtime/vimrcs/plugins_config.vim
" source ~/.vim_runtime/vimrcs/extended.vim
"
" try
" source ~/.vim_runtime/my_configs.vim
" catch
" endtry
set relativenumber
set background=dark
syntax on
set tabstop=4
set shiftwidth=4
set autoindent
set mouse=c
" 'h/u3/c7/05/mokkar/.vim/plugged'
" '~/.vim/plugged'
" call plug#begin('h/u3/c7/05/mokkar/.vim/plugged')
" Plug 'https://github.com/whatyouhide/vim-gotham.git'
" call plug#end()
"
" colorscheme gotham
call plug#begin('~/.vim/plugged')
Plug 'vim-scripts/L9'
Plug 'vim-scripts/FuzzyFinder'
Plug 'whatyouhide/vim-gotham'
call plug#end()
colorscheme gotham
map <Enter> o<ESC>
map <S-Enter> O<ESC>

11
dotfiles/.vimrc-runtime

@ -0,0 +1,11 @@
set runtimepath+=~/.vim_runtime
source ~/.vim_runtime/vimrcs/basic.vim
source ~/.vim_runtime/vimrcs/filetypes.vim
source ~/.vim_runtime/vimrcs/plugins_config.vim
source ~/.vim_runtime/vimrcs/extended.vim
try
source ~/.vim_runtime/my_configs.vim
catch
endtry

4
set-from-git.sh

@ -1,8 +1,6 @@
files=".bash_aliases .bashrc .inputrc .vimrc"
files=".bash_aliases .bashrc .inputrc .vimrc .gvimrc"
dir=~/linux-config/dotfiles
# mkdir $dir
for file in $files; do
rm ~/$file
ln -s $dir/$file ~/$file

Loading…
Cancel
Save