Skip to content
Bash completion for subversion commands and remote repositories
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
License.md
README.md
svn-completion.sh

README.md

Subversion-Bash-Complete

Bash completion for subversion commands and remote repositories

Overview

This script is a merge between Apache's subversion bash completion and Androa's subversion remote repositories completion

Installation

To install the script simply add source /path-to/svn-completion.sh in .bashrc or .profile files in your home directory

Usage

When you type svn in your terminal you can then press TAB key to complete the commands for subversion like merge, checkout, etc. When you type for example svn merge -- and you press the TAB key it will complete all of the arguments for merge command like --revision, --non-interactive, etc. To autocomplete remote paths simply add ^/ as argument and press TAB and it will start completing remote paths based on the base path of your repository.

Toubleshooting

Q: Script is not working, what might be the problem?

A: On some systems bash complete might not be activated, to activate it add this code to your .bashrc file

[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
  . /usr/share/bash-completion/bash_completion

Q: When I want to complete remote path nothing happens, any ideas?

A: You need to be in a directory where you have checkout a repository, so the script knows which is the base path of the repostitory. Or if you are in a repo folder, sometimes the server where the repository is located may need few seconds to respond on svn list command (this command is used to create and show a list with all the remote directories). The delay in svn list command will happen only once per terminal session.


Copyright 2014 Peter Luladjiev

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.