Compare commits
No commits in common. "master" and "4e79cdf6c5b9d6127b662e64973b92ce05ec87bd" have entirely different histories.
master
...
4e79cdf6c5
8
.bashrc
8
.bashrc
|
@ -1,3 +1,7 @@
|
|||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||
# for examples
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
*i*) ;;
|
||||
|
@ -19,6 +23,10 @@ HISTFILESIZE=2000
|
|||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
# If set, the pattern "**" used in a pathname expansion context will
|
||||
# match all files and zero or more directories and subdirectories.
|
||||
#shopt -s globstar
|
||||
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
|
|
13
.functions
13
.functions
|
@ -1,13 +0,0 @@
|
|||
#!/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,9 +3,5 @@
|
|||
!README.md
|
||||
!.gitignore
|
||||
!.aliases
|
||||
!.exports
|
||||
!.functions
|
||||
|
||||
!.vimrc
|
||||
!.bashrc
|
||||
|
||||
|
|
30
.vimrc
30
.vimrc
|
@ -1,30 +0,0 @@
|
|||
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
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# Home directory
|
||||
|
||||
# Setup
|
||||
Initialize
|
||||
* Clone this repo `git clone --bare [repo-url] ~/.dotfiles`
|
||||
* Checkout files into home dir `git checkout --repo "$HOME/.dotfiles" --workdir "$HOME" .`
|
||||
* `soruce .bashrc`
|
||||
|
@ -9,11 +9,4 @@
|
|||
* Use `dotfiles` git alias to interact with dotfiles repo. E.g. `dotfiles status`
|
||||
* Add files you want to track as exceptions to `.gitignore` (or `dotfiles add --force`)
|
||||
|
||||
# See also
|
||||
|
||||
https://github.com/kalkayan/dotfiles / https://news.ycombinator.com/item?id=27134249
|
||||
|
||||
https://github.com/nickjj/dotfiles
|
||||
|
||||
https://github.com/brujoand/sbp
|
||||
|
||||
|
|
Loading…
Reference in New Issue