git-date-added and set wildignorecase
This commit is contained in:
parent
21439d603c
commit
e71daf2711
3 changed files with 10 additions and 0 deletions
1
.aliases
1
.aliases
|
@ -25,6 +25,7 @@ alias gco="git checkout"
|
||||||
alias gd="git diff"
|
alias gd="git diff"
|
||||||
alias gdc="git diff --cached"
|
alias gdc="git diff --cached"
|
||||||
alias gds="git diff --stat"
|
alias gds="git diff --stat"
|
||||||
|
alias gfa="git-date-added"
|
||||||
alias gfl="git log --patch"
|
alias gfl="git log --patch"
|
||||||
alias gi="gitignore-io"
|
alias gi="gitignore-io"
|
||||||
alias gl="git log"
|
alias gl="git log"
|
||||||
|
|
|
@ -31,3 +31,11 @@ function map-sshfs {
|
||||||
function gitignore-io {
|
function gitignore-io {
|
||||||
curl https://www.gitignore.io/api/$@
|
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
|
||||||
|
}
|
||||||
|
|
1
.vimrc
1
.vimrc
|
@ -64,6 +64,7 @@ set timeoutlen=500 " Don't wait too long (ambiguous leaders)
|
||||||
set showmatch " Show matching brackets
|
set showmatch " Show matching brackets
|
||||||
set hidden " Allow unsaved buffers to be hidden
|
set hidden " Allow unsaved buffers to be hidden
|
||||||
set wildmenu " Command line completion
|
set wildmenu " Command line completion
|
||||||
|
set wildignorecase " Ignore case on commandline
|
||||||
" Make syntax highlighting faster
|
" Make syntax highlighting faster
|
||||||
syntax sync minlines=256
|
syntax sync minlines=256
|
||||||
set ttyfast
|
set ttyfast
|
||||||
|
|
Loading…
Reference in a new issue