Alpine: install zsh and oh-my-zsh

Alpine: install zsh and oh-my-zsh

# cat /etc/shells
# valid login shells
/bin/sh
/bin/ash
/bin/bash

# apk add zsh

# cat /etc/shells
# valid login shells
/bin/sh
/bin/ash
/bin/bash
/bin/zsh

// change current shell to zsh
# vi /etc/passwd
# change by dijk
#root:x:0:0:root:/root:/bin/ash
#root:x:0:0:root:/root:/bin/bash
root:x:0:0:root:/root:/bin/zsh


// exit & relogin
# exit

// see current shell
$ echo $SHELL
/bin/zsh

// install oh-my-zsh
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
or
$ sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

➜  ~ cat /etc/shells
# valid login shells
/bin/sh
/bin/ash
/bin/bash
/bin/zsh

你可能感兴趣的:(Linux,Command,Alpine,Install,Alpine,install,zsh,oh-my-zsh,command)