1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-07-31 11:20:11 +02:00

Update Readme for ~/.local/bin

This commit is contained in:
Ryan Greenup
2020-07-20 05:10:02 +10:00
parent 8c11125e04
commit 158dea9dc5

View File

@@ -41,15 +41,15 @@ To install:
2. [Set up Recoll](#Configuring-recoll) 2. [Set up Recoll](#Configuring-recoll)
3. Download cadmus and put it in the `PATH` 3. Download cadmus and put it in the `PATH`
```bash ```bash
mkdir ~/.cadmus && \
git clone https://github.com/RyanGreenup/cadmus ~/.cadmus \ git clone https://github.com/RyanGreenup/cadmus ~/.cadmus \
|| echo "Delete ~/.cadmus first" || echo "Delete $HOME/.cadmus first"
ln -s ~/.cadmus/bin/cadmus $HOME/bin/ ln -s "$HOME/.cadmus/bin/cadmus" "$HOME/.local/bin/"
``` ```
3. If you haven't already add `$HOME/bin` to the `$PATH` variable, something like this should be fairly shell agnostic: 3. According to the [*SystemD Standard*](https://www.freedesktop.org/software/systemd/man/file-hierarchy.html) `~/.local/bin` should be in `$PATH`, if you are using some other init implementation you can add this directory to `"$PATH"` it by doing something like this:
``` bash ``` bash
echo $PATH | grep "$HOME/bin" &> /dev/null && echo "$HOME/bin in path already" || ls "$HOME/bin" &> /dev/null && echo 'PATH="$PATH:$HOME/bin"' >> $HOME/.profile ## Should work in bash/zsh/fish
echo $PATH | grep "$HOME/.local/bin" &> /dev/null && echo "$HOME/.local/bin in path already" || ls "$HOME/.local/bin" &> /dev/null && echo 'PATH="$PATH:$HOME/.local/bin"' >> $HOME/.profile
``` ```