update 23-5-22

This commit is contained in:
Tyler Perkins 2022-05-23 19:26:25 -04:00
parent 11b3f461bb
commit ef7a07a194
4 changed files with 54 additions and 22 deletions

View File

@ -17,12 +17,19 @@ set -o vi
#add .cargo/bin to path
export PATH="/home/tyler/.cargo/bin:$PATH"
export PATH="/home/tyler/.local/bin:$PATH"
export _JAVA_AWT_WM_NONREPARENTING=1
#use vim as editor
export EDITOR="/usr/bin/vim"
#pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/versions/bin/3.8.12/bin:$PATH"
#proton work directory set as enviroment var
export STEAM_COMPAT_DATA_PATH=~/.proton/
export STEAM_COMPAT_CLIENT_INSTALL_PATH=~/.steam/steam/steamapps/common/Proton\ 6.3/
eval "$(register-python-argcomplete pmbootstrap)"
#alias set
alias l="ls -al"
@ -38,7 +45,7 @@ alias ports="netstat -tulanp | less"
alias audio="pulsemixer"
alias email="aerc"
alias weather="curl wttr.in"
alias http="python -m http.server"
alias httpserver="python -m http.server"
alias google="tuxi"
alias clipboard="xclip -selection clipboard"
alias new-wallpaper="feh --bg-fill --randomize ~/.desktop/wallpaper/"
@ -49,16 +56,17 @@ alias grep="grep -i --color=auto"
alias mv="mv -v"
alias nnn="nnn -e"
alias sudo="doas"
alias arduino="_JAVA_AWT_WM_NONREPARENTING=1 arduino"
alias arduino=" arduino"
alias logisim-evolution="_JAVA_AWT_WM_NONREPARENTING=1 logisim-evolution"
alias vifm="vifmrun"
alias svn="colorsvn"
alias f="vifm"
alias new-motd="vim /home/tyler/.desktop/alarm/motd.txt"
alias sched="vim /home/tyler/school/Sched.txt"
alias disable-alarm=". /home/tyler/.desktop/alarm/disable-alarm.sh"
alias memes-down="rsync -azPv tyler@174.104.135.12:/media/hd/memes/ /media/hd/memes"
alias memes-up="rsync -azPv /media/hd/memes/ tyler@174.104.135.12:/media/hd/memes/"
alias battery="cat /sys/class/power_supply/BAT0/capacity"
#vim opens vim wiki by default, else the file
#function vimw(){
@ -70,6 +78,7 @@ alias memes-up="rsync -azPv /media/hd/memes/ tyler@174.104.135.12:/media/hd/meme
#}
#alias vim="vimw"
export PS1="\033[1m\e[0;97m[\e[0;32m\u\e[0;97m@\e[0;31m\h \e[0;97m(\D{}) \w]\n$ \033[0m"
#display colors
_PROMPT_GREEN_='\033[1;32m'
@ -84,7 +93,7 @@ fi
#display stuff at beggining of the shell
echo -e "${_PROMPT_HEAD_}#########################"
echo -e "${_PROMPT_HEAD_}#Welcome ${_PROMPT_VAR_}$(whoami)"
echo -e "${_PROMPT_HEAD_}#EIp : ${_PROMPT_VAR_}$(ifconfig eno1 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')"
echo -e "${_PROMPT_HEAD_}#EIp : ${_PROMPT_VAR_}$(ifconfig eth0 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')"
#echo -e "${_PROMPT_HEAD_}#WIp : ${_PROMPT_VAR_}$(ifconfig wlo1 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')"
echo -e "${_PROMPT_HEAD_}#PIp : ${_PROMPT_VAR_}$(curl -s ipinfo.io/ip)"
echo -e "${_PROMPT_HEAD_}#Time: ${_PROMPT_VAR_}$(date +"%T")"

View File

@ -16,6 +16,7 @@ generic-reload R
generic-copy c
generic-paste p ^V
generic-change-view TAB
generic-prev-view KEY_BTAB
generic-import i I
generic-export x X
generic-goto g G

View File

@ -23,9 +23,18 @@ Plugin 'luochen1990/rainbow'
Plugin 'jiangmiao/auto-pairs'
Plugin 'jamessan/vim-gnupg'
Plugin 'vim-syntastic/syntastic'
Plugin 'ntpeters/vim-better-whitespace'
Plugin 'airblade/vim-gitgutter'
Plugin 'vimwiki/vimwiki'
Plugin 'ekalinin/Dockerfile.vim'
Plugin 'Shirk/vim-gas'
Plugin 'ycm-core/YouCompleteMe'
Plugin 'vim-latex/vim-latex'
Plugin 'posva/vim-vue'
"Omnisharp
Plugin 'OmniSharp/omnisharp-vim'
"Appearence
Plugin 'ap/vim-css-color'
@ -45,6 +54,21 @@ Plugin 'moll/vim-node'
"end
call vundle#end()
filetype plugin indent on
filetype plugin on
"omnisharp, for C# editing
autocmd BufNewFile,BufRead *.cshtml set syntax=html
let g:syntastic_cs_checkers = ['code_checker']
let g:OmniSharp_server_sdio = 1
let g:OmniSharp_server_use_net6 = 1
let g:OmniSharp_highlighting = 3
autocmd FileType cs nmap <silent> <buffer> gd <Plug>(omnisharp_go_to_definition)
"asyncomplete
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
set encoding=utf-8
"enable hardmode
"let g:hardtime_default_on = 1
@ -72,11 +96,12 @@ let g:syntastic_cpp_remove_include_errors = 1
let g:syntastic_c_remove_include_errors = 1
let g:syntastic_cpp_compiler = "g++"
let g:syntastic_cpp_compiler_options = "-Wall -Wextra"
let g:syntastic_asm_checkers = ['nasm']
let g:GPGFilePattern = '*.\(gpg\|asc\|pgp\|gpg\)\(.wiki\)\='
" Vim latex settings
let g:tex_flavor='latex'
"clear sign column
hi clear SignColumn
@ -149,8 +174,6 @@ set tw=79
"auto highlight to groff for .ms files
autocmd BufNewFile,BufRead *.ms set syntax=groff
"md/groff/latex preview
let mapleader="\\"
"call compile
@ -178,4 +201,3 @@ let g:vimwiki_list = [{'path': '$HOME/vimwiki', 'path_html': '$HOME/vimwiki/.htm
noremap <leader>p :call Preview()<CR><CR><CR>
noremap <leader>q :call Compile()<CR><CR>