Wiki

Clone wiki

tmsu / Switching Databases

Default Database

By default TMSU uses a database at ~/.tmsu/default.db. If this database does not exist when TMSU is first run then it will be created automatically.

Command-Line Option

The database to use can be specified as a command-line option:

$ tmsu --database=~/mydb tags --all
fish
chips

To save specifying it each time, you can alias tmsu:

$ alias tmsu='tmsu --database=~/mydb'
$ tmsu tags --all
fish
chips

Environment Variable

If --database is not present on the command-line, TMSU will look for an environment variable called TMSU_DB before using the default database location.

$ export TMSU_DB=~/mydb
$ tmsu tags --all
fish
chips

Updated