Skip to content

Instantly share code, notes, and snippets.

@zillding
zillding / macos.zsh
Last active October 16, 2025 09:26
Oh My Zsh custom config
# only add to path if
# 1. the dir exists
# 2. path does not contain the dir
add_to_path() {
if [ -d $1 ] && ! [[ ":$PATH:" == *$1* ]]; then
export PATH=$1:$PATH
fi
}
add_to_path /opt/homebrew/bin
@zillding
zillding / Preferences.sublime-settings
Created June 22, 2023 05:18
sublime text settings
// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by syntax-specific settings.
{
"binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip", "node_modules/"],
"bold_folder_labels": true,
"close_windows_when_empty": true,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages": [
],
@zillding
zillding / before.init.fish
Last active November 28, 2018 14:09
oh-my-fish config
##########################################
# Set up env
##########################################
set -gx EDITOR vim
set -gx Z_SCRIPT_PATH /usr/local/etc/profile.d/z.sh
@zillding
zillding / .vimrc
Last active October 16, 2015 14:45
vim config
syntax enable
set list
set tabstop=4
set softtabstop=4
set number " show line number
set showcmd
set cursorline