Compare commits
2 Commits
cc63840fcb
...
0e1ecfedaa
Author | SHA1 | Date | |
---|---|---|---|
0e1ecfedaa | |||
e483adfba0 |
1
bash_aliases.d/grepgit
Normal file
1
bash_aliases.d/grepgit
Normal file
@ -0,0 +1 @@
|
|||||||
|
alias grepgit='git ls-files -z | xargs -0 grep --color=auto -H'
|
2
e
2
e
@ -8,7 +8,7 @@ def get_server_name(path)
|
|||||||
path = File.expand_path(path)
|
path = File.expand_path(path)
|
||||||
while path != "/"
|
while path != "/"
|
||||||
dirname = File.dirname(path)
|
dirname = File.dirname(path)
|
||||||
if File.exists?(File.join(dirname, "project.vim"))
|
if File.exist?(File.join(dirname, "project.vim"))
|
||||||
if dirname =~ %r{([^/]+)/([^/]+)/*$}
|
if dirname =~ %r{([^/]+)/([^/]+)/*$}
|
||||||
sn = "#{$2}(#{$1})"
|
sn = "#{$2}(#{$1})"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user