Skip to content
Discussion options

You must be logged in to vote

You can do

$ TODO_FILE=/path/to/other.txt todo.sh lsc

Splitting tasks into separate todo files is not recommended, but if you go that route, I'd recommend to set up separate aliases for each file:

alias todoinbox='TODO_FILE=/path/to/inbox.txt todo.sh'
alias todosomeday='TODO_FILE=/path/to/someday.txt todo.sh'

You can then do $ todoinbox lsc and so on.

If you need to override more than the file location, I'd recommend to use separate configuration files (you can source the common todo.cfg in each) and pass a dedicated config file in each alias:

alias todoinbox='todo.sh -d ~/.todo/inbox-config'

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@pursvir
Comment options

@pursvir
Comment options

@inkarkat
Comment options

@pursvir
Comment options

Answer selected by pursvir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants