Compare commits

..

No commits in common. "2c5824b33cae402b2bafb272d2b6007401245cf7" and "8b74fb648fb206366afbbadf48a1fdca2efbce63" have entirely different histories.

4 changed files with 20 additions and 62 deletions

View File

@ -1,20 +1,7 @@
#!/bin/bash
# File : bashrc_6d02aaf87914
# License : MIT
# Author : Feng Bohan <1953356163@qq.com>
# Date : 2025-04-19 09:51:37
# Last Modified Date: 2025-04-21 08:50:03
# Last Modified By : Feng Bohan <1953356163@qq.com>
# -----
# Copyright © 2025 Feng Bohan. All Rights Reserved.
if [ -z "$SCL_LOADED" ]; then
export SCL_LOADED=1
scl enable devtoolset-10 bash
fi
export http_proxy=http://192.168.3.7:7890
export https_proxy=http://192.168.3.7:7890
export PATH=$PATH:/home/bhfeng/local/vim/bin
export PATH=$PATH:/home/bhfeng/local/ctags/bin
export PATH=/usr/local/vim/bin:$PATH

View File

@ -1,12 +1,3 @@
#!/bin/bash
# File : .bashrc_common
# License : MIT
# Author : Feng Bohan <1953356163@qq.com>
# Date : 2025-04-25 17:20:07
# Last Modified Date: 2025-04-25 17:21:35
# Last Modified By : Feng Bohan <1953356163@qq.com>
# -----
# Copyright © 2025 Feng Bohan. All Rights Reserved.
alias e='gvim ~/.bashrc'
alias s='source ~/.bashrc'
alias eg='gvim ~/.vimrc'
@ -33,5 +24,3 @@ w5(){
}
export PS1="[\[\e[01;32m\]\u@\h\[\e[00m\]-\t \$(free_mem)]:\[\e[01;34m\]\$(w5)\[\e[00m\]\$ "
# set for tabby auto detect work dir
export PS1="$PS1\[\e]1337;CurrentDir="'$(pwd)\a\]'

View File

@ -1,10 +0,0 @@
export NO_AT_BRIDGE=1
alias mWork="sudo mount -t nfs nas.fbh:/volume2/work /home/fengbh/nasWork"
alias is1="./initscreen.sh 1"
alias is2="./initscreen.sh 2"
export http_proxy=http://192.168.3.7:7890
export https_proxy=http://192.168.3.7:7890
# Created by `pipx` on 2025-04-22 14:18:59
export PATH="$PATH:/home/fengbh/.local/bin"

View File

@ -3,20 +3,25 @@
" License : MIT
" Author : Feng Bohan <1953356163@qq.com>
" Date : 2025-04-18 08:39:57
" Last Modified Date: 2025-04-27 09:08:13
" Last Modified Date: 2025-04-19 15:40:57
" Last Modified By : Feng Bohan <1953356163@qq.com>
" File : .vimrc
" Author : Feng Bohan <fengbohan@fmsh.com.cn>
" Date : 2025-04-17 21:46:23
" Last Modified Date: 2025-04-18 08:35:09
" Last Modified By : Feng Bohan <fengbohan@fmsh.com.cn>
" Copyright © 2025 Shanghai Fudan Microelectronics Group Co.,Ltd. All Rights Reserved.
" 环境检测
function! IsAtCompany()
" 检查 baidu.com 是否能解析
let l:cmd = 'curl -s -o /dev/null -m 2 -w "%{http_code}" https://baidu.com'
let l:http_code = system(l:cmd)
let l:cmd = 'nslookup baidu.com >/dev/null 2>&1'
if match(l:http_code, '^[23][0-9][0-9]$') == -1
return 1 " 不能解析,在公司
else
" 执行命令,返回 0 表示解析成功(不在公司),非 0 表示解析失败(在公司)
if system(l:cmd) == 0
return 0 " 能解析,不在公司
else
return 1 " 不能解析,在公司
endif
endfunction
" 只在 Vim 启动时检测一次
@ -91,9 +96,10 @@ nnoremap <leader>sv :source $MYVIMRC<cr>
nnoremap <C-j> :bn<CR>
nnoremap <C-k> :bp<CR>
nnoremap <C-h> :bwipe<CR>
map <C-L> <Esc>:set guifont=Monospace\ 16<Enter>
map <C-M> <Esc>:set guifont=Monospace\ 14<Enter>
nnoremap <Leader>t :below terminal<CR>
nnoremap <C-s> :w<CR>
nnoremap <Leader>tt :TagbarToggle<CR>
" 特殊配置
let g:polyglot_disabled = ['verilog_systemverilog']
@ -110,7 +116,6 @@ call plug#begin()
Plug 'roxma/vim-hug-neovim-rpc'
endif
Plug 'preservim/nerdtree'
Plug 'xuyuanp/nerdtree-git-plugin'
Plug 'ryanoasis/vim-devicons'
Plug 'Yggdroot/indentLine'
Plug 'luochen1990/rainbow'
@ -126,8 +131,6 @@ call plug#begin()
Plug 'tomasr/molokai'
Plug 'w0ng/vim-hybrid'
Plug 'joshdick/onedark.vim'
Plug 'altercation/vim-colors-solarized'
Plug 'morhetz/gruvbox'
Plug 'jiangmiao/auto-pairs'
Plug 'tpope/vim-endwise'
Plug 'kshenoy/vim-signature'
@ -138,9 +141,6 @@ call plug#begin()
Plug 'sheerun/vim-polyglot'
Plug 'tpope/vim-repeat'
Plug 'alpertuna/vim-header'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
Plug 'preservim/tagbar'
call plug#end()
"=============================================================================
@ -198,8 +198,8 @@ nnoremap <C-n> :NERDTree<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
"let g:NERDTreeFileLines = 1 " 显示行号
"let NERDTreeShowHidden=1 " 设置显示隐藏文件
let g:NERDTreeFileLines = 1 " 显示行号
let NERDTreeShowHidden=1 " 设置显示隐藏文件
" 设置忽略的文件
let NERDTreeIgnore=[
\ '\.git$','\.svn$','\.DS_Store$'
@ -329,19 +329,11 @@ vmap <BS> <plug>NERDCommenterToggle
"=============================================================================
" configure for theme
"=============================================================================
" 降级的 256 配色方案
"let g:solarized_termcolors=256
"colorscheme hybrid
"colorscheme molokai
"colorscheme onedark
"colorscheme solarized
colorscheme gruvbox
if has('gui_running')
set background=light
else
colorscheme onedark
set background=dark
endif
"=============================================================================
" configure for ultisnips
"=============================================================================