Skip to content

Instantly share code, notes, and snippets.

@rannn505
Last active January 30, 2022 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rannn505/b02ad6e465d02b155646f2b1eb88ae72 to your computer and use it in GitHub Desktop.
Save rannn505/b02ad6e465d02b155646f2b1eb88ae72 to your computer and use it in GitHub Desktop.
configuration files from articale "macOS awesome terminal" - https://dev.to/rannn505/macos-awesome-terminal-519n
# note: added by Powerlevel10k configuration wizard
# 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
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment one of the following lines to change the auto-update behavior
# zstyle ':omz:update' mode disabled # disable automatic updates
# zstyle ':omz:update' mode auto # update automatically without asking
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
# Uncomment the following line to change how often to auto-update (in days).
# zstyle ':omz:update' frequency 13
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# You can also set it to another string to have that shown instead of the default red dots.
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# note: export here
export NVM_COMPLETION=true
# export ZSH_CUSTOM_AUTOUPDATE_QUIET=true
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
alias-finder
common-aliases
copydir
copyfile
encode64
history
z
web-search
git
docker
node
aws
# note: custom plugins
zsh-nvm
autoupdate
zsh-autosuggestions
zsh-syntax-highlighting
zsh-history-substring-search
)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='code' # note: modified, default was 'vim'
else
export EDITOR='code' # note: modified, default was 'mvim'
fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# note: added by me
alias zshrc="${EDITOR} ~/.zshrc"
alias omzu='upgrade_ohl_my_zsh'
alias cat='bat --paging=never'
alias lock='cmatrix -s'
# note: added by iTerm2 shell integration installtion script
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# note: added by Powerlevel10k configuration wizard
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
{
"Ansi 6 Color" : {
"Green Component" : 0.73333334922790527,
"Blue Component" : 0.73333334922790527,
"Red Component" : 0
},
"Tags" : [
"rannn505"
],
"Ansi 12 Color" : {
"Green Component" : 0.3333333432674408,
"Blue Component" : 1,
"Red Component" : 0.3333333432674408
},
"Ansi 3 Color" : {
"Green Component" : 0.73333334922790527,
"Blue Component" : 0,
"Red Component" : 0.73333334922790527
},
"Draw Powerline Glyphs" : false,
"Bold Color" : {
"Green Component" : 1,
"Blue Component" : 1,
"Red Component" : 1
},
"AWDS Tab Directory" : "",
"Normal Font" : "MesloLGS-NF-Regular 16",
"Ansi 4 Color" : {
"Green Component" : 0,
"Blue Component" : 0.73333334922790527,
"Red Component" : 0
},
"Rows" : 25,
"Default Bookmark" : "No",
"Right Option Key Sends" : 0,
"AWDS Tab Option" : "No",
"Non-ASCII Anti Aliased" : true,
"Use Bright Bold" : true,
"Show Mark Indicators" : false,
"Ansi 10 Color" : {
"Green Component" : 1,
"Blue Component" : 0.3333333432674408,
"Red Component" : 0.3333333432674408
},
"Icon" : 1,
"Ambiguous Double Width" : false,
"AWDS Pane Option" : "Recycle",
"Jobs to Ignore" : [
"rlogin",
"ssh",
"slogin",
"telnet"
],
"Show Status Bar" : true,
"Ansi 15 Color" : {
"Green Component" : 1,
"Blue Component" : 1,
"Red Component" : 1
},
"Foreground Color" : {
"Green Component" : 0.73333334922790527,
"Blue Component" : 0.73333334922790527,
"Red Component" : 0.73333334922790527
},
"Bound Hosts" : [
],
"Working Directory" : "\/Users\/ran",
"Blinking Cursor" : true,
"AWDS Window Option" : "No",
"Sync Title" : false,
"Prompt Before Closing 2" : false,
"BM Growl" : true,
"Command" : "",
"Description" : "Default",
"AWDS Pane Directory" : "",
"Mouse Reporting" : true,
"Screen" : -1,
"Selection Color" : {
"Green Component" : 0.8353000283241272,
"Blue Component" : 1,
"Red Component" : 0.70980000495910645
},
"Disable Window Resizing" : true,
"AWDS Window Directory" : "",
"Columns" : 80,
"Idle Code" : 0,
"Ansi 13 Color" : {
"Green Component" : 0.3333333432674408,
"Blue Component" : 1,
"Red Component" : 1
},
"Custom Command" : "No",
"ASCII Anti Aliased" : true,
"Non Ascii Font" : "Monaco 12",
"Vertical Spacing" : 1,
"Use Bold Font" : true,
"Option Key Sends" : 0,
"Selected Text Color" : {
"Green Component" : 0,
"Blue Component" : 0,
"Red Component" : 0
},
"Background Color" : {
"Green Component" : 0,
"Blue Component" : 0,
"Red Component" : 0
},
"Character Encoding" : 4,
"Ansi 11 Color" : {
"Green Component" : 1,
"Blue Component" : 0.3333333432674408,
"Red Component" : 1
},
"Use Italic Font" : true,
"Unlimited Scrollback" : false,
"Keyboard Map" : {
"0x7f-0x100000-0x33" : {
"Version" : 0,
"Action" : 11,
"Text" : "0x15",
"Label" : ""
},
"0x7f-0x80000-0x33" : {
"Version" : 0,
"Action" : 11,
"Text" : "0x01b 0x08",
"Label" : ""
},
"0xf702-0x280000-0x7b" : {
"Version" : 0,
"Action" : 11,
"Text" : "0x1b 0x62",
"Label" : ""
},
"0xf703-0x220000-0x7c" : {
"Version" : 0,
"Action" : 46,
"Text" : "0",
"Label" : ""
},
"0xf703-0x300000-0x7c" : {
"Version" : 0,
"Action" : 11,
"Text" : "0x05",
"Label" : ""
},
"0x7a-0x100000-0x6" : {
"Version" : 0,
"Action" : 11,
"Text" : "0x1f",
"Label" : ""
},
"0x5a-0x120000-0x6" : {
"Version" : 0,
"Action" : 11,
"Text" : "0x18 0x1f",
"Label" : ""
},
"0xf703-0x280000-0x7c" : {
"Version" : 0,
"Action" : 11,
"Text" : "0x1b 0x66",
"Label" : ""
},
"0xf702-0x220000-0x7b" : {
"Version" : 0,
"Action" : 45,
"Text" : "0",
"Label" : ""
},
"0xf702-0x300000-0x7b" : {
"Version" : 0,
"Action" : 11,
"Text" : "0x01",
"Label" : ""
}
},
"Window Type" : 0,
"Cursor Type" : 1,
"Background Image Location" : "",
"Blur" : false,
"Scrollback Lines" : 1000,
"Send Code When Idle" : false,
"Close Sessions On End" : true,
"Terminal Type" : "xterm-256color",
"Visual Bell" : true,
"Flashing Bell" : false,
"Status Bar Layout" : {
"components" : [
{
"class" : "iTermStatusBarCPUUtilizationComponent",
"configuration" : {
"knobs" : {
"base: priority" : 5,
"base: compression resistance" : 1
},
"layout advanced configuration dictionary value" : {
"algorithm" : 0,
"remove empty components" : false,
"auto-rainbow style" : 0
}
}
},
{
"class" : "iTermStatusBarMemoryUtilizationComponent",
"configuration" : {
"knobs" : {
"base: priority" : 5,
"base: compression resistance" : 1
},
"layout advanced configuration dictionary value" : {
"algorithm" : 0,
"remove empty components" : false,
"auto-rainbow style" : 0
}
}
},
{
"class" : "iTermStatusBarNetworkUtilizationComponent",
"configuration" : {
"knobs" : {
"base: priority" : 5,
"base: compression resistance" : 1
},
"layout advanced configuration dictionary value" : {
"algorithm" : 0,
"remove empty components" : false,
"auto-rainbow style" : 0
}
}
}
],
"advanced configuration" : {
"remove empty components" : false,
"font" : ".AppleSystemUIFont 12",
"algorithm" : 0,
"auto-rainbow style" : 0
}
},
"Badge Text" : "",
"Silence Bell" : false,
"Ansi 14 Color" : {
"Green Component" : 1,
"Blue Component" : 1,
"Red Component" : 0.3333333432674408
},
"Name" : "dev",
"Cursor Text Color" : {
"Green Component" : 1,
"Blue Component" : 1,
"Red Component" : 1
},
"Shortcut" : "",
"Cursor Color" : {
"Green Component" : 0.73333334922790527,
"Blue Component" : 0.73333334922790527,
"Red Component" : 0.73333334922790527
},
"Transparency" : 0,
"Ansi 0 Color" : {
"Green Component" : 0,
"Blue Component" : 0,
"Red Component" : 0
},
"Ansi 1 Color" : {
"Green Component" : 0,
"Blue Component" : 0,
"Red Component" : 0.73333334922790527
},
"Horizontal Spacing" : 1,
"Ansi 2 Color" : {
"Green Component" : 0.73333334922790527,
"Blue Component" : 0,
"Red Component" : 0
},
"Ansi 5 Color" : {
"Green Component" : 0,
"Blue Component" : 0.73333334922790527,
"Red Component" : 0.73333334922790527
},
"Use Non-ASCII Font" : false,
"Ansi 7 Color" : {
"Green Component" : 0.73333334922790527,
"Blue Component" : 0.73333334922790527,
"Red Component" : 0.73333334922790527
},
"Ansi 8 Color" : {
"Green Component" : 0.3333333432674408,
"Blue Component" : 0.3333333432674408,
"Red Component" : 0.3333333432674408
},
"Ansi 9 Color" : {
"Green Component" : 0.3333333432674408,
"Blue Component" : 0.3333333432674408,
"Red Component" : 1
},
"Guid" : "5284CCFF-CAAA-4D29-8AF8-35161C37C25E",
"Custom Directory" : "Advanced"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment