# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
alias t='tree -AC -L 3 --dirsfirst --filelimit 10'
alias t1='tree -AC -L 3 --dirsfirst'
alias l='ls -lh'
alias rm='echo'
alias vi='vim'
# directory colors
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
# High Intensity colors
IBlack='\e[0;90m' # Black
IRed='\e[0;91m' # Red
IGreen='\e[0;92m' # Green
IYellow='\e[0;93m\e[4m' # Yellow
IBlue='\e[0;94m' # Blue
IPurple='\e[0;95m' # Purple
ICyan='\e[0;96m' # Cyan
IWhite='\e[0;97m' # White
Color_Off='\e[0m' # Text Reset
# modify command prompt
PROMPT_COMMAND=prompt_func
function prompt_func() {
# Initialize the prompt
PS1=""
PS1+="\e[4mUnderlined"
# Add a newline
PS1="\n"
# Status of last command
# PS1+='`if [ $? = 0 ]; then echo "\[\033[01;32m\]."; else echo "\[\033[01;31m\].";fi` '
# Command history number
PS1+="$ICyan\!$Color_Off "
# User and hostname
PS1+="$IYellow\u$IRed@$IYellow\h$Color_Off "
# Current time
PS1+="`date +%H:%M:%S` "
# Working directory
PS1+="$IGreen\w$Color_Off "
# Add a newline
PS1+=":\n"
# Add a trailing dollar sign
PS1+="\$ "
}
# welcome message
echo "------------------------------------------"
echo "----- USER: $USER"
OS=$(cat /etc/os-release | grep "PRETTY_NAME" | awk -F"[=]" '{ print $2}' | sed "s/\"//g")
ARCH=$(uname -m | sed 's/x86_//;s/i[3-6]86/32/')
echo "----- DISTRO: $OS $ARCH"
echo "------------------------------------------"
" To make this file do stuff, add something like the following (without the
" leading ") to your ~/.vimrc:
" au BufNewFile,BufRead *.yaml,*.yml so ~/src/PyYaml/YAML.vim
" Vim syntax/macro file
" Language: YAML
" Author: Igor Vergeichik <iverg@mail.ru>
" Sponsor: Tom Sawyer <transami@transami.net>
" Stayven: Ryan King <jking@panoptic.com>
" Copyright (c) 2002 Tom Saywer
" Add an item to a gangly list:
"map , o<bs><bs><bs><bs>-<esc>o
" Convert to Canonical form:
"map \c :%!python -c 'from yaml.redump import redump; import sys; print redump(sys.stdin.read()).rstrip()'
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
syntax clear
syn match yamlDelimiter "[:,-]"
syn match yamlBlock "[\[\]\{\}\|\>]"
syn match yamlOperator "[?^+-]\|=>"
syn region yamlComment start="\#" end="$"
syn match yamlIndicator "#YAML:\S\+"
syn region yamlString start="'" end="'" skip="\\'"
syn region yamlString start='"' end='"' skip='\\"' contains=yamlEscape
syn match yamlEscape +\\[abfnrtv'"\\]+ contained
syn match yamlEscape "\\\o\o\=\o\=" contained
syn match yamlEscape "\\x\x\+" contained
syn match yamlType "!\S\+"
syn keyword yamlConstant NULL Null null NONE None none NIL Nil nil
syn keyword yamlConstant TRUE True true YES Yes yes ON On on
syn keyword yamlConstant FALSE False false NO No no OFF Off off
syn match yamlKey "\w\+\ze\s*:"
syn match yamlAnchor "&\S\+"
syn match yamlAlias "*\S\+"
" Setupt the hilighting links
hi link yamlConstant Keyword
hi link yamlIndicator PreCondit
hi link yamlAnchor Function
hi link yamlAlias Function
hi link yamlKey Identifier
hi link yamlType Type
hi link yamlComment Comment
hi link yamlBlock Operator
hi link yamlOperator Operator
hi link yamlDelimiter Delimiter
hi link yamlString String
hi link yamlEscape Special
set number
set linebreak
set showbreak=+++
set textwidth=100
set showmatch
set hlsearch
set smartcase
set ignorecase
set incsearch
set autoindent
set expandtab
set shiftwidth=2
set smartindent
set smarttab
set softtabstop=2
set ruler
set undolevels=1000
set backspace=indent,eol,start
set background=dark
colorscheme kuroi
set noshowmatch
sudo yum remove git.x86_64
sudo yum install -y htop tree wget vim zsh gcc epel-release htop git2u-all https://centos7.iuscommunity.org/ius-release.rpm
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/aonemd/kuroi.vim
mv kuroi.vim/colors .vim/
echo "edit line 230 in kuroi"
# https://sourabhbajaj.com/mac-setup/References/
# /Users for macos
# export ZSH="/Users/$(whoami)/.oh-my-zsh"
export ZSH="/home/$USER/.oh-my-zsh"
ZSH_THEME="avit"
plugins=(git)
export ZSH_DISABLE_COMPFIX=true
source $ZSH/oh-my-zsh.sh
alias t='tree -AC -L 3 --dirsfirst --filelimit 10'
alias l='ls -lh'
alias rm='echo'
alias vi='vim'
PROMPT='%{$fg[yellow]%}[%D{%H:%M:%S}] '$PROMPT
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
prompt_history() {
prompt_segment black $CURRENT_BG '%h'
}
{
"tabWidth": 4,
"useTabs": true,
"printWidth": 80,
"overrides": [
{
"files": ["*.yaml"],
"options": {
"tabWidth": 2
}
}
]
}