Building A Privacy-First Terminal History Tool
After losing commands too many times due to bash history conflicts, I started researching what's available. The landscape is... messy.
The Current State:
Bash history still fights with itself across multiple sessions
Atuin is great, but it sends your commands to their servers (raising privacy concerns?)
McFly is looking for maintainers (uncertain future)
Everyone's solving 80% of the problem, but with different trade-offs
What I'm Building: CommandChronicles focuses on local-first privacy with the rich features you want. Your command history stays on your machine, syncs seamlessly across your sessions, and includes a fuzzy search that works.
The goal isn't to reinvent everything - it's to combine the reliability people want from modern tools with the privacy and control of local storage.
Question for the community: What's your biggest pain point with terminal history? Are you sticking with basic bash history, or have you found something that works well for your workflow?
Currently in early development, but would love to hear what features matter most to developers who've been burned by history loss before.
https://redd.it/1m7wmmm
@r_bash
After losing commands too many times due to bash history conflicts, I started researching what's available. The landscape is... messy.
The Current State:
Bash history still fights with itself across multiple sessions
Atuin is great, but it sends your commands to their servers (raising privacy concerns?)
McFly is looking for maintainers (uncertain future)
Everyone's solving 80% of the problem, but with different trade-offs
What I'm Building: CommandChronicles focuses on local-first privacy with the rich features you want. Your command history stays on your machine, syncs seamlessly across your sessions, and includes a fuzzy search that works.
The goal isn't to reinvent everything - it's to combine the reliability people want from modern tools with the privacy and control of local storage.
Question for the community: What's your biggest pain point with terminal history? Are you sticking with basic bash history, or have you found something that works well for your workflow?
Currently in early development, but would love to hear what features matter most to developers who've been burned by history loss before.
https://redd.it/1m7wmmm
@r_bash
CommandChronicles
CommandChronicles - Never Lose a Command Again
Terminal history tracker for developers with end-to-end encryption. Save, search, and sync your command line history across all devices.
I expected 55 but I got 0+1+2+...
bash-3.2$ total=0
bash-3.2$ for i in {1..10};
\> do
\> total=$total+$i
\> done
bash-3.2$ echo $total
0+1+2+3+4+5+6+7+8+9+10
https://redd.it/1m7rz71
@r_bash
bash-3.2$ total=0
bash-3.2$ for i in {1..10};
\> do
\> total=$total+$i
\> done
bash-3.2$ echo $total
0+1+2+3+4+5+6+7+8+9+10
https://redd.it/1m7rz71
@r_bash
Reddit
From the bash community on Reddit
Explore this post and more from the bash community
I built a GTK-based Bash Script Manager in C#/.NET, run and manage your bash noscripts with a simple GUI
i built an bash noscript manager if anyones interested
https://github.com/Samoreilly/BashScriptManager
https://redd.it/1m84mxd
@r_bash
i built an bash noscript manager if anyones interested
https://github.com/Samoreilly/BashScriptManager
https://redd.it/1m84mxd
@r_bash
GitHub
GitHub - Samoreilly/BashScriptManager
Contribute to Samoreilly/BashScriptManager development by creating an account on GitHub.
Some tips on running substantial cron jobs reliably
https://www.davidcraddock.net/posts/cron-jobs-finally-running-reliably/
https://redd.it/1m88qgm
@r_bash
https://www.davidcraddock.net/posts/cron-jobs-finally-running-reliably/
https://redd.it/1m88qgm
@r_bash
DavidCraddock.net
Cron Jobs Finally Running Reliably
FINALLY, with the help of fcron, judicious use of Bash debugging, and a lot of freaking around, I have managed to get scheduled cron jobs running the way I want to.
For a supposedly lightweight process, there are actually a ton of ‘gotchas’ which will likely…
For a supposedly lightweight process, there are actually a ton of ‘gotchas’ which will likely…
Simple question about # shellcheck source=/path
Hi,
I have started using
# shellcheck source=../utils/myfunctions.bash
mysource myfunctions # let's just assume this sources the myfunctions.bash after preparing the correct file path.
The problem is,
https://redd.it/1m916h3
@r_bash
Hi,
I have started using
shellcheck today in VS Code using the Bash IDE extension, and my beginners' question is: how to make it recognize functions defined in another file without actually 'sourcing' the file? The problem is, shellcheck can't understand that I'm using a non-conventional function for sourcing the file which itself is defined somewhere else. Let's say that's called mysource. So I'm doing # shellcheck source=../utils/myfunctions.bash
mysource myfunctions # let's just assume this sources the myfunctions.bash after preparing the correct file path.
The problem is,
shellcheck is adamant on not recognizing (/auto-completing etc.) unless I use the official "source" or "." for the file with its full path. What's even the point of the comment if I really have to do that? If I really had to give the full path of the file with "source" or ".", then it works regardless of my writing the shellcheck source directive or not. I have also created the ~/.shellcheckrc file and placed external-sources=true in that. I have even reproduced this problem in a very small sample folder with just two files in the same directory. Without officially sourcing it doesn't want to recognize the functions... How to fix that? https://redd.it/1m916h3
@r_bash
Reddit
From the bash community on Reddit
Explore this post and more from the bash community
Built Blade — A Clean Bash Tool to Download YouTube Videos from Terminal (No Ads, No GUI)
https://redd.it/1m91wto
@r_bash
https://redd.it/1m91wto
@r_bash
Ghostty terminal not opening new tabs in same directory — Bash + Starship issue?
I’m using Ghostty terminal on macOS with the Starship prompt and Bash. In most other terminals (like iTerm2 or Alacritty), when I open a new tab, it starts in the same working directory as the previous one. But in Ghostty, new tabs always start in my home directory, even though Ghostty is supposed to support OSC 9;9 to inherit the working directory. I’ve set PROMPT_COMMAND='printf "\\e\]9;9;%s\\a" "$PWD"; starship_precmd' at the end of my .bashrc, and verified it’s there by checking echo "$PROMPT_COMMAND". I’ve also tried disabling Starship entirely and just using the Ghostty escape sequence on its own, but new tabs still open in \~. I’m on the latest version of Ghostty (via Homebrew). Manually running the escape sequence doesn’t seem to help either. Has anyone gotten directory tracking to work properly in Ghostty with Bash and/or Starship?
https://redd.it/1m8b2s7
@r_bash
I’m using Ghostty terminal on macOS with the Starship prompt and Bash. In most other terminals (like iTerm2 or Alacritty), when I open a new tab, it starts in the same working directory as the previous one. But in Ghostty, new tabs always start in my home directory, even though Ghostty is supposed to support OSC 9;9 to inherit the working directory. I’ve set PROMPT_COMMAND='printf "\\e\]9;9;%s\\a" "$PWD"; starship_precmd' at the end of my .bashrc, and verified it’s there by checking echo "$PROMPT_COMMAND". I’ve also tried disabling Starship entirely and just using the Ghostty escape sequence on its own, but new tabs still open in \~. I’m on the latest version of Ghostty (via Homebrew). Manually running the escape sequence doesn’t seem to help either. Has anyone gotten directory tracking to work properly in Ghostty with Bash and/or Starship?
https://redd.it/1m8b2s7
@r_bash
Reddit
From the bash community on Reddit
Explore this post and more from the bash community
I made a noscript that lets you play YouTube directly from your terminal
https://github.com/yatharthgeek/yt-play
This is the noscript and I want you guys to review it make it a little better cause it's super ugly and basic and sometimes fails.
https://redd.it/1maoh8e
@r_bash
https://github.com/yatharthgeek/yt-play
This is the noscript and I want you guys to review it make it a little better cause it's super ugly and basic and sometimes fails.
https://redd.it/1maoh8e
@r_bash
GitHub
GitHub - yatharthgeek/yt-play
Contribute to yatharthgeek/yt-play development by creating an account on GitHub.
'\r': command not found
Hello group, I am sure this is a total newbie to bash question, but I tried adding logging to a simple rclone backup noscript and I do not understand the error, because there is no "\\r" in the noscript. The rclone synch runs successfully.
The noscript:
Result including cat to verify the noscript run:
>barry@barryubuntu:\~/sh$ sudo bash backup.sh
>[sudo\] password for barry:
>backup.sh: line 3: $'\\r': command not found
>backup.sh: line 4: syntax error near unexpected token `$'{\\r''
>'ackup.sh: line 4: `log() {
>barry@barryubuntu:\~/sh$ cat backup.sh
>\#!/bin/bash
>LOG_FILE="/var/log/backup.log"
>log() {
>echo "$(date '+%Y-%m-%d %H:%M:%S') - $1" >> "${LOG_FILE}"
>}
>log "Starting the noscript"
>rclone sync -v --create-empty-src-dirs /$HOME/Documents Google:Documents
>log "Script completed successfully"
>
As I said the rclone synch is working, I am just trying to get backup to Google drive like I had in Windows before switching to Ubuntu a few months ago. But logging sure would be an easier way to make sure it is functioning. This logging piece I simply copied from a lesson in bash noscript logging. Thanks all.
https://redd.it/1maxlgw
@r_bash
Hello group, I am sure this is a total newbie to bash question, but I tried adding logging to a simple rclone backup noscript and I do not understand the error, because there is no "\\r" in the noscript. The rclone synch runs successfully.
The noscript:
#!/bin/bashLOG_FILE="/var/log/backup.log"log() {echo "$(date '+%Y-%m-%d %H:%M:%S') - $1" >> "${LOG_FILE}"}log "Starting the noscript"rclone sync -v --create-empty-src-dirs /$HOME/Documents Google:Documentslog "Script completed successfully"Result including cat to verify the noscript run:
>barry@barryubuntu:\~/sh$ sudo bash backup.sh
>[sudo\] password for barry:
>backup.sh: line 3: $'\\r': command not found
>backup.sh: line 4: syntax error near unexpected token `$'{\\r''
>'ackup.sh: line 4: `log() {
>barry@barryubuntu:\~/sh$ cat backup.sh
>\#!/bin/bash
>LOG_FILE="/var/log/backup.log"
>log() {
>echo "$(date '+%Y-%m-%d %H:%M:%S') - $1" >> "${LOG_FILE}"
>}
>log "Starting the noscript"
>rclone sync -v --create-empty-src-dirs /$HOME/Documents Google:Documents
>log "Script completed successfully"
>
As I said the rclone synch is working, I am just trying to get backup to Google drive like I had in Windows before switching to Ubuntu a few months ago. But logging sure would be an easier way to make sure it is functioning. This logging piece I simply copied from a lesson in bash noscript logging. Thanks all.
https://redd.it/1maxlgw
@r_bash
trackip.net
TrackIP - Instantly Check Your IP Address
TrackIP is a simple and secure way to check your current IP address and its country. Track your IP history when signed in.
Trying to make a debug flag. It ain't easy...
https://preview.redd.it/fnbn87r1khff1.jpg?width=473&format=pjpg&auto=webp&s=fbbd7e3ec5f68975f1a89d1ef9ae4b8d46fd6612
Made the question a README in a repo in my GitHub since it keeps getting the BS Reddit Filter here
https://github.com/Ian-Marcel/Trying-to-make-a-debug-flag-It-ain-t-easy/blob/stable/README.md
https://redd.it/1maxwhj
@r_bash
https://preview.redd.it/fnbn87r1khff1.jpg?width=473&format=pjpg&auto=webp&s=fbbd7e3ec5f68975f1a89d1ef9ae4b8d46fd6612
Made the question a README in a repo in my GitHub since it keeps getting the BS Reddit Filter here
https://github.com/Ian-Marcel/Trying-to-make-a-debug-flag-It-ain-t-easy/blob/stable/README.md
https://redd.it/1maxwhj
@r_bash
Need help making a noscript for file decoding
So I’m not good at coding whatsoever. But I’m trying to streamline the process of decoding a non-compatible surround audio file to a .wav file with dolby reference player. Asked chat gpt but the ponctuation is so damn confusing. The commands for this process are:
drp “input file path” --ac4dec-dmx-mode hp --ac4dec-drc-enabled false --ac4dec-out-ref-level 0 --ac4dec-limiter-enabled false --ac4dec-pres-index 1 --audio-out-file ‘input file name’.wav
Could yall please help me figure out how do I make a noscript so that I’ll just have to input the .ac4 file and let it do its thing? Appreciate yall in advance. Sorry for the formating, posting on a phone.
https://redd.it/1mbb23k
@r_bash
So I’m not good at coding whatsoever. But I’m trying to streamline the process of decoding a non-compatible surround audio file to a .wav file with dolby reference player. Asked chat gpt but the ponctuation is so damn confusing. The commands for this process are:
drp “input file path” --ac4dec-dmx-mode hp --ac4dec-drc-enabled false --ac4dec-out-ref-level 0 --ac4dec-limiter-enabled false --ac4dec-pres-index 1 --audio-out-file ‘input file name’.wav
Could yall please help me figure out how do I make a noscript so that I’ll just have to input the .ac4 file and let it do its thing? Appreciate yall in advance. Sorry for the formating, posting on a phone.
https://redd.it/1mbb23k
@r_bash
Reddit
From the bash community on Reddit
Explore this post and more from the bash community
Question about Docker usage in a bash noscript
Hey, im a total beginner to bash noscripting, so sorry for potentially noob question. Recently I decided to write a simple noscript for automatically converting and sending ebooks to my e-reader using Calibre's utilities. It also utilizes secret-tool for safely storing mail credentials.
In such a scenario, would it be better to demand users to install Calibre locally, or containerize my noscript via Docker? The second option seems a bit excessive for a noscript consisting of two small files but I'm not sure what are the standard solutions in such scenarios. Also it's my first time using Docker so I'm a bit lost.
Thanks in advance!
https://redd.it/1mbre2x
@r_bash
Hey, im a total beginner to bash noscripting, so sorry for potentially noob question. Recently I decided to write a simple noscript for automatically converting and sending ebooks to my e-reader using Calibre's utilities. It also utilizes secret-tool for safely storing mail credentials.
In such a scenario, would it be better to demand users to install Calibre locally, or containerize my noscript via Docker? The second option seems a bit excessive for a noscript consisting of two small files but I'm not sure what are the standard solutions in such scenarios. Also it's my first time using Docker so I'm a bit lost.
Thanks in advance!
https://redd.it/1mbre2x
@r_bash
Reddit
From the bash community on Reddit
Explore this post and more from the bash community
Question about Docker usage in a bash noscript
Hey, im a total beginner to bash noscripting, so sorry for potentially noob question. Recently I decided to write a simple noscript for automatically converting and sending ebooks to my e-reader using Calibre's utilities. It also utilizes secret-tool for safely storing mail credentials.
In such a scenario, would it be better to demand users to install Calibre locally, or containerize my noscript via Docker? The second option seems a bit excessive for a noscript consisting of two small files but I'm not sure what are the standard solutions in such scenarios. Also it's my first time using Docker so I'm a bit lost.
Heres the noscript for anyone interested (it might not currently work on your machine, hence this post): https://github.com/Dewaszmi/send-to-kindle-noscript
https://redd.it/1mbmnf1
@r_bash
Hey, im a total beginner to bash noscripting, so sorry for potentially noob question. Recently I decided to write a simple noscript for automatically converting and sending ebooks to my e-reader using Calibre's utilities. It also utilizes secret-tool for safely storing mail credentials.
In such a scenario, would it be better to demand users to install Calibre locally, or containerize my noscript via Docker? The second option seems a bit excessive for a noscript consisting of two small files but I'm not sure what are the standard solutions in such scenarios. Also it's my first time using Docker so I'm a bit lost.
Heres the noscript for anyone interested (it might not currently work on your machine, hence this post): https://github.com/Dewaszmi/send-to-kindle-noscript
https://redd.it/1mbmnf1
@r_bash
GitHub
GitHub - Dewaszmi/send-to-kindle-noscript: Simple bash noscript utilising Calibre's file conversion and SMTP utilities to automatically…
Simple bash noscript utilising Calibre's file conversion and SMTP utilities to automatically convert your ebooks to .epub and send them to your Kindle via SMTP server - Dewaszmi/send-to-kindl...
Infant's request from experts as someone who is entering the world of Bash as a tool
For context I switched to Linux 3 weeks ago on a Debian based architecture and I have fallen in love with it but I am not using to its best potential. I want to switch to arch Linux and I am currently learning by testing in on a Virtual Environment (qemu-kvm) in particular .What is the best way to go about learning bash from scratch, noscripting and eventually becoming an expert given I am also done and expecting graduation soon in electrical and telecommunications and on my research I have learnt that backbone of telecoms and Networking as a whole is Linux. Any advise is highly appreciated as I want to commit fully into learning the language and the best way is always asking the experts.
https://redd.it/1mbm6gw
@r_bash
For context I switched to Linux 3 weeks ago on a Debian based architecture and I have fallen in love with it but I am not using to its best potential. I want to switch to arch Linux and I am currently learning by testing in on a Virtual Environment (qemu-kvm) in particular .What is the best way to go about learning bash from scratch, noscripting and eventually becoming an expert given I am also done and expecting graduation soon in electrical and telecommunications and on my research I have learnt that backbone of telecoms and Networking as a whole is Linux. Any advise is highly appreciated as I want to commit fully into learning the language and the best way is always asking the experts.
https://redd.it/1mbm6gw
@r_bash
Reddit
From the bash community on Reddit
Explore this post and more from the bash community
How to clear cache and cookies across all browsers for localhost:3002?
You have a specific website localhost:3002
You have firefox, safari and chrome installed
You want to clear cache and cookies for this website across all browsers
Anyone know if this is doable with a bash noscript?
https://redd.it/1mc3c6s
@r_bash
You have a specific website localhost:3002
You have firefox, safari and chrome installed
You want to clear cache and cookies for this website across all browsers
Anyone know if this is doable with a bash noscript?
https://redd.it/1mc3c6s
@r_bash
Reddit
From the bash community on Reddit
Explore this post and more from the bash community
How do fill the next prompt
Is there a command or way to make a a noscript that works like the following
$ inject "echo test"
$ echo test
without executing echo test
https://redd.it/1mc4296
@r_bash
Is there a command or way to make a a noscript that works like the following
$ inject "echo test"
$ echo test
without executing echo test
https://redd.it/1mc4296
@r_bash
Reddit
From the bash community on Reddit
Explore this post and more from the bash community
An app that lets you view a live snapshot of your shell output
Hi,
I’m thinking about making a small app that shows a live view of your shell output — like tail -f or noscript output — in a clean, glassy overlay on your phone screen (maybe even on a widget). It’s useful for monitoring the status of running code, for instance.
Would you use and maybe pay a 1 time fee for something like that? Thanks!
View Poll
https://redd.it/1mcnhc4
@r_bash
Hi,
I’m thinking about making a small app that shows a live view of your shell output — like tail -f or noscript output — in a clean, glassy overlay on your phone screen (maybe even on a widget). It’s useful for monitoring the status of running code, for instance.
Would you use and maybe pay a 1 time fee for something like that? Thanks!
View Poll
https://redd.it/1mcnhc4
@r_bash
Reddit
From the bash community on Reddit
Explore this post and more from the bash community
I built rewindtty: a C tool to record and replay terminal sessions as JSON logs (like a black box for your CLI)
https://github.com/debba/rewindtty
https://redd.it/1mcl77k
@r_bash
https://github.com/debba/rewindtty
https://redd.it/1mcl77k
@r_bash
GitHub
GitHub - rewindtty/rewindtty: A terminal session recorder and replayer written in C that allows you to capture and replay terminal…
A terminal session recorder and replayer written in C that allows you to capture and replay terminal sessions with precise timing. - rewindtty/rewindtty
Why is rsync not escaping spaces? At my wit's end.
Pretty sure I tried all the forms of escaping spaces by now, I just can't figure it out, so please forgive what may be a beginner question:
Because Windows 11 is a @#$ and Microsoft a @#$, I am trying to use a 64 GB NTFS partition on nvme 0n1 as a cross platform place to synchronize things but OpenSUSE LEAP 15.6 doesn't always have an easy time mounting it automatically at /mnt/CROSSPLATFORM.
So I decided, set a $DIR variable based on which, mounting in XFCE, or mounting through fstab, happens. That way if fstab fails to mount to /mnt/CROSSPLATFORM, it will pick up on that and go to the manually mounted /run/media/fool/etc.....
But rsync keeps complaining that it cannot change directories to the directory. And then it will sometimes create the directory with the escape characters. I've tried no escapes, escapes, no quotes, single quotes, double quotes, and I can't get it to simply see that the two destinations have spaces in the name. Error:
Here's the bash noscript that I'm trying to fix:
https://redd.it/1mcqpgo
@r_bash
Pretty sure I tried all the forms of escaping spaces by now, I just can't figure it out, so please forgive what may be a beginner question:
Because Windows 11 is a @#$ and Microsoft a @#$, I am trying to use a 64 GB NTFS partition on nvme 0n1 as a cross platform place to synchronize things but OpenSUSE LEAP 15.6 doesn't always have an easy time mounting it automatically at /mnt/CROSSPLATFORM.
So I decided, set a $DIR variable based on which, mounting in XFCE, or mounting through fstab, happens. That way if fstab fails to mount to /mnt/CROSSPLATFORM, it will pick up on that and go to the manually mounted /run/media/fool/etc.....
But rsync keeps complaining that it cannot change directories to the directory. And then it will sometimes create the directory with the escape characters. I've tried no escapes, escapes, no quotes, single quotes, double quotes, and I can't get it to simply see that the two destinations have spaces in the name. Error:
sending incremental file listrsync: [sender] change_dir "/run/media/fool/CROSSPLATFORM/Documents/Games/Baldurs\ Gate\ 3" failed: No such file or directory (2)created directory /home/fool/Documents/Games/Baldurs\ Gate\ 3sent 19 bytes received 80 bytes 198.00 bytes/sectotal size is 0 speedup is 0.00rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1336) [sender=3.2.7]Here's the bash noscript that I'm trying to fix:
#!/bin/bashif mountpoint -q /run/media/fool/CROSSPLATFORMthenDIR="/run/media/fool/CROSSPLATFORM/Documents/Games/Baldurs\ Gate\ 3/"elseDIR="/mnt/CROSSPLATFORM/Documents/Games/Baldurs\ Gate\ 3/"firsync -av --progress --delete "$DIR" "/home/fool/Documents/Games/Baldurs\ Gate\ 3/"https://redd.it/1mcqpgo
@r_bash
Reddit
From the bash community on Reddit
Explore this post and more from the bash community
I made a small flashcard program a few weeks back, thought that I should share
https://github.com/ANSI-D/molniya-flashcards
https://redd.it/1mdi3kh
@r_bash
https://github.com/ANSI-D/molniya-flashcards
https://redd.it/1mdi3kh
@r_bash
GitHub
GitHub - ANSI-D/molniya-flashcards: Simple shell flashcard program
Simple shell flashcard program. Contribute to ANSI-D/molniya-flashcards development by creating an account on GitHub.