A collection of console terminals in serveral operation systems.
👉 Other "Shell" notes.
Terminals
Windows
Install cmder (drop-down by Ctr+`) and I use this personal setting files.
Files should be copied to,
# user-ConEmu.xml -> cmder/vendor/conemu-maximus5/ (or `cmder/config/`)
# user_aliases.cmd -> cmder/config/
# ubuntu.ico -> cmder/icons/
- Open settings > Startup > Tasks >
{bash::bash}
(replace{
and}
with{{
and}}
). You can change icon by modify%\icons\cmder.ico
to%\icons\ubuntu.ico
. - Using Cascadia Code PL font!
👉 Note: WSL2 on Windows.
When I use Windows Terminal (my setting file), read this tut for more.
# where windows terminal setting file locates?
C/Users/dinha/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/settings.json
👉 Dracular theme? Follow this tut.
Drop-down (quake style) whenever Ctrl + ~? Using this app + this setting file. Don't forget to put it in a fixed location and make it starting with your windows
Why I don't use this anymore?: the flash on open the terminal is annoying. You have to open by yourself both of Windows Terminal and the plugin. It's better to use cmder.
👉 Install Windows Terminal.
Change default setting theme to Linux Distro!
# Install Zsh
sudo apt-get install zsh
zsh --version
# make default
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# exit all windows and reopen
# check version
echo $SHELL # /usr/bin/zsh or similar
Continue to this note with following remarks:
- You have to install all the fonts suggested in that note (just for sure).
- You have to install MS's cascadia-code font (download zip and install all files there manually). Then you choose from Windows Terminal or cmder the font face is
Cascadia Code PL
. - This article may be interesting also.
Linux
Save/Restore settings:
# save settings
guake --save-preferences ~/Downloads/guake_prefs
# load settings
guake --restore-preferences ~/Downloads/guake_prefs
MacOS
👉 Using iTerms2. Download its settings.
- Preferences > Tab Keys > Hotkey > tick on Show/ hide all windows with a system-wide hotkey > choose key combination (Cmd + ~).
- Preferences > Profiles > Default > tab Windows > set Style to Full-Width Top of Screen and Screen to Screen with Cursor.
- Preferences > Appearance > check Exclude from Dock and ⌘-Tab Switcher
- Run on startup: System Preferences > Users and Groups > Login Items > [+] > choose iTerm.
Zsh (MacOS)
# CLI tools for Xcode
xcode-select -r
xcode-select —-install
# install hombrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Zsh
👉 Read more WSL2 + Windows + Windows Terminal.
Install Zsh + oh-my-zsh
# check is installed
zsh --version
# install (linux)
sudo apt install zsh
# install (macos - integrated)
# make zsh default bash
chsh -s $(which zsh) # log out & log in
# check
echo $SHELL # /bin/zsh or similar
# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Plugins
After installing plugins, put them in ~/.zshrc
,
plugins=(git docker docker-compose zsh-syntax-highlighting dnf npm)
# for me
# plugins=(git docker docker-compose npm ruby python emoji)
spaceship-prompt theme
This is my choice. Source code. More settings can be found here. You need to install oh-my-zsh first!
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
Set ZSH_THEME="spaceship"
in your .zshrc
.
# theme powerlevel10k
git clone https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
# after installing
p10k configure
Fonts
Install font Source Code Pro:
Follow instruction here. If some folders don't exist, create them!
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mv PowerlineSymbols.otf ~/.local/share/fonts/
fc-cache -vf ~/.local/share/fonts/
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/Download Source Code Pro and move all downloaded otf fonts to
mv SourceCode-* ~/.local/share/fonts/
Powerline font,
sudo apt-get install fonts-powerline
In terminal, choose the corresponding installed fonts.
Add alias to ~/.zshrc
(search "alias" to find the place to put).
Other plugins
- fzf -- search in terminal. (Use:
fzf
)
💬 Comments