Last active
March 28, 2019 13:16
-
-
Save simbafs/7d662161d440ef29bfd268330494cb09 to your computer and use it in GitHub Desktop.
bashrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ls='ls -shC1 --color=auto' | |
alias tree='tree -Cha' | |
alias home='cd ~' | |
alias bin='cd ~/bin' | |
alias code='cd ~/git' | |
alias rm='rm -r' | |
alias cp='cp -r' | |
alias pwd=dirs | |
alias r='vi README.*' | |
alias ..='cd ../' | |
alias lls='vi .' | |
alias debian='sh ~/debian/start-debian' | |
alias 'gitinfo'='git diff --name-only --diff-filter=U' | |
alias ptt='ssh -C bbsu@ptt.cc' | |
alias gp='git pull' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#init ~/tmp | |
rm -rf tmp | |
mkdir tmp | |
#setup environment value | |
BIN=~/bin | |
export PATH=$BIN:$PATH | |
if [[ -f git-comletion.bash ]];then | |
. git-comletion.bash | |
else | |
wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ -f .bash/bash_aliases.sh ]];then | |
. .bash/bash_aliases.sh | |
fi | |
if [[ -f .bash/bash_init.sh ]];then | |
. .bash/bash_init.sh | |
fi | |
if [[ -f .bash/bash_functions.sh ]];then | |
. .bash/bash_functions.sh | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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') | |
" 把要安裝的套件寫在這裡 | |
"Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
"call plug#end() | |
"nnoremap <silent> <F5> :NERDTree<CR> | |
syntax on | |
set showcmd " Show (partial) command in status line. | |
" blue default desert evening koehler murphy peachpuff ron slate zellner | |
" darkblue delek elflord industry morning pablo README.txt shine torte | |
colorscheme koehler | |
set nu | |
set tabstop=2 | |
set shiftwidth=4 | |
set autoindent | |
set nowrap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##copyright © SimbaFs## | |
wget https://gist.githubusercontent.com/simba-fs/7d662161d440ef29bfd268330494cb09/raw/8037a900858d1e7668c40a1b14d58cf16be6f4f5/.bashrc | |
wget https://gist.githubusercontent.com/simba-fs/7d662161d440ef29bfd268330494cb09/raw/8037a900858d1e7668c40a1b14d58cf16be6f4f5/.vimrc | |
if [[ -f .bashrc ]];then | |
cat .bashrc__tmp >> .bashrc | |
rm .bashrc__tmp | |
else | |
mv .bashrc__tmp .bashrc | |
fi | |
mkdir .bash && cd .bash | |
wget https://gist.githubusercontent.com/simba-fs/7d662161d440ef29bfd268330494cb09/raw/8037a900858d1e7668c40a1b14d58cf16be6f4f5/.bash_aliases.sh | |
wget https://gist.githubusercontent.com/simba-fs/7d662161d440ef29bfd268330494cb09/raw/8037a900858d1e7668c40a1b14d58cf16be6f4f5/.bash_init.sh | |
rm install.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment