Skip to content

Instantly share code, notes, and snippets.

@tscheckenbach
tscheckenbach / OhMyZsh+zshPowerlevel10k.sh
Last active June 2, 2023 16:09
ubuntu zsh installation with customized powerlevel theme
#!/usr/bin/env bash
echo ">>> Install Oh-My-ZSH"
sudo apt-get install -y zsh
wget http://install.ohmyz.sh -O - | zsh
#!/usr/bin/env bash
echo ">>> Install powerlevel10k theme"
git clone https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k
#!/bin/sh
# the file containing this gist must be executable
# chmod +x FILENAME.sh
# xattr -d com.apple.quarantine FILENAME.sh
echo "Please login to your Apple Account through the Mac App Store"
echo "When logged in sucessfully press [ENTER} to continue"
read
main() {
# Use colors, but only if connected to a terminal, and that terminal
# supports them.
if which tput >/dev/null 2>&1; then
ncolors=$(tput colors)
fi
if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then
RED="$(tput setaf 1)"
GREEN="$(tput setaf 2)"
YELLOW="$(tput setaf 3)"

Keybase proof

I hereby claim:

  • I am tscheckenbach on github.
  • I am tscheckenbach (https://keybase.io/tscheckenbach) on keybase.
  • I have a public key whose fingerprint is 8C59 5DA0 6241 97A3 0087 BCBA D9D9 92F4 C211 10C7

To claim this, I am signing this object: