From 4b389613fdf367dbdbf6c7984bacdca3914668c2 Mon Sep 17 00:00:00 2001 From: pryazha Date: Thu, 23 Jan 2025 19:19:46 +0500 Subject: add vim and bash configs --- .config/.bashrc | 24 ++++++++++++++++++++++++ .config/.vimrc | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 .config/.bashrc create mode 100644 .config/.vimrc (limited to '.config') diff --git a/.config/.bashrc b/.config/.bashrc new file mode 100644 index 0000000..6ca0e5c --- /dev/null +++ b/.config/.bashrc @@ -0,0 +1,24 @@ +# .bashrc + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +alias ll='ls -lh' +alias l='ls -lha' + +PURPLE="\[$(tput setaf 5)\]" +RESET="\[$(tput sgr0)\]" + +PS1="[\u@${PURPLE}\h${RESET} \w]\n> " +PS2=">> " + +# export XDG_RUNTIME_DIR=/run/user/$(id -u) + +if [ -d "$HOME/.local/bin" ] ; then + PATH="$HOME/.local/bin:$PATH" +fi + +if [[ -z $DISPLAY ]] && [[ $(tty) = "/dev/tty1" ]]; then + exec startx &> /dev/null +fi diff --git a/.config/.vimrc b/.config/.vimrc new file mode 100644 index 0000000..ef534d5 --- /dev/null +++ b/.config/.vimrc @@ -0,0 +1,41 @@ +source $VIMRUNTIME/defaults.vim + +let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' +if empty(glob(data_dir . '/autoload/plug.vim')) + silent execute '!curl -fLo '.data_dir.'/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() + +Plug 'morhetz/gruvbox' +Plug '4513ECHO/vim-colors-hatsunemiku' +Plug 'srcery-colors/srcery-vim' + +call plug#end() + +" For gruvbox: set background=dark +set termguicolors +colorscheme hatsunemiku + +set nowrap +set clipboard=unnamedplus + +set cindent +set cinoptions=(,{,!,l1 + +set shiftwidth=4 smarttab +set expandtab +set tabstop=4 softtabstop=0 + +let g:netrw_banner=0 + +map \e :Ex +map \ve :vswincmd lEx +map \t :vertical rightbelow terminal +map \m :make!:vertical rightbelow copenwincmd = +map \b :vertical rightbelow terminal ./build.sh +map \n :cnext +map \p :prev +map \c :cd %:p:h +map \q :q -- cgit v1.2.3