Tech Tips

  1. Uncategorized
  2. 322 view

Install zsh and Set to show adage at login

Target

Install zsh to Ubuntu 12.04 LTS and set to show adage at login.

Install zsh

$ sudo apt-get update
$ sudo apt-get install zsh
$ zsh --version
zsh 4.3.17 (i686-pc-linux-gnu)

Set zsh to default shell

$ echo $SHELL
/bin/bash
$ cat /etc/shells
# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/usr/bin/screen
/bin/zsh
/usr/bin/zsh
$ chsh
Password:
Changing the login shell for username
Enter the new value, or press ENTER for the default
    	Login Shell [/bin/bash]: /bin/zsh
--- Relogin ---
$ echo $SHELL
/bin/zsh

Config Setting

$ vim .zshrc
# Validate Auto Complementing Function
autoload -U compinit
compinit
# Validate Auto cd Function
setopt auto_cd
# Validate Directory Moving History Function
setopt auto_pushd
# Validate Command Spell Check Function
setopt correct
$ source .zshrc

Setting to show adage

$ sudo apt-get install fortune
$ vim .zlogin
# Print a Random Adage
if (( $+commands[fortune] )); then
  fortune -a
  print
fi
Done

Uncategorized recent post

  1. Run Amazon FreeRTOS on M5Stack Core2 for AWS …

  2. Udacity Self-Driving Car Engineer Nanodegree …

  3. Install sbt 1.0.0 and run sample template

  4. Visualization of Neural Network and its Train…

  5. [Machine Learning]Created docker image includ…

関連記事

PAGE TOP