Skip to content

Instantly share code, notes, and snippets.

@Jayonics
Last active September 23, 2021 16:31
Show Gist options
  • Save Jayonics/6387aa2c90e4fb85004a32f0251cae24 to your computer and use it in GitHub Desktop.
Save Jayonics/6387aa2c90e4fb85004a32f0251cae24 to your computer and use it in GitHub Desktop.
zsh
#!/usr/bin/env zsh
# Deleted the P10K Instant prompt feature (Causes issues with grc tty detection)
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation
export ZSH="$HOME/.oh-my-zsh"
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k"
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
CASE_SENSITIVE="true"
HYPHEN_INSENSITIVE="false"
DISABLE_AUTO_UPDATE="false"
DISABLE_UPDATE_PROMPT="true"
export UPDATE_ZSH_DAYS=1
# Uncomment the following line if pasting URLs and other text is messed up.
DISABLE_MAGIC_FUNCTIONS="true"
DISABLE_LS_COLORS="false"
DISABLE_AUTO_TITLE="false"
ENABLE_CORRECTION="false"
COMPLETION_WAITING_DOTS="true"
plugins=( zsh-syntax-highlighting zsh-autosuggestions zsh-completions )
source $ZSH/oh-my-zsh.sh
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
export LANG=en_GB.UTF-8
# Preferred editor for local and remote sessions
export EDITOR='vim'
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# Automatic grc
[[ -s "/etc/grc.zsh" ]] && source /etc/grc.zsh
[[ -s "/opt/etc/grc.zsh" ]] && source /opt/etc/grc.zsh
alias zshconfig="mate ~/.zshrc"
alias ohmyzsh="mate ~/.oh-my-zsh"
# To customize prompt, run `p10k configure` or edit /tmp/home/root/zsh-gist/.p10k.zsh.
if [[ -f ~/.p10k.zsh ]]; then
source ~/.p10k.zsh
else
echo ".p10k.zsh not found. You must configure it."
fi
if command -v neofetch &> /dev/null; then
neofetch
fi
#!/bin/bash
if [ ! -a "$HOME/.oh-my-zsh" ]; then
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment