fix(bashrc): add ~/.local/bin to PATH in deployed bashrc
The bin/ scripts and pipx CLIs land in ~/.local/bin, which was not on PATH in either deployed bashrc. Add an idempotent PATH guard to bashrc-linux and bashrc-osx so dt, claude-provider, pymupdf, etc. are found after login. Update the install.sh and README notes to match. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
942aa8b36b
commit
262862c1b9
@ -74,7 +74,7 @@ The script is re-runnable: each run re-backs up to `~/Oldconfig` (overwriting th
|
|||||||
|
|
||||||
### CLI scripts (`bin/`)
|
### CLI scripts (`bin/`)
|
||||||
|
|
||||||
Deployed to `~/.local/bin` (must be on `PATH` — `pipx ensurepath` adds it):
|
Deployed to `~/.local/bin` (the deployed bashrc adds this dir to `PATH`):
|
||||||
|
|
||||||
- **`dt`** — manage claude-in-dtach sessions (`dt ls|at|kill`). Needs `dtach` + `fzf`.
|
- **`dt`** — manage claude-in-dtach sessions (`dt ls|at|kill`). Needs `dtach` + `fzf`.
|
||||||
- **`dtach-router`** — source from `~/.bashrc` to get a session dashboard on SSH login. Needs `dt`, `dtach`, `fzf`.
|
- **`dtach-router`** — source from `~/.bashrc` to get a session dashboard on SSH login. Needs `dt`, `dtach`, `fzf`.
|
||||||
|
|||||||
@ -7,6 +7,12 @@ alias grep='grep --color=auto'
|
|||||||
# colored GCC warnings and errors
|
# colored GCC warnings and errors
|
||||||
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||||
|
|
||||||
|
# Ensure ~/.local/bin is on PATH (pipx CLIs + personal scripts from bin/)
|
||||||
|
case ":$PATH:" in
|
||||||
|
*":$HOME/.local/bin:"*) ;;
|
||||||
|
*) export PATH="$HOME/.local/bin:$PATH" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Set history size to unlimited
|
# Set history size to unlimited
|
||||||
if [[ $EUID == 0 ]] ; then
|
if [[ $EUID == 0 ]] ; then
|
||||||
export HISTSIZE=0
|
export HISTSIZE=0
|
||||||
|
|||||||
@ -18,6 +18,12 @@ alias clean='sh ~/.script/clean.sh'
|
|||||||
# colored GCC warnings and errors
|
# colored GCC warnings and errors
|
||||||
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||||
|
|
||||||
|
# Ensure ~/.local/bin is on PATH (pipx CLIs + personal scripts from bin/)
|
||||||
|
case ":$PATH:" in
|
||||||
|
*":$HOME/.local/bin:"*) ;;
|
||||||
|
*) export PATH="$HOME/.local/bin:$PATH" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Used for vim header
|
# Used for vim header
|
||||||
export VIUSER=xuser
|
export VIUSER=xuser
|
||||||
export VIMAIL=xuser@student.42.fr
|
export VIMAIL=xuser@student.42.fr
|
||||||
|
|||||||
@ -99,4 +99,4 @@ chmod +x "$HOME"/.local/bin/dt "$HOME"/.local/bin/dtach-router "$HOME"/.local/bi
|
|||||||
|
|
||||||
echo "Done. Restart your shell or run: source ~/.bashrc"
|
echo "Done. Restart your shell or run: source ~/.bashrc"
|
||||||
echo "If you use zsh, switch to bash to enjoy these settings =)"
|
echo "If you use zsh, switch to bash to enjoy these settings =)"
|
||||||
echo "Note: ~/.local/bin must be on PATH (pipx ensurepath handles it; re-login if needed)."
|
echo "Note: the deployed bashrc puts ~/.local/bin on PATH — re-login or run: source ~/.bashrc"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user