mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-01-29 10:20:25 +01:00
Update Readme for ~/.local/bin
This commit is contained in:
parent
8c11125e04
commit
158dea9dc5
10
README.md
10
README.md
@ -41,15 +41,15 @@ To install:
|
||||
2. [Set up Recoll](#Configuring-recoll)
|
||||
3. Download cadmus and put it in the `PATH`
|
||||
```bash
|
||||
mkdir ~/.cadmus && \
|
||||
git clone https://github.com/RyanGreenup/cadmus ~/.cadmus \
|
||||
|| echo "Delete ~/.cadmus first"
|
||||
ln -s ~/.cadmus/bin/cadmus $HOME/bin/
|
||||
|| echo "Delete $HOME/.cadmus first"
|
||||
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
|
||||
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
|
||||
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user