Tag: zsh
Posts of Tag: zsh
  1. Zsh vs Bash

    **Zsh vs Bash** When we talk about UNIX based programming, it's usually about the shells, terminals, and the command line interfaces. The most prevalent shell in this regard is Bash but there are other variants...Learn More
    Unixbashzsh
  2. Pimp my Terminal - An Introduction to "Oh My Zsh"

    Introduction Using a terminal can be a bit of an intimidating experience in the beginning - but after you get used to it, it can boost your productivity in ways you couldn't imagine and can become quite a pleas...Learn More
    bashUnixLinuxzshshellBlog
  3. How to split on NULs in shell

    I am using zsh as a shell. I would like to execute the unix find command and put the result into a shell array variable, something like: FILES=($(find . -name '*.bak')) so that I can iterate over the values wi...Learn More
    shellzsh
  4. ZSH & Python: python as shell environment variable?

    I've been researching setting up ZSH. I've wiped my machine (Mac OS X), installed XCode (Python), ran chsh -s zsh, and installed oh-my-zsh. The masses seem to rave about Steve Losh's "Prose" theme and his tutor...Learn More
    PythonzshzshrcProgramming Languages
  5. Check if current directory is a Git repository

    I am writing a series of scripts for Git management in zsh. How do I check if the current directory is a Git repository? (When I'm not in a Git repo, I don't want to execute a bunch of commands and get a bunch...Learn More
    GitzshDev
  6. Split a paragraph into lines in ZSH

    How can I take a multi-line string in zsh, and split it into an array of strings that are a single line each? Specifically I want to take the output of cal June 2010 Su Mo Tu We Th Fr Sa 1 2 ...Learn More
    Stringshellzsh
  7. Can I make control-u behavior be the same for ZSH as it is for Bash?

    In Bash, control-u will clear from the curser to the beginning of the line, and put that text into the paste buffer, which can be pasted with control-y. In Zsh, it will clear the text, but does not put it into...Learn More
    bashzsh
  8. NLTK Brill-Tagger exits after 2.5h with exit code 137. What is wrong?

    I want to tag some text with the Brill-Tagger from NLTK. However, the script exits like this: $ ./brill.py Training Brill tagger on 43005 sentences... Finding initial useful rules... zsh: killed ./brill.py ...Learn More
    PythonzshnltkProgramming Languages
  9. How to use packages installed via easy_install in zsh?

    I use OS X (Mountain Lion) and ZSH. I can use easy_install to install some python packages but if I want to use the command in my ZSH afterwards I just get something like this: zsh: command not found: virtu...Learn More
    PythonOSXpipzsheasy-installProgramming Languages
  10. Homebrew Python ZSH truncation of interpreter path

    I am running python (installed through homebrew), zsh (using oh-my-zsh), and am running into issues with path truncation in scripts. Here is one instance of the problem running pelican (a python static site ge...Learn More
    PythonVirtualenvHomebrewzshoh-my-zshProgramming Languages
  11. Weird character zsh in emacs terminal

    When using the terminal in emacs (M-x term) under MacOS for some reason it always posts the characters 4m before every line in zsh and always prints 2 lines containing the user info such as 4m--(jesus@laptop:/d...Learn More
    OSXEmacszsh
  12. How to zero-pad numeric variables in zsh (and maybe also bash?)

    In zsh, when I have to create a bunch of files with zsh, I usually do something like: for x in $(seq 1 1000); do .....; done This works fine, it gives me files with names foo-1.txt .. foo-1000.txt. However, th...Learn More
    Linuxbashzshseqzero-padBlog