Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nounous
Crans Passwords
Commits
85fcef1e
Commit
85fcef1e
authored
Feb 22, 2013
by
Daniel STAN
Browse files
Merge branch 'master' of
ssh://git.crans.org/git/cranspasswords
parents
e6b1a41a
2b1f77b2
Changes
1
Show whitespace changes
Inline
Side-by-side
cranspasswords_bash_completion
View file @
85fcef1e
...
...
@@ -77,9 +77,18 @@ server=$_cranspasswords_server
return 0
fi
if [[ "$last" = "--edit" ]]; then
if [ ! -f "${pass_dir}${server}-w" ]; then
echo "`cranspasswords --server $server -l | grep "+" | awk '{print $2}'`" > "${pass_dir}${server}-w"
fi
pass_list="`cat "${pass_dir}${server}-w"`"
COMPREPLY=( $(compgen -W "$pass_list" -- $cur ) )
return 0
fi
if true; then
if [ ! -f "${pass_dir}$server" ]; then
echo "`cranspasswords --server $server -l | grep "
+
" | awk '{print $2}'`" > "${pass_dir}$server"
echo "`cranspasswords --server $server -l | grep "
\( +\| -\)
" | awk '{print $2}'`" > "${pass_dir}$server"
fi
pass_list="`cat "${pass_dir}$server"`"
COMPREPLY=( $(compgen -W "$pass_list" -- $cur ) )
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment