Skip to content

Commit e156199

Browse files
move shell-hooks into oops crate for publishing
1 parent 04c91f5 commit e156199

7 files changed

Lines changed: 6 additions & 6 deletions

File tree

β€Ž.github/workflows/release.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
mkdir -p dist/oops-${{ github.ref_name }}/systemd dist/oops-${{ github.ref_name }}/shell-hooks
1515
cp target/release/oops dist/oops-${{ github.ref_name }}/
1616
cp systemd/oopsd.service dist/oops-${{ github.ref_name }}/systemd/
17-
cp shell-hooks/* dist/oops-${{ github.ref_name }}/shell-hooks/
17+
cp oops/shell-hooks/* dist/oops-${{ github.ref_name }}/shell-hooks/
1818
cp README.md LICENSE dist/oops-${{ github.ref_name }}/
1919
tar -C dist -czf oops-${{ github.ref_name }}-x86_64-unknown-linux-gnu.tar.gz oops-${{ github.ref_name }}
2020
- name: Create release

β€ŽCONTRIBUTING.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cargo test --workspace
2222
- `oops-core/` β€” shared types, command classifier, redirect scanner, SQLite storage, IPC protocol
2323
- `oops/` β€” single binary: CLI client + daemon (`oops daemon` subcommand)
2424
- `oops-tui/` β€” ratatui-based terminal UI for `list` and `diff`
25-
- `shell-hooks/` β€” bash/zsh/fish preexec hook scripts
25+
- `oops/shell-hooks/` β€” bash/zsh/fish preexec hook scripts
2626
- `systemd/` β€” systemd user service unit
2727

2828
## Design notes

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Shell-hook capture cannot intercept destructive commands from cron, systemd serv
9292
- `oops-core/` β€” types, command classifier, redirect scanner, SQLite storage, IPC protocol
9393
- `oops/` β€” single binary (CLI + daemon subcommand)
9494
- `oops-tui/` β€” ratatui terminal UI for `list` and `diff`
95-
- `shell-hooks/` β€” bash, zsh, fish preexec hook scripts
95+
- `oops/shell-hooks/` β€” bash, zsh, fish preexec hook scripts
9696
- `systemd/` β€” systemd user service unit
9797

9898
## License

β€Žoops/src/main.rsβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ async fn main() {
5959
}
6060
}
6161
Some(Cmd::Init { shell }) => match shell.as_str() {
62-
"bash" => print!("{}", include_str!("../../shell-hooks/oops.bash")),
63-
"zsh" => print!("{}", include_str!("../../shell-hooks/oops.zsh")),
64-
"fish" => print!("{}", include_str!("../../shell-hooks/oops.fish")),
62+
"bash" => print!("{}", include_str!("../shell-hooks/oops.bash")),
63+
"zsh" => print!("{}", include_str!("../shell-hooks/oops.zsh")),
64+
"fish" => print!("{}", include_str!("../shell-hooks/oops.fish")),
6565
_ => {
6666
eprintln!("supported shells: bash, zsh, fish");
6767
std::process::exit(1)

0 commit comments

Comments
Β (0)