diff --git a/.aliases b/.aliases index b9aa590..4783d75 100644 --- a/.aliases +++ b/.aliases @@ -25,6 +25,7 @@ alias gco="git checkout" alias gd="git diff" alias gdc="git diff --cached" alias gds="git diff --stat" +alias gfa="git-date-added" alias gfl="git log --patch" alias gi="gitignore-io" alias gl="git log" diff --git a/.functions b/.functions index 053068f..e4bd4dc 100644 --- a/.functions +++ b/.functions @@ -31,3 +31,11 @@ function map-sshfs { function gitignore-io { curl https://www.gitignore.io/api/$@ } + +function git-date-added { + if [ $# -eq 0 ]; then + echo Usage: git-date-added FILENAME + else + git log --format=%aD $1 | tail -1 + fi +} diff --git a/.vimrc b/.vimrc index fbedeaa..a5a1c66 100644 --- a/.vimrc +++ b/.vimrc @@ -64,6 +64,7 @@ set timeoutlen=500 " Don't wait too long (ambiguous leaders) set showmatch " Show matching brackets set hidden " Allow unsaved buffers to be hidden set wildmenu " Command line completion +set wildignorecase " Ignore case on commandline " Make syntax highlighting faster syntax sync minlines=256 set ttyfast