The History of the First Computer Shell
BASH? PowerShell? It all traces back to 1963. And the work of an amazing Frenchman, CTTS, and Multics. ⌘ Read more
http://aral.iut-rodez.fr/fr/sanchis/enseignement/bash/ introducion a la programmation en bash
https://github.com/dvorka/hstr bash zsh history
https://github.com/cfenollosa/bashblog bash blog engine in one file
A new text-mode “Psuedo-3D Engine” written in BASH
Imagine an old-school dungeon crawler, first person game. In ASCII art. Running in your terminal. It’s a thing of beauty. ⌘ Read more
5 DevOps tips to speed up your developer workflow
From learning YAML to scripting with Bash, here are a few simple tips for developers who want to speed up their workflows. ⌘ Read more
This will be the last entry on this conversation (hopefully!):
#!/bin/bash
echo "hello world"
The end!
TIL that changing a .bashrc alias to a bash function requires you to restart the terminal as calling source ~/.bashrc does not change the alias to the function call.
https://blog.seboss666.info/2020/04/programmation-defensive-en-bash/ bash code script shell
@prologic@twtxt.net Txtnish adds a 28 character timestamp to the message, so in Bash: tweet=tail -1 the current twtxt.txt file and then pipe echo body=${tweet:28} to twt.
@prologic@twtxt.net Txtnish adds a 28 character timestamp to the message, so in Bash: tweet=tail -1 the current twtxt.txt file and then pipe echo body=${tweet:28} to twt.
Used bash to remove the timestamp of the just -posted tweet to twttxt.txt and passed that to twt to re-post to the configured pod
Used bash to remove the timestamp of the just -posted tweet to twttxt.txt and passed that to twt to re-post to the configured pod
Bash emacs command history via ^R ^P ^N ^S, who knew? https://blog.pythian.com/emacs-keybindings-in-bash/
Making a bash gemlog script to maintain my gemini log
I added scripts to my bash so it cheers me up with friendly greetings and messages
@mdosch@mdosch.de Oh wow. I thought Apple was the only org out there shipping zsh by default. What was their rationale for not defaulting to bash?
Now THIS is Bash AUTISM! ⌘
Shortcut sync for bash, ranger and qutebrowser ⌘ https://www.youtube.com/watch?v=wxlJAGiRY0o
Don’t be a Bash BRAINLET! ⌘
Video up on Bash settings and aliases ⌘
I’m not even using a real client, I made a (poorly written) bash script to write messages to a file and exit if it’s over 140 characters.
Should read man bash
Using twtxt from bash now using echo
This one is coming to you from the Alfred launcher https://albertlauncher.github.io/ and a Bash script calling txtnish https://github.com/mdom/txtnish and oysttyer https://github.com/oysttyer/oysttyer #microblogging
This one is coming to you from the Alfred launcher https://albertlauncher.github.io/ and a Bash script calling txtnish https://github.com/mdom/txtnish and oysttyer https://github.com/oysttyer/oysttyer #microblogging
@mdosch@mdosch.de Apple refuses to ship GPLv3 software. bash has security bugs that Apple doesn’t want to backport. So they’ve switched default shells again, this time to zsh. (bash and the previous default, tcsh, still ship with the OS.)
Using Gnupg and openssl for encryption
I have used Gnupg to encrypt my private files, specially those that I upload to the clouds, for a long time. I used to encrypt to self, using my own key, then later moved to symmetric encryption only. The command is easy:
To encrypt:
gpg --cipher-algo aes256 --symmetric file.txt
Adding the option --armor to the above will produce an ASCII armoured encrypted file.
To decrypt:
... ⌘ [Read more](https://collantes.us/2019/07/30/using-gnupg-and-openssl-for-encryption/)
Interestingly enough, Visual Studio Code keeps running bash as its preferred shell, even though it isn’t the login shell anymore.
@kas@enotty.dk now that I understand fish enough to port over the contents of my .bashrc and .bash_profile, I’m starting to get used to it. How’s having different shell preferences for login/interactive treating you?
I wanted to feel productive this evening, but I didn’t want to do any useful work. In related news, I’ve switched to https://fishshell.com/ from GPLv2 bash.
today was the day of the triennual trying of the fish shell only to go back to bash within an hour or two
I was too lazy to look up how to write a for-loop in bash so I just ran “find . -name *.ttf -exec woff2_compress {} \;”
Detecting the use of “curl | bash” server side | Application Security https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-bash-server-side/
iridakos - Creating a bash completion script https://iridakos.com/tutorials/2018/03/01/bash-programmable-completion-tutorial
@sdk@codevoid.de A comment might not be in the spec, but I know several of the twtxt files I’ve looked at have them. I know my kit bashed twtxt client ignores those lines and I’m sure other clients do too.
@kas@enotty.dk Switching shells is the reason that I started deploying scripts in /usr/local/bin rather than defining aliases. :D Tested #bash #ksh #fish and #zsh and the latter it is now for years already.
/me wonders in which world autocorrecting spelling errors during tab-completion is sane? https://github.com/mrzool/bash-sensible
Thanks @kas@enotty.dk for the final nudge to change my bash history settings. Still on the fence about PROMPT_COMMAND=“history -a” though.
@xena@xena.greedo.xeserv.us True, but the syntax it uses is so different from what I’m used to on bash/zsh
Backing up and restoring GPG keys
If you use GPG to occasionally encrypt and/or sign your email, or to encrypt your files before placing them on the cloud, you will understand how important it is to have a backup of your GPG keys. Similarly important will be to know how to restore them as well.
To back your private, and public keys, as well as your trust database, you will do1:
gpg --armor --export-secret-keys > ~/Des ... ⌘ [Read more](https://collantes.us/2015/10/13/backing-up-and-restoring-gpg-keys/)