add files
This commit is contained in:
parent
a4929037b6
commit
292ae5083f
|
@ -0,0 +1,65 @@
|
|||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
HISTCONTROL=ignoreboth
|
||||
shopt -s histappend
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=2000
|
||||
shopt -s checkwinsize
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||
debian_chroot=$(cat /etc/debian_chroot)
|
||||
fi
|
||||
case "$TERM" in
|
||||
xterm-color|*-256color) color_prompt=yes;;
|
||||
esac
|
||||
force_color_prompt=yes
|
||||
|
||||
if [ -n "$force_color_prompt" ]; then
|
||||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||
color_prompt=yes
|
||||
else
|
||||
color_prompt=
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\[\033[00m\]\[\033[01;34m\]\w \$\[\033[00m\] '
|
||||
else
|
||||
PS1='${debian_chroot:+($debian_chroot)}\w\$ '
|
||||
fi
|
||||
unset color_prompt force_color_prompt
|
||||
case "$TERM" in
|
||||
xterm*|rxvt*)
|
||||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
alias dir='dir --color=auto'
|
||||
alias vdir='vdir --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
fi
|
||||
alias ll='ls -l'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
. ~/.bash_aliases
|
||||
fi
|
||||
if ! shopt -oq posix; then
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f "~/.updates" ]; then
|
||||
cat .updates && rm .updates
|
||||
fi
|
|
@ -0,0 +1,2 @@
|
|||
Your configs have been updated. Read about them at the link below.
|
||||
https://secluded.site/cs-2440-utilities/#updates
|
|
@ -0,0 +1,54 @@
|
|||
"
|
||||
" .vimrc
|
||||
"
|
||||
" Vim configuration resource file. Specifies desired
|
||||
" behavior for the vim editor.
|
||||
"
|
||||
:set wildmode=longest,list,full " Enable autocompletion
|
||||
:set number " Show line numbers
|
||||
:set scrolloff=12 " Keep cursor in the center-ish of the screen
|
||||
:set numberwidth=3 " Set default line indicator width to 3 chars
|
||||
:set showmode " Tell you if you're in insert mode
|
||||
:set tabstop=4 " Set the tabstop to 4 spaces
|
||||
:set shiftwidth=4 " Shiftwidth should match tabstop
|
||||
:set expandtab " Convert tabs to <tabstop> number of spaces
|
||||
:set ruler " Show the cursor position all the time
|
||||
:set showmatch " Show matching [] () {} etc...
|
||||
:set smartindent " Let vim help you with your code indention
|
||||
:set nohlsearch " Don't highlight strings you're searching for
|
||||
:set formatoptions+=ro " Automatically insert the comment character when
|
||||
" you hit <enter> (r) or o/O (o) in a block comment.
|
||||
:set backspace=2 " makes backspace work like you expect
|
||||
|
||||
" This allows you to 'fold' portions of your code so they're sort of hidden.
|
||||
" Type za for automatic syntax-based folding (not very good with Java) or vz
|
||||
" for manual folds; highlight what you want folded then type zf to create the
|
||||
" fold. Use za to toggle it on or off. I use this for a lot of long comments.
|
||||
augroup vimrc
|
||||
au BufReadPre * setlocal foldmethod=syntax
|
||||
au BufWinEnter * if &fdm == 'syntax' | setlocal foldmethod=manual | endif
|
||||
augroup END
|
||||
|
||||
" Saves created folds and loads them again when you open the same file
|
||||
augroup remember_folds
|
||||
autocmd!
|
||||
autocmd BufWinLeave * mkview
|
||||
autocmd BufWinEnter * silent! loadview
|
||||
augroup END
|
||||
|
||||
" Switch syntax highlighting on, when the terminal can support colors
|
||||
if &t_Co > 2 || has("gui_running")
|
||||
:syntax on
|
||||
" Change the highlight color for Comment and Special
|
||||
" to Cyan. Blue is too dark for a black background.
|
||||
:highlight Comment term=bold ctermfg=cyan guifg=cyan
|
||||
:highlight Special term=bold ctermfg=cyan guifg=cyan
|
||||
:highlight Constant term=bold ctermfg=red guifg=cyan
|
||||
endif
|
||||
|
||||
" Make vim turn *off* expandtab for files named Makefile or makefile
|
||||
" We need the tab literal
|
||||
:autocmd BufNewFile,BufRead [Mm]akefile* set noexpandtab
|
||||
|
||||
" Make vim recognize a file ending in ".template" be a C++ source file
|
||||
:autocmd BufNewFile,BufRead *.template set ft=cpp
|
Loading…
Reference in New Issue