Lum7671's Weblog

My .zshrc on OSX(mac)

Posted in Mac, Software by lum7671 on 2008/06/13
This is my .zshrc on OSX.


% cat .zshrc ~
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory autocd beep extendedglob nomatch notify
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/Users/x/.zshrc'

autoload -Uz compinit
compinit
# End of lines added by compinstall

# 한글 입력을 위한 정의
INPUTRC=$HOME/.inputrc
LANG=ko_KR.UTF-8
PATH=/opt/local/bin:$PATH
SVN_EDITOR=vim

# Prompt, PS1 is left, RPS1 is right.
PS1="%m@%n%% "
RPS1="%~"

export INPUTRC LANG PATH SVN_EDITOR PS1 RPS1

alias ls='ls -FGw' # 한글 표시, 디렉토리면 뒤에 / 표시, 확장자별 색상 표시

Zemanta Pixie
Tagged with: , , , , , ,

ubuntu / chsh / change shell

Posted in Linux by lum7671 on 2008/05/21
chsh is change login shell program.
it’s contained in passwd package.

it’s used like this:

$ cat /etc/passwd
...
x:x:1000:1000:Doo-Hyun Jang,,,:/home/x:/bin/bash

$ chsh
Password:
Changing the login shell for x
Enter the new value, or press ENTER for the default
Login Shell [/bin/bash]: /usr/bin/zsh

$ cat /etc/passwd
...
x:x:1000:1000:Doo-Hyun Jang,,,:/home/x:/usr/bin/zsh

Zemanta Pixie