I add a zsh `custom` folder inside my versioned .config repo for aliases, functions, and themes:
`mkdir -p "$HOME/.config/zsh/custom"`
Copy folder structure and examples, `cd "$HOME/.config/zsh" && cp -r ~/.oh-my-zsh/custom/ ./custom`
Edit `zshrc` to set `ZSH_CUSTOM`.
To customise the prompt with a timestamp and git info, I create a theme in: `~/.oh-my-zsh/custom/themes/di.zsh-theme`
#zsh #zshell #DiSetsUpAMacBook 18/n
For zsh, I group completion cache files into a subdirectory to minimise the loose collection of stray files in my home directory. I edit `~/.config/zsh/zshrc` and add comp dump file details before `source $ZSH/oh-my-zsh.sh`.
I also move `zsh_history` (which is not really config) out of the config directory. Edit `~/.config/zsh/zshrc` and add details before `source $ZSH/oh-my-zsh.sh`.
If I decide to delete `~/.cache` on a whim to free up space on my hard drive, I'll lose my whole zsh history. That's ok! If I miss it, that's what backups are for.
Close all existing tabs and start a new shell so I don't accidentally make more files in old locations. Delete any stray `.zcompdump-*` or `.zsh_history` files already created.
#zsh #zshell #DiSetsUpAMacBook 17/n
I set up zsh with Oh My Zsh.
First, I make a directory for zsh config files in the git tracked .config dir:
`mkdir -p ~/.config/zsh`
I create a `~/.config/zsh/.zshenv` file and in it I set `ZDOTDIR` to the new config dir:
`ZDOTDIR="$HOME/.config/zsh"`
I create symlinks for the `.zshenv` file (which will be processed before other zsh files) and zshrc:
`ln -s ~/.config/zsh/zshenv ~/.zshenv`
`cd ~/.config/zsh/ && ln -s zshrc .zshrc`
#zsh #zshell #DiSetsUpAMacBook 16/n
Well, yes, because you wanted to use #zshell (or #fisshell in my case) because you want to WORK in the host system shell. That’s what’s wrong. The host system shell is just for administering other containers (including the #distrobox ones) and you should remove all temptation to use it for real work.
One of the things that always strikes me as kind of wierd about the current state of immutable distros; is how things like cli shells factor in.
Like it doesn't square right to me, to entertain installing #zshell via distrobox or flathub, and I generally WANT it as my default shell.
All the os-tree documentation in #Fedora and all the transactional-update documentation in #OpenSuse seems to imply your recklessly breaking the spirit of the immutable distro by adding it to the base system.
This has more or less lead me to believe that immutable linux distros are not for me, despite not minding flatpak much at all these days.
Maybe im missing something? #zsh #ImmutableOS #immutable #immutabledistro #distrobox #flatpak #linux #floss
@kenshirriff @b0rk Always default to enclosing file names and other argument strings to your #shell in 'single quotes' unless you want it mucked about with substituting $ENVIRONMENT_VARIABLES or `command substitution` (which uses an entirely other kind of quote!)
"Double quotes" will honor the spaces but also tell your shell to look for variable and command expansion.
Another #OpenSource project pulls back from active #development:
#Powerlevel10k (a theme engine for the #zsh command-line #shell) author Roman Perepelitsa has placed the project on "life support” due to the high cost and mental strain of addressing personalized assistance requests: https://github.com/romkatv/powerlevel10k/issues/2690#issuecomment-2132146751
Hey, zsh and iTerm2 users! Wanna jump between words on your terminal? Add this snippet into your ~/.zshrc file, and reload the shell. This allows you to use Option + Left/Right arrows to move one word forward or backward.
bindkey "[D" backward-word
bindkey "[C" forward-word
bindkey "^[a" begining-of-line
bindkey "^[e" end-of-line
Could this be the issue?
"If the file does exist in that for (no funny characters), one other possibility is that you're trying to run a 32-bit ELF program on a system that's not correctly set up to run them (i.e., a 64-bit system without the libraries and support infrastructure for 32-bit)."
From:
https://stackoverflow.com/questions/48179399/zsh-no-such-file-or-directory-error-but-file-exist
Hacking an Obsolete Yet Modern Calculator - The gold standard for graphing calculators, at least in the US, are the Texas Inst... - https://hackaday.com/2021/11/01/hacking-an-obsolete-yet-modern-calculator/ #texasinstruments #retrocomputing #computerhacks #calculator #ticalc.org #zshell #retro #ti-84 #z80 #ti