Jump to content

What shell do you use?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
Aereshaa

Aereshaa

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 790 posts
The title says it all. On your computer what shell do you use for interactive use, scripting, etc?

#2
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
Nice idea of a poll.

I voted bash.

#3
Aereshaa

Aereshaa

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 790 posts
Can you beat my l33t prompt?
Posted Image
Made with the power of zsh!
PR_TIMER="0"
PR_PWD="/etc"

function precmd { #executes each prompt
 local TERMWIDTH
 ((TERMWIDTH = ${COLUMNS} - 1))
 local PRWIDTH
 ((PRWIDTH = `whoami | wc -m` + `tty | wc -m` + `pwd | wc -m` + `date | wc -m` + 16))
 local DSHES
 ((DSHES = TERMWIDTH - PRWIDTH))
 local L_PWD
 L_PWD=$(/home/oren/bin/strhash `pwd`);
 if ((`/home/oren/bin/utm` > PR_TIMER + 30 || L_PWD != PR_PWD)) then
  echo -e "/==(\e[37m$(whoami)\e[0m)on(\e[37m$(tty)\e[0m)in(\e[35m$(pwd)\e[0m)>$(/home/oren/bin/repstr "$DSHES" "-")<(\e[31m$(date)\e[0m)==\\"
  PR_TIMER=`/home/oren/bin/utm`
  PR_PWD=$(/home/oren/bin/strhash `pwd`);
 fi
}
PS1="|==%% "
RPS1="<<(%*)==|"
PS2="|--> "
PS3="|--- "
PS4="|--- "
:cool:

#4
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
I sure can. My .bashrc:
PS1="$ "
It all depends on who you are. I prefer it simple, and that's why I don't have all the fancy stuff in my config.

#5
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I use bash I also like small prompts so that the line doesn't loop when I'm in deep sub-directories. I use about the same as v0id. How come you use zsh? I suppose I use bash because that is what I started with and that is default now.

#6
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
That's the same reason why I use bash. According to Wikipedia is zsh a collection of the most useful features of bash, ksh and tcsh, so might be worthy a try?

A bit off-topic: Does anyone know how to configure/customize the real terminal, and not just a terminal emulator (like bash, zsh, etc.)? I've got a new box which I installed Debian on. To keep it fast and clean I've chosen not to use a the X window system. I can however not really change the look of the terminal, so when I get into deep directories the line always break, because of the lenghty prompt. It sucks. Any tips?

#7
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I may give it a try then, it does sound interesting. I have no idea about your question though.

#8
Aereshaa

Aereshaa

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 790 posts

Jordan said:

I use bash I also like small prompts so that the line doesn't loop when I'm in deep sub-directories. I use about the same as v0id. How come you use zsh? I suppose I use bash because that is what I started with and that is default now.
Ah, but mine adjusts the number of dashes so that it never loops, and I'm working on a way to trunctate the path when it finally is too long.
I use zsh because my first computer had all of them installed, even rc (from plan 9). So I tested each of them, and found that I liked zsh's syntax best.