sudo apt install zsh -y
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# ~/.config/starship.toml | |
[character] | |
success_symbol = "🦄(bold green)" | |
error_symbol = "💩(bold red) " | |
[cmd_duration] | |
min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec) | |
format = " took [$duration]($style)" |
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH |
# Place the '.aliases' in ~/ home directory | |
## If using zsh add the following to '.zshrc' file: | |
### source $HOME/.aliases | |
alias up='sudo apt update && sudo apt full-upgrade -y' | |
alias si='sudo apt install -y' | |
alias sn='sudo nano' | |
alias rb='sudo reboot' | |
alias sd='sudo shutdown' | |
alias sr='sudo rm' |
/* | |
Inspired (with some changes) by Kabukicho VSCode theme by Victoria Drake [https://github.com/victoriadrake/kabukicho-vscode] | |
*/ | |
code[class*="language-"], | |
pre[class*="language-"] { | |
color: #FF39A8; | |
font-family: 'JetBrains Mono', Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; | |
border-radius: 0.5em; | |
text-align: left; |
html { | |
box-sizing: border-box; | |
height: 100%; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} | |
* { |
# Vaporwave theme for Macchina (https://github.com/Macchina-CLI/macchina) | |
# Place this file in ~/.config/macchina/themes | |
hide_ascii = true | |
prefer_small_ascii = false | |
spacing = 2 | |
padding = 0 | |
separator = "->" | |
key_color = "LightMagenta" | |
separator_color = "LightCyan" |
#!/bin/sh | |
# Stupidly simple script to download Powerlevel10k's recommended fonts from their own repo and directly into the Linux fonts directory | |
# Because for some reason Powerlevel10k doesn't include it on it's install script... | |
wget -O /usr/share/fonts/MesloLGS%20NF%20Regular.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf | |
wget -O /usr/share/fonts/MesloLGS%20NF%20Bold.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf | |
wget -O /usr/share/fonts/MesloLGS%20NF%20Italic.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf | |
wget -O /usr/share/fonts/MesloLGS%20NF%20Bold%20Italic.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf |
# Create new user in Linux: sudo adduser public (give it any password, it won't be used anyway) | |
# Give read/write permissions: sudo chmod ugo+rw /home/public | |
[global] | |
workgroup = WORKGROUP | |
server string = Samba %v %h | |
# The below should make transfers faster and is optional | |
strict allocate = Yes | |
allocation roundup size = 4096 |
This guide will use the winget
CLI tool to install and configure Oh-My-Posh. If you haven't already, I suggest installing Windows Terminal from the Microsoft Store and use Oh-My-Posh with it. If you'd rather not use Windows Terminal for some reason, you can still use Oh-My-Posh with PowerShell. Whichever you choose, check out these instructions to install winget
.
winget install JanDeDobbeleer.OhMyPosh -s winget