25 lines
746 B
Markdown
25 lines
746 B
Markdown
---
|
|
title: "twtxt config alias"
|
|
date: 2020-05-30T11:56:31+02:00
|
|
draft: false
|
|
snippet_types: ["zsh", "twtxt"]
|
|
---
|
|
|
|
Recently I started using [twtxt](https://twtxt.readthedocs.io/en/stable/). I
|
|
installed it with brew then setup it up via the quick setup command. The
|
|
problem is when you put a config file location other then the default when
|
|
you call the command you get a
|
|
**"✗ Config file not found or not readable. You may want to run twtxt quickstart."**
|
|
error. This is super annoying so I aliased the command to always include the location of my
|
|
config file.
|
|
|
|
```diff
|
|
alias gpf="gp --force"
|
|
+ alias tw="twtxt -c ~/.twtxt/config"
|
|
```
|
|
|
|
Now posting is as easy as:
|
|
|
|
```shell
|
|
$ tw tweet "authoring a snippet on how to configure alias twtxt"
|
|
```
|