removed windows and linux split subdir
This commit is contained in:
parent
83dda10fa8
commit
065b982734
280 changed files with 9053 additions and 426 deletions
17
.antidote/functions/__antidote_bundle_name
Normal file
17
.antidote/functions/__antidote_bundle_name
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/zsh
|
||||
|
||||
### Get the short name of the bundle.
|
||||
#function __antidote_bundle_name {
|
||||
emulate -L zsh; setopt local_options $_adote_funcopts
|
||||
local MATCH MBEGIN MEND; local -a match mbegin mend # appease 'warn_create_global'
|
||||
local bundle=$1
|
||||
local bundle_type="$(__antidote_bundle_type $bundle)"
|
||||
if [[ "$bundle_type" == (url|sshurl) ]] ; then
|
||||
bundle=${bundle%.git}
|
||||
bundle=${bundle:gs/\:/\/}
|
||||
local parts=(${(ps./.)bundle})
|
||||
print ${parts[-2]}/${parts[-1]}
|
||||
else
|
||||
print $bundle | sed -e "s|^\~/|$HOME/|" -e "s|^$HOME|\$HOME|"
|
||||
fi
|
||||
#}
|
||||
Loading…
Add table
Add a link
Reference in a new issue