What if your #readline shipped with Copilot?
I'm still not sure if this is something I need or not, but I got Microsoft's CodexCLI working (again), just so I could show it off.
This is how I want github #copilot CLI to integrate.
I *do* like the explanations the current Copilot CLI gives, but I want this in the readline because I want to be able to edit the command I get back.
#PowerShell #Bash #Zsh #PSReadline
https://i.imgur.com/8vbkF48.gif
P.S. My working fork is at https://github.com/Jaykul/ReadlineAI
#readline #copilot #powershell #bash #zsh #psreadline
Why am I supposed to be afraid of #AI taking my job?
My current job is figuring out the exact set of instructions that will cause a computer program, be it the #k8s controller or #zsh or the #golang compiler, to do what I want it to do.
If I try to imagine a dystopia where #CodeLLama has taken my job, and I am relegated to figuring out the exact set of instructions that will cause a computer program, in this case an LLM, to do what I want it to do, well…gosh.
What a nightmare.
#ai #k8s #zsh #golang #codellama
💡 Ever wondered about the difference between Terminal and Shell? Or Command Line and Prompt?
My latest article breaks it all down.
https://www.heyvaldemar.com/distinctions-between-terminal-command-line-shell-and-prompt/
#devops #bash #kubernetes #cicd #k8s #linux #docker #sysadmin #technology #terminal #zsh #kubectl #microservices #aws
#devops #bash #kubernetes #cicd #k8s #linux #docker #sysadmin #technology #terminal #zsh #kubectl #microservices #aws
thp now compiles against current harec/stdlib main branches, i.e. module and case-exhaustivity changes.
Let me know, if you run into any problems.
@edhowland I am hardly stuck into #zsh and happy with it
It's about scripts written on bash
@samebchase i haven’t tried grammars yet. i’ll get to them once i have more of a handle on the rest of the language 😅
so far, i’ve used #raku to solve a bunch of problems from the weekly challenges and to rewrite several #zsh scripts that used to live in my personal ~/bin directory.
i’ve also written some throwaway scripts to massage, rename, and reorganize files i rescued from an old backup.
i was initially writing some of these little scripts in #python, but i found #raku to be much more concise for manipulating the filesystem and working with text.
Wenn man älter wird, kann die zsh HIstory soooooo wertvoll sein. #altersack #zsh
@beforewisdom np.
Feel free to try out #fish and #zsh...
The latter one became #macOS's Standard after #bash went #GPLv3 and #Apple froze the Version of bash for half a decade.
And with suites like #OhMyZsh one can really rice that setup harder than #neovim + #nvChad...
AFAIK @fuchsiii is rocking that setup...
#nvchad #neovim #OhMyZsh #Apple #gplv3 #Bash #macOS #zsh #fish
Scratching your own itch.
This #zsh config will echo the current time after an ssh connection is disconnected.
Why?
I find this info useful when restarting remote server(s) via ssh:
"When can I consider testing the rebooted server/service?"
In the past I just manually entered the current time at the prompt.
This saves me the hassle.
Disclaimer: I'm sure there are better ways to do this, but this is what I came up with.
https://github.com/draptik/dotfiles/blob/60e9f50c80b6f3e6d71ae1e5f281b516bcc55979/zsh/.zshrc#L221
I briefly had a blog back when I was a Mac OS X Server admin (~15 years ago... sigh). It was a miserable failure but some of the tips and tricks might be worth revisiting today.
In the Terminal and SSH, I prefer listing directories using ls -Gal (colourized output, hidden files, long format), but I really hate typing it!
Create an alias ("list" in my case) in your #bash or #zsh profile to make life easier and less error-prone.
alias list='ls -Gal'
If you need to copy-paste content from remote servers most terminals support OSC-52. For example to copy current path of (even remote) ZSH shell to clipboard I bind Ctrl-P:
------------
copy-current-path() {
print -Pn "\e]52;Pc;$(pwd|tr -d '\n'|base64)\e\\"
}
zle -N copy-current-path
bindkey '^P' copy-current-path
------------
You can wrap this in a script and use it in pipes as well. Doesn't depend on X forwarding etc.
periodic reshare since I use this many times a day
I could never remember VScode's syntax for remote editing over SSH, so I added a command-line shell function to my dotfiles to start start it up in remote editing mode with a specific file or folder on the remote
‘vscnr user@host /path/to/project/‘