jump 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/POST_INSTALL.txt +9 -49
- data/README.rdoc +16 -54
- data/VERSION +1 -1
- metadata +14 -53
data/POST_INSTALL.txt
CHANGED
@@ -3,58 +3,18 @@ the best user experience.
|
|
3
3
|
Linux users can install it using their package manager (apt, zypper, yum, emerge...),
|
4
4
|
while OSX users can install it via ports, fink or brew.
|
5
5
|
|
6
|
-
Now that jump is installed
|
7
|
-
|
6
|
+
Now that jump is installed execute the following command:
|
7
|
+
sudo cp `gem contents jump | grep completion` /path_to/bash_completion.d
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
local cur prev opts
|
12
|
-
COMPREPLY=()
|
13
|
-
cur="${COMP_WORDS[COMP_CWORD]}"
|
14
|
-
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
15
|
-
opts="--help -h --add -a --del -d --list -l"
|
9
|
+
The 'bash_completion.d' directory is usually located under /etc/.
|
10
|
+
OSX users will find this directory under fink/port/brew installation directory (e.g. '/opt/local/etc').
|
16
11
|
|
17
|
-
if [[ ${prev} == -d || ${prev} == --d* ]] ; then
|
18
|
-
# complete the del command with a list of the available bookmarks
|
19
|
-
local bookmarks=$(jump --bc)
|
20
|
-
COMPREPLY=( $(compgen -W "${bookmarks}" -- ${cur}) )
|
21
|
-
return 0
|
22
|
-
fi
|
23
12
|
|
24
|
-
|
25
|
-
|
26
|
-
return 0
|
27
|
-
else
|
28
|
-
local bookmarks=$(jump --bc ${cur})
|
29
|
-
COMPREPLY=( $(compgen -W "${bookmarks}" -- ${cur}) )
|
30
|
-
return 0
|
31
|
-
fi
|
32
|
-
}
|
13
|
+
If you do not want to install 'bash_completion' then execute the following command:
|
14
|
+
cp `gem contents jump | grep shell_driver` ~/.jump_shell_driver
|
33
15
|
|
34
|
-
|
35
|
-
#echo "jump called with $*"
|
36
|
-
if [ ${1:0:1} == "-" ]; then
|
37
|
-
jump-bin $*
|
38
|
-
else
|
39
|
-
cd $(jump-bin $*)
|
40
|
-
fi
|
41
|
-
}
|
16
|
+
and add the following code to your bash configuration file (e.g. '~/.bash_profile' or '~/.bashrc'):
|
42
17
|
|
43
|
-
|
18
|
+
source ~/.jump_shell_driver
|
44
19
|
|
45
|
-
|
46
|
-
The file must be located inside of the 'bash_completion.d' directory, which is
|
47
|
-
usually located under /etc/.
|
48
|
-
|
49
|
-
If you do not want to install 'bash_completion' then add the following code
|
50
|
-
to your bash configuration file (e.g. '~/.bash_profile' or '~/.bashrc'):
|
51
|
-
|
52
|
-
function jump {
|
53
|
-
if [ ${1:0:1} == "-" ]; then
|
54
|
-
jump-bin $*
|
55
|
-
else
|
56
|
-
cd $(jump-bin $*)
|
57
|
-
fi
|
58
|
-
}
|
59
|
-
|
60
|
-
Beware: without bash_completion you won't be able use jump's advanced completion features.
|
20
|
+
Beware: without bash_completion you won't be able use jump's advanced completion features.
|
data/README.rdoc
CHANGED
@@ -43,66 +43,28 @@ Jump is packaged as a gem:
|
|
43
43
|
|
44
44
|
== Bash integration
|
45
45
|
|
46
|
+
=== Using bash-completion (recommended)
|
46
47
|
It's strongly recommended to install <i>bash_completion</i>. In this way you will have
|
47
48
|
the best user experience.
|
48
49
|
|
49
50
|
Linux users can install it using their package manager (apt, zypper, yum, emerge...)
|
50
51
|
while OSX users can install it via ports, fink or brew.
|
51
52
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
COMPREPLY=( $(compgen -W "${bookmarks}" -- ${cur}) )
|
67
|
-
return 0
|
68
|
-
fi
|
69
|
-
|
70
|
-
if [[ ${cur:0:1} == "-" ]]; then
|
71
|
-
COMPREPLY="$(compgen -W "${opts}" -- ${cur}) "
|
72
|
-
return 0
|
73
|
-
else
|
74
|
-
local bookmarks=$(jump --bc ${cur})
|
75
|
-
COMPREPLY=( $(compgen -W "${bookmarks}" -- ${cur}) )
|
76
|
-
return 0
|
77
|
-
fi
|
78
|
-
}
|
79
|
-
|
80
|
-
function jump {
|
81
|
-
#echo "jump called with $*"
|
82
|
-
if [ ${1:0:1} == "-" ]; then
|
83
|
-
jump-bin $*
|
84
|
-
else
|
85
|
-
cd $(jump-bin $*)
|
86
|
-
fi
|
87
|
-
}
|
88
|
-
|
89
|
-
complete -o nospace -F _jump jump
|
90
|
-
|
91
|
-
|
92
|
-
The file must be located inside of the <i>bash_completion.d</i> directory, which
|
93
|
-
is usually located under <i>/etc/</i>.
|
94
|
-
|
95
|
-
If you do not want to install <i>bash_completion</i> then add the following code
|
96
|
-
to your bash configuration file (e.g. <i>~/.bash_profile</i> or <i>~/.bashrc</i>):
|
97
|
-
|
98
|
-
function jump {
|
99
|
-
if [ ${1:0:1} == "-" ]; then
|
100
|
-
jump-bin $*
|
101
|
-
else
|
102
|
-
cd $(jump-bin $*)
|
103
|
-
fi
|
104
|
-
}
|
53
|
+
Execute the following command once jump has been installed:
|
54
|
+
sudo cp `gem contents jump | grep completion` /path_to/bash_completion.d
|
55
|
+
|
56
|
+
The <i>bash_completion.d</i> directory is usually located under <i>/etc/</i>.
|
57
|
+
OSX users will find this directory under fink/port/brew installation directory (e.g. <i>/opt/local/etc</i>).
|
58
|
+
|
59
|
+
=== Without bash-completion
|
60
|
+
|
61
|
+
If you do not want to install <i>bash_completion</i> then execute the following command:
|
62
|
+
cp `gem contents jump | grep shell_driver` ~/.jump_shell_driver
|
63
|
+
|
64
|
+
and add the following code to your bash configuration file (e.g. <i>~/.bash_profile</i> or <i>~/.bashrc'</i>:
|
65
|
+
|
66
|
+
source ~/.jump_shell_driver
|
105
67
|
|
106
68
|
<b>Beware:</b> without bash_completion you won't be able use jump's advanced completion features.
|
107
69
|
|
108
|
-
(c) 2010 Flavio Castelli and Giuseppe Capizzi
|
70
|
+
(c) 2010 Flavio Castelli and Giuseppe Capizzi
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Flavio Castelli
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-08-
|
19
|
+
date: 2010-08-10 00:00:00 +02:00
|
20
20
|
default_executable: jump-bin
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -79,67 +79,28 @@ has_rdoc: true
|
|
79
79
|
homepage: http://github.com/flavio/jump
|
80
80
|
licenses: []
|
81
81
|
|
82
|
-
post_install_message:
|
82
|
+
post_install_message: |
|
83
83
|
It's strongly recommended to install bash_completion. In this way you will have
|
84
84
|
the best user experience.
|
85
85
|
Linux users can install it using their package manager (apt, zypper, yum, emerge...),
|
86
86
|
while OSX users can install it via ports, fink or brew.
|
87
87
|
|
88
|
-
Now that jump is installed
|
89
|
-
|
90
|
-
|
91
|
-
_jump()
|
92
|
-
{
|
93
|
-
local cur prev opts
|
94
|
-
COMPREPLY=()
|
95
|
-
cur="${COMP_WORDS[COMP_CWORD]}"
|
96
|
-
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
97
|
-
opts="--help -h --add -a --del -d --list -l"
|
98
|
-
|
99
|
-
if [[ ${prev} == -d || ${prev} == --d* ]] ; then
|
100
|
-
# complete the del command with a list of the available bookmarks
|
101
|
-
local bookmarks=$(jump --bc)
|
102
|
-
COMPREPLY=( $(compgen -W "${bookmarks}" -- ${cur}) )
|
103
|
-
return 0
|
104
|
-
fi
|
88
|
+
Now that jump is installed execute the following command:
|
89
|
+
sudo cp `gem contents jump | grep completion` /path_to/bash_completion.d
|
105
90
|
|
106
|
-
|
107
|
-
|
108
|
-
return 0
|
109
|
-
else
|
110
|
-
local bookmarks=$(jump --bc ${cur})
|
111
|
-
COMPREPLY=( $(compgen -W "${bookmarks}" -- ${cur}) )
|
112
|
-
return 0
|
113
|
-
fi
|
114
|
-
}
|
91
|
+
The 'bash_completion.d' directory is usually located under /etc/.
|
92
|
+
OSX users will find this directory under fink/port/brew installation directory (e.g. '/opt/local/etc').
|
115
93
|
|
116
|
-
function jump {
|
117
|
-
#echo "jump called with $*"
|
118
|
-
if [ ${1:0:1} == "-" ]; then
|
119
|
-
jump-bin $*
|
120
|
-
else
|
121
|
-
cd $(jump-bin $*)
|
122
|
-
fi
|
123
|
-
}
|
124
94
|
|
125
|
-
|
95
|
+
If you do not want to install 'bash_completion' then execute the following command:
|
96
|
+
cp `gem contents jump | grep shell_driver` ~/.jump_shell_driver
|
126
97
|
|
98
|
+
and add the following code to your bash configuration file (e.g. '~/.bash_profile' or '~/.bashrc'):
|
127
99
|
|
128
|
-
|
129
|
-
usually located under /etc/.
|
130
|
-
|
131
|
-
If you do not want to install 'bash_completion' then add the following code
|
132
|
-
to your bash configuration file (e.g. '~/.bash_profile' or '~/.bashrc'):
|
133
|
-
|
134
|
-
function jump {
|
135
|
-
if [ ${1:0:1} == "-" ]; then
|
136
|
-
jump-bin $*
|
137
|
-
else
|
138
|
-
cd $(jump-bin $*)
|
139
|
-
fi
|
140
|
-
}
|
100
|
+
source ~/.jump_shell_driver
|
141
101
|
|
142
102
|
Beware: without bash_completion you won't be able use jump's advanced completion features.
|
103
|
+
|
143
104
|
rdoc_options:
|
144
105
|
- --line-numbers
|
145
106
|
- --main
|