Change default shell in linux
Check current default shell
ps -p $$
# or
echo $0
# in my case
# /bin/bash
Get all shells available
cat /etc/shells
# in my case
# /bin/sh
# /bin/bash
# /bin/rbash
# /bin/dash
# /usr/bin/tmux
Swtich to different shell
# change to bash shell
bash
# or
chsh -s /bin/bash # chsh: change shell
to find full path of shell
type -a bash
# bash is /bin/bash
change to Oh my zsh
# zsh ์ค์น
sudo apt-get install zsh
# ์ค์น๊ฒฝ๋ก ํ์ธ
which zsh
#=> /usr/bin/zsh
# ๊ธฐ๋ณธ sh ๋ณ๊ฒฝ
chsh -s $(which zsh)
# or
chsh -s /usr/bin/zsh
change theme
go to ~/.zshrc
# edit by vim
vim ~/.zshrc
change theme to whatever you want ZSH_THEME=โagnosterโ
Change shell
just type bash or zsh on CLI
Showing only user name
https://stackoverflow.com/questions/31848957/zsh-hide-computer-name-in-terminal
VSCODE remote connection font broken
server์์๋ ์ ๋ณด์ด๋๋ฐ
vscode remote connection์ผ๋ก ํ ๋๋ ํฐํธ๊ฐ ๊นจ์ง๋ค.
windows ํ๊ฒฝ์ด๋ผ์ ๊ทธ๋ฐ๊ฑฐ ๊ฐ๋ค.
windows ํ๊ฒฝ์์ powerline font ์ค์น
download ๋ฐ์ fonts-master directory๋ก ๊ฐ์ ์ฐธ๊ณ ํ ๋ธ๋ก๊ทธ๋๋ก ์ค์นํ๋ฉด ๋๋ค.
์ค์นํ ์ํ๋ powerline font ์ค ํ๋๋ฅผ
vscode file -> prefererences -> settings
or
ctrl + ,
๋ฅผ ์
๋ ฅํด์ setting์ ๋ค์ด๊ฐ์
terminal font๋ฅผ ๊ฒ์ํด์
Terminal โบ Integrated: Font Family
์ฌ๊ธฐ์ธ ์ค์น๋ ์ํ๋ font๋ช
์ ๋ฃ์ด์ฃผ๋ฉด ์ ์ฉ๋๋ ๊ฒ์ ๋ณผ ์ ์๋ค.
๊ฐ์ธ์ ์ผ๋ก Space Mono for Powerline, Roboto Mono for Powerline, Cousine for Powerline ์ค์์
Cousine์ด ์ ์ผ ์ ์ ํด ๋ณด์ธ๋ค.
window ํ๊ฒฝ์์ powerline font ์ค์น https://slmeng.medium.com/how-to-install-powerline-fonts-in-windows-b2eedecace58
find default shell and change https://www.cyberciti.biz/faq/how-to-change-shell-to-bash/
ubuntu zsh & oh-my-zsh install https://tutorialpost.apptilus.com/code/posts/tools/using-zsh-oh-my-zsh/
Leave a comment