home.social

#zshell — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #zshell, aggregated by home.social.

  1. @josevnz

    Looks complex. (-:

    C shell:

    % printf '%s\n' $path

    Z shell:

    % printf '%q\n' "$path[@]"

    #UnixShells #CShell #ZShell #zsh #csh

  2. I found my #ti85 from the early 90s, on which I had installed #zshell in 1994 so I could play tetris in class. I gave it to my teenager, who scratched out my first name to write theirs, and is now trying to beat my 30yo high score. #PermaComputing

  3. Configurando o prompt de zshell para amosar a versión de python no venv activo

    comacero.eu/posts/pil_zsh_prom

    #zshell #zsh #python #git

  4. 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

  5. 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

  6. 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

  7. @trashheap

    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.

  8. @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.

    #Linux #Unix #bash #zsh #Zshell #ksh #csh #tcsh #fish #FishShell

  9. 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: github.com/romkatv/powerlevel1

    #Z_Shell #Zshell

  10. 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: github.com/romkatv/powerlevel1

    #Z_Shell #Zshell

  11. 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: github.com/romkatv/powerlevel1

    #Z_Shell #Zshell

  12. 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: github.com/romkatv/powerlevel1

    #Z_Shell #Zshell

  13. 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: github.com/romkatv/powerlevel1

    #Z_Shell #Zshell

  14. 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

    #zsh #zshell #macos #iterm2

  15. @freemo

    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:
    stackoverflow.com/questions/48

    #Linux #ZShell

  16. CW: Rosetta Code

    And now I did #zsh :

    rosettacode.org/wiki/Modular_e

    But really it is #GNU #expr doing the work. I had considered using GNU #bc instead. Basically anything that can do the calculation. Unix-users in the old days often liked hoc; maybe there is a hoc implementation you could use. :)

    #zshell #RosettaCode

  17. I feel like such an amateur.

    I only have 2 aliases set up in my #MacOS shell (zshell).

    My productivity is likely suffering greatly. Send help. 🤓

    #FOMO #WebDev #Linux #ZShell #SoftwareDevelopment #ZSH