Archive for the ‘Uncategorized’ Category.
Hello guys, I’ve been extremely busy with homework of late. Many many reports, in addition to two finals, have kept me away from not only blogging but doing all of my normal activities.
Tonight, I took my first final and turned in much of what my headache has been. I came home a bit early, and decided tonight would be my relaxation time. I decided that since I hadn’t tried something new in a while I would try out a new linux shell, having only ever used bash (Bourne Again SHell, the default on many distros). I asked in #ubuntu-offtopic if anybody had a particular shell they suggested. tonyyarusso suggested original Bourne, so I decided I should probably just google and see what comes up.
What came up most often was ZSH. I decided, what the hell, all this hype surely can’t be for nothing. I began by installing it from the Ubuntu repositories:
sudo apt-get install zsh
Very simple. Once done, I typed “zsh” and away I went. I was immediately impressed with the start up configuration wizard. It asked if I wanted a vanilla configuration or to customize my own, and being a geek I opted to configure it myself.
There were a few levels of configuration. I changed all the settings, enabling everything that sounded neat. autocd, command correction, full tab completion, everything that sounded like it would be fun to play with. Once done, I went to gentoo’s documentation page for it and read what they had to say. I played with all the settings they listed, including setting up my own custom prompt.
I started it up and was immediately greeted with a different prompt than I’m used to. If I remember correctly, it simply said:
dmsuperman%
I decided I didn’t like that, since I like to be able to see where I’m at. I read further down the page, and after initializing the prompt package, I started playing with it. I ran ‘export PS1=”[%n@%m:%~]“‘ and was greeted with my new prompt:
[dmsuperman@blitzkrieg:~]
Much better.
Once my prompt was how I liked it, I began toying with various features. Here are my findings:
elite2 theme with parameters `magenta':
(dmsuperman@blitzkrieg)(129/pts/10)(09:36pm:02/23/09)-
(%:~)- command arg1 arg2 … argn
oliver theme:
dmsuperman@blitzkrieg ~ % command arg1 arg2 … argn
redhat theme:
[dmsuperman@blitzkrieg ~]$ command arg1 arg2 … argn
suse theme:
dmsuperman@blitzkrieg:~/ > command arg1 arg2 … argn
Shortly after playing with all of these new features, I changed my shell from bash to zsh permanently, and am now using it happily. I suggest you all at least give it a try. Here is my finished .zshrc:
# Lines configured by zsh-newuser-install
HISTFILE=~/.zsh_hist
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory autocd
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename ‘/home/dmsuperman/.zshrc’
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Command correction
setopt correctall
# Prompt style
autoload -U promptinit
promptinit
export PS1=”[%n@%m:%~]“
# Extended glob
setopt extendedglob
# Load aliases
. ~/.zsh_aliases
Simply save this as your .zshrc and run it and you should be able to achieve what I have described above. Sorry bash, move over because zsh is the new shell for me. Until I find the next new thing to play with, at least.
I just wanted to add here, that I got tickets for Lamb of God’s upcoming tour and I am amped beyond all belief. Myself and a few friends from work (including butters) are all going to head over to the show as early as possible. It’s going to be sick. Anybody in the Columbus area that’s going, feel free to let me know, maybe you can come with us or something.