Compare commits

...

2 Commits

Author SHA1 Message Date
Joe 20b7e8e9bf Add .vimrc 2021-05-21 15:39:13 -05:00
Joe 44dd4e3f8e Add .functions 2021-05-21 15:38:37 -05:00
4 changed files with 48 additions and 0 deletions

2
.exports Normal file
View File

@ -0,0 +1,2 @@
export EDITOR="vim"

13
.functions Normal file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
function ssh_setup {
mkdir -p ~/.ssh
chmod 700 ~/.ssh
touch ~/.ssh/config
chmod 600 ~/.ssh/config
}
function ssh_key {
ssh-keygen -t ed25519 -C "${1?"Usage: $0 EMAIL"}"
}

3
.gitignore vendored
View File

@ -4,5 +4,8 @@
!.gitignore
!.aliases
!.exports
!.functions
!.vimrc
!.bashrc

30
.vimrc Normal file
View File

@ -0,0 +1,30 @@
set nocompatible
filetype plugin indent on
set nofoldenable
set foldmethod=syntax
set foldnestmax=1
au FileType sh let g:sh_fold_enabled=1
au FileType sh let g:is_bash=1
au FileType sh set foldmethod=syntax
syntax on
set number " Show line numbers
set showmatch " Highlight matching brace
set visualbell " Use visual bell (no beeping)
set hlsearch " Highlight all search results
set smartcase " Enable smart-case search
set ignorecase " Always case-insensitive
set incsearch " Searches for strings incrementally
set autoindent " Auto-indent new lines
"set shiftwidth=4 " Number of auto-indent spaces
"set smartindent " Enable smart-indent
set smarttab " Enable smart-tabs
set softtabstop=4 " Number of spaces per Tab
set ruler " Show row and column ruler information
set undolevels=1000 " Number of undo levels
set backspace=indent,eol,start " Backspace behaviour