summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/.bashrc24
-rw-r--r--.config/.vimrc41
2 files changed, 65 insertions, 0 deletions
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<CR>
+map \ve :vs<bar>wincmd l<bar>Ex<CR>
+map \t :vertical rightbelow terminal
+map \m :make!<CR>:vertical rightbelow copen<bar>wincmd =<CR>
+map \b :vertical rightbelow terminal ./build.sh<CR>
+map \n :cnext<CR>
+map \p :prev<CR>
+map \c :cd %:p:h<CR>
+map \q :q<CR>