Browse Source

Update set-from-git for Terminator

- Set default terminal editor to vim (.bashrc)
- Auto-install plugged (.vimrc)
red-hat-laptop
Kevin Mok 7 years ago
parent
commit
af9e48be72
  1. 2
      dotfiles/.bashrc
  2. 8
      dotfiles/.vimrc
  3. 3
      dotfiles/termConfig
  4. 8
      set-from-git.sh

2
dotfiles/.bashrc

@ -184,3 +184,5 @@ source "$BASH_IT"/bash_it.sh
# source /etc/environment # source /etc/environment
export QSYS_ROOTDIR="/home/kevin/usr/altera_lite/16.0/quartus/sopc_builder/bin" export QSYS_ROOTDIR="/home/kevin/usr/altera_lite/16.0/quartus/sopc_builder/bin"
export EDITOR='vim'
export VISUAL='vim'

8
dotfiles/.vimrc

@ -1,6 +1,7 @@
set relativenumber set relativenumber
set background=dark set background=dark
" set t_Co=256 " set t_Co=256
filetype plugin on
syntax on syntax on
set tabstop=4 set tabstop=4
set shiftwidth=4 set shiftwidth=4
@ -12,6 +13,13 @@ autocmd VimResized * wincmd =
" 'h/u3/c7/05/mokkar/.vim/plugged' " 'h/u3/c7/05/mokkar/.vim/plugged'
" '~/.vim/plugged' " '~/.vim/plugged'
" plug
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
Plug 'vim-scripts/L9' Plug 'vim-scripts/L9'

3
dotfiles/termConfig

@ -27,8 +27,9 @@
copy_on_selection = True copy_on_selection = True
cursor_color = "#b9b9b9" cursor_color = "#b9b9b9"
custom_command = env TERM=xterm-256color bash custom_command = env TERM=xterm-256color bash
font = Noto Mono 9
font = Monospace 12
foreground_color = "#0077ff" foreground_color = "#0077ff"
palette = "#000000:#aa0000:#00aa00:#aa5500:#0000aa:#aa00aa:#00aaaa:#aaaaaa:#555555:#ff5555:#55ff55:#ffff55:#5555ff:#ff55ff:#55ffff:#ffffff" palette = "#000000:#aa0000:#00aa00:#aa5500:#0000aa:#aa00aa:#00aaaa:#aaaaaa:#555555:#ff5555:#55ff55:#ffff55:#5555ff:#ff55ff:#55ffff:#ffffff"
scrollbar_position = hidden scrollbar_position = hidden
use_custom_command = True use_custom_command = True
use_system_font = False

8
set-from-git.sh

@ -1,5 +1,5 @@
# home # home
files=".bash_aliases .bashrc .inputrc .vimrc .gvimrc .profile"
files=".bash_aliases .bashrc .inputrc .vimrc .gvimrc"
dotDir=~/linux-config/dotfiles dotDir=~/linux-config/dotfiles
for file in $files; do for file in $files; do
@ -8,6 +8,6 @@ for file in $files; do
done done
# terminator # terminator
termDir=~/.config/terminator/
rm $termDir/config
ln -s $dotDir/termConfig $termDir/config
termDir=~/.config/terminator
rm $termDir/config
ln -s $dotDir/termConfig "$termDir"/config
Loading…
Cancel
Save