Compare commits

..

6 Commits

18 changed files with 141 additions and 193 deletions

View File

@ -1,10 +0,0 @@
com.apple.Preview .ai all
com.apple.Preview .bmp all
com.apple.Preview .jpeg all
com.apple.Preview .jpg all
com.apple.Preview .pdf all
com.apple.Preview .png all
com.apple.Preview .ps all
com.apple.Preview .psd all
com.apple.Preview .tif all
com.apple.Preview .tiff all

View File

@ -1,15 +0,0 @@
com.brettterpstra.marked2 csstore viewer
com.brettterpstra.marked2 markdown viewer
com.brettterpstra.marked2 md viewer
com.brettterpstra.marked2 mdml viewer
com.brettterpstra.marked2 mdown viewer
com.brettterpstra.marked2 mdtext viewer
com.brettterpstra.marked2 mdtxt viewer
com.brettterpstra.marked2 mdwn viewer
com.brettterpstra.marked2 mkd viewer
com.brettterpstra.marked2 mkdn viewer
com.brettterpstra.marked2 mmd viewer
com.brettterpstra.marked2 multimarkdown viewer
com.brettterpstra.marked2 text viewer
com.brettterpstra.marked2 textbundle viewer
com.brettterpstra.marked2 txt viewer

View File

@ -1,15 +0,0 @@
com.colliderli.iina .3gp all
com.colliderli.iina .asf all
com.colliderli.iina .asx all
com.colliderli.iina .avi all
com.colliderli.iina .flv all
com.colliderli.iina .mkv all
com.colliderli.iina .mov all
com.colliderli.iina .mp4 all
com.colliderli.iina .mpg all
com.colliderli.iina .ogm all
com.colliderli.iina .rm all
com.colliderli.iina .swf all
com.colliderli.iina .vob all
com.colliderli.iina .webm all
com.colliderli.iina .wmv all

View File

@ -1,3 +0,0 @@
com.flexibits.fantastical2.mac ics all
com.flexibits.fantastical2.mac vcal all
com.flexibits.fantastical2.mac vcs all

View File

@ -1,15 +0,0 @@
com.microsoft.Excel csv all
com.microsoft.Excel xla all
com.microsoft.Excel xlam all
com.microsoft.Excel xlb all
com.microsoft.Excel xld all
com.microsoft.Excel xll all
com.microsoft.Excel xlm all
com.microsoft.Excel xls all
com.microsoft.Excel xlsb all
com.microsoft.Excel xlsm all
com.microsoft.Excel xlsx all
com.microsoft.Excel xltm all
com.microsoft.Excel xltx all
com.microsoft.Excel xlw all
com.microsoft.Excel xml all

View File

@ -1,10 +0,0 @@
com.microsoft.Powerpoint pot all
com.microsoft.Powerpoint potm all
com.microsoft.Powerpoint potx all
com.microsoft.Powerpoint pps all
com.microsoft.Powerpoint ppsm all
com.microsoft.Powerpoint ppsx all
com.microsoft.Powerpoint ppt all
com.microsoft.Powerpoint pptm all
com.microsoft.Powerpoint pptx all
com.microsoft.Powerpoint thmx all

View File

@ -1,6 +0,0 @@
com.microsoft.Word doc all
com.microsoft.Word docm all
com.microsoft.Word docx all
com.microsoft.Word dot all
com.microsoft.Word dotm all
com.microsoft.Word dotx all

View File

@ -1,62 +0,0 @@
com.visualstudio.code.oss asp all
com.visualstudio.code.oss bat all
com.visualstudio.code.oss c all
com.visualstudio.code.oss cc all
com.visualstudio.code.oss cfg all
com.visualstudio.code.oss cgi all
com.visualstudio.code.oss coffee all
com.visualstudio.code.oss conf all
com.visualstudio.code.oss config all
com.visualstudio.code.oss cpp all
com.visualstudio.code.oss cs all
com.visualstudio.code.oss css all
com.visualstudio.code.oss csv all
com.visualstudio.code.oss dat all
com.visualstudio.code.oss dtd all
com.visualstudio.code.oss duti all
com.visualstudio.code.oss erl all
com.visualstudio.code.oss h all
com.visualstudio.code.oss hpp all
com.visualstudio.code.oss hrl all
com.visualstudio.code.oss htm editor
com.visualstudio.code.oss html editor
com.visualstudio.code.oss ini all
com.visualstudio.code.oss java all
com.visualstudio.code.oss js all
com.visualstudio.code.oss json all
com.visualstudio.code.oss jsp editor
com.visualstudio.code.oss less all
com.visualstudio.code.oss lisp all
com.visualstudio.code.oss log all
com.visualstudio.code.oss m all
com.visualstudio.code.oss Makefile all
com.visualstudio.code.oss pch all
com.visualstudio.code.oss php all
com.visualstudio.code.oss pl all
com.visualstudio.code.oss plist editor
com.visualstudio.code.oss public.plain-text all
com.visualstudio.code.oss public.shell-script all
com.visualstudio.code.oss public.unix-executable all
com.visualstudio.code.oss py all
com.visualstudio.code.oss Rakefile all
com.visualstudio.code.oss rb all
com.visualstudio.code.oss README all
com.visualstudio.code.oss rst all
com.visualstudio.code.oss S all
com.visualstudio.code.oss scss all
com.visualstudio.code.oss sh editor
com.visualstudio.code.oss sh all
com.visualstudio.code.oss sql editor
com.visualstudio.code.oss tex all
com.visualstudio.code.oss txt all
com.visualstudio.code.oss xhtml editor
com.visualstudio.code.oss xml editor
com.visualstudio.code.oss xml all
com.visualstudio.code.oss yaml editor
com.visualstudio.code.oss yml editor
com.visualstudio.code.oss zlogin editor
com.visualstudio.code.oss zlogout editor
com.visualstudio.code.oss zprofile editor
com.visualstudio.code.oss zsh editor
com.visualstudio.code.oss zshenv editor
com.visualstudio.code.oss zshrc editor

View File

@ -1,14 +0,0 @@
cx.c3.theunarchiver .7z all
cx.c3.theunarchiver .cab all
cx.c3.theunarchiver .gtar all
cx.c3.theunarchiver .gz all
cx.c3.theunarchiver .hqx all
cx.c3.theunarchiver .jar all
cx.c3.theunarchiver .msi all
cx.c3.theunarchiver .rar all
cx.c3.theunarchiver .sit all
cx.c3.theunarchiver .sit all
cx.c3.theunarchiver .tar all
cx.c3.theunarchiver .tar.gz all
cx.c3.theunarchiver .tgz all
cx.c3.theunarchiver .zip all

View File

@ -1,11 +0,0 @@
org.videolan.vlc .aac all
org.videolan.vlc .aif all
org.videolan.vlc .flac all
org.videolan.vlc .iff all
org.videolan.vlc .m3u all
org.videolan.vlc .mid all
org.videolan.vlc .mp3 all
org.videolan.vlc .mpa all
org.videolan.vlc .ogg all
org.videolan.vlc .ra all
org.videolan.vlc .wav all

102
.config/eza/theme.yml Normal file
View File

@ -0,0 +1,102 @@
colourful: true
filekinds:
normal: {foreground: "#BAC2DE"}
directory: {foreground: "#89B4FA"}
symlink: {foreground: "#89DCEB"}
pipe: {foreground: "#7F849C"}
block_device: {foreground: "#EBA0AC"}
char_device: {foreground: "#EBA0AC"}
socket: {foreground: "#585B70"}
special: {foreground: "#CBA6F7"}
executable: {foreground: "#A6E3A1"}
mount_point: {foreground: "#74C7EC"}
perms:
user_read: {foreground: "#CDD6F4"}
user_write: {foreground: "#F9E2AF"}
user_execute_file: {foreground: "#A6E3A1"}
user_execute_other: {foreground: "#A6E3A1"}
group_read: {foreground: "#BAC2DE"}
group_write: {foreground: "#F9E2AF"}
group_execute: {foreground: "#A6E3A1"}
other_read: {foreground: "#A6ADC8"}
other_write: {foreground: "#F9E2AF"}
other_execute: {foreground: "#A6E3A1"}
special_user_file: {foreground: "#CBA6F7"}
special_other: {foreground: "#585B70"}
attribute: {foreground: "#A6ADC8"}
size:
major: {foreground: "#A6ADC8"}
minor: {foreground: "#89DCEB"}
number_byte: {foreground: "#CDD6F4"}
number_kilo: {foreground: "#BAC2DE"}
number_mega: {foreground: "#89B4FA"}
number_giga: {foreground: "#CBA6F7"}
number_huge: {foreground: "#CBA6F7"}
unit_byte: {foreground: "#A6ADC8"}
unit_kilo: {foreground: "#89B4FA"}
unit_mega: {foreground: "#CBA6F7"}
unit_giga: {foreground: "#CBA6F7"}
unit_huge: {foreground: "#74C7EC"}
users:
user_you: {foreground: "#CDD6F4"}
user_root: {foreground: "#F38BA8"}
user_other: {foreground: "#CBA6F7"}
group_yours: {foreground: "#BAC2DE"}
group_other: {foreground: "#7F849C"}
group_root: {foreground: "#F38BA8"}
links:
normal: {foreground: "#89DCEB"}
multi_link_file: {foreground: "#74C7EC"}
git:
new: {foreground: "#A6E3A1"}
modified: {foreground: "#F9E2AF"}
deleted: {foreground: "#F38BA8"}
renamed: {foreground: "#94E2D5"}
typechange: {foreground: "#F5C2E7"}
ignored: {foreground: "#7F849C"}
conflicted: {foreground: "#EBA0AC"}
git_repo:
branch_main: {foreground: "#CDD6F4"}
branch_other: {foreground: "#CBA6F7"}
git_clean: {foreground: "#A6E3A1"}
git_dirty: {foreground: "#F38BA8"}
security_context:
colon: {foreground: "#7F849C"}
user: {foreground: "#BAC2DE"}
role: {foreground: "#CBA6F7"}
typ: {foreground: "#585B70"}
range: {foreground: "#CBA6F7"}
file_type:
image: {foreground: "#F9E2AF"}
video: {foreground: "#F38BA8"}
music: {foreground: "#A6E3A1"}
lossless: {foreground: "#94E2D5"}
crypto: {foreground: "#585B70"}
document: {foreground: "#CDD6F4"}
compressed: {foreground: "#F5C2E7"}
temp: {foreground: "#EBA0AC"}
compiled: {foreground: "#74C7EC"}
build: {foreground: "#585B70"}
source: {foreground: "#89B4FA"}
punctuation: {foreground: "#7F849C"}
date: {foreground: "#F9E2AF"}
inode: {foreground: "#A6ADC8"}
blocks: {foreground: "#9399B2"}
header: {foreground: "#CDD6F4"}
octal: {foreground: "#94E2D5"}
flags: {foreground: "#CBA6F7"}
symlink_path: {foreground: "#89DCEB"}
control_char: {foreground: "#74C7EC"}
broken_symlink: {foreground: "#F38BA8"}
broken_path_overlay: {foreground: "#585B70"}

View File

@ -2,19 +2,35 @@ _exists() { (( $+commands[$1] )) }
_exists less && export PAGER=less
# vim
if _exists vim; then
export EDITOR=vim
alias vim="vim -p"
fi
## ls/eza
# ls/eza
if _exists eza; then
alias eza="eza --color --icons --git"
alias ls="eza"
fi
unfunction _exists
# fetch
if ! _exists fetch; then
if _exists curl; then
alias fetch="curl -O"
elif _exists curl; then
alias fetch="wget"
else
echo "fetch not found."
fi
fi
# htop
if _exists htop; then
alias htop="sudo htop"
fi
unfunction _exists
alias mkdir="mkdir -p"
alias ..="cd .."
@ -22,16 +38,12 @@ alias ...="cd ../.."
alias ....="cd ../../.."
alias google="ping -c 10240000 google.com"
alias history="history -i"
alias sulast="sudo $(history -p !-1)"
alias ydl="youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'"
alias htop="sudo htop"
case `uname` in
Darwin)
# commands for OS X go here
alias flushdns="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder"
alias r="open -a"
alias fetch="curl -O"
;;
Linux)
# commands for Linux go here

View File

@ -13,12 +13,4 @@ setopt incappendhistory
setopt histignorespace
setopt histnostore
setopt share_history
export HISTORY_IGNORE="([bf]g *|disown|cd ..|cd -)"
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1
# # Make up and down arrow take whats typed on the commandline in to account.
# autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
# zle -N up-line-or-beginning-search
# zle -N down-line-or-beginning-search
export HISTORY_IGNORE="([bf]g *|disown|cd ..|cd -)"

View File

@ -1,3 +0,0 @@
# Search
bindkey '^[[A' history-substring-search-up # Up arrow
bindkey '^[[B' history-substring-search-down # down arrow

View File

@ -19,4 +19,8 @@ export VIMINIT='let $VIMRC="$VIMDOTDIR/vimrc" | source $VIMRC'
export GOPATH="${XDG_DATA_HOME}/go"
export PYTHONUSERBASE=${HOME}/.local
export INPUTRC="${XDG_CONFIG_HOME}/readline/inputrc"
export MANPATH="${MANPATH-$(manpath)}:${HOME}/.local/share/man"
export MANPATH="${MANPATH-$(manpath)}:${HOME}/.local/share/man"
# EZA
EZA_CONFIG_DIR=${XDG_CONFIG_HOME}/eza

View File

@ -0,0 +1,5 @@
# Available completion styles: gremlin, ohmy, prez, zshzoo
# You can add your own too. To see all available completion styles
# run 'compstyle -l'
ZSH_COMPDUMP=${ZCACHE}/zcompdump
zstyle ':plugin:ez-compinit' 'compstyle' 'zshzoo'

View File

@ -0,0 +1,4 @@
# zsh-history-substring-search configuration
bindkey '^[[A' history-substring-search-up # or '\eOA'
bindkey '^[[B' history-substring-search-down # or '\eOB'
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1

View File

@ -16,11 +16,11 @@ all: git-fetch git-secrets-reveal deploy-macos ## Update repo, decrypt secrets a
install: git-fetch deploy-base ## Update repor and run deploy-base
deploy-base: deploy-htop-zfs deploy-tmux deploy-vim deploy-zsh deploy-ssh deploy-hushlogin ## Only deploy basic conf files for shell usage
deploy-base: deploy-eza deploy-tmux deploy-vim deploy-zsh deploy-ssh deploy-hushlogin ## Only deploy basic conf files for shell usage
deploy-workstation: deploy-base deploy-vscodium deploy-youtubedl ## Deploy workstation specific config files (inherits deploy-shell)
deploy-macos: deploy-htop deploy-workstation deploy-duti deploy-brewfile ## Deploy macOS specific config files (inherits deploy-workstation)
deploy-macos: deploy-htop deploy-workstation deploy-brewfile ## Deploy macOS specific config files (inherits deploy-workstation)
gen-vscodium-plugin-list: ## Update the list of VSCodium plugins
@echo "\033[1;32m>>>\033[1;0m Updating the list of VSCodium plugins at .config/VSCodium/UserUser/extensions.list"
@ -59,23 +59,16 @@ brew-bundle-cleanup: ## Removew all appplications that are not listed in Brewfil
@echo "\033[1;32m>>>\033[1;0m Removing applications that are not listed in .config/Brewfile"
@brew bundle cleanup --zap --force --file .config/Brewfile
deploy-duti: ## Deploy duti config
@echo "\033[1;32m>>>\033[1;0m Deploy duti config to ${HOMEDIR}/.config/duti"
@mkdir -p ${HOMEDIR}/.config/duti
@cp .config/duti/* ${HOMEDIR}/.config/duti
@echo "\033[1;32m>>>\033[1;0m Processing duti config from ${HOMEDIR}/.config/duti"
@duti ${HOMEDIR}/.config/duti
deploy-eza: ## Deploy eza config
@echo "\033[1;32m>>>\033[1;0m Deploy eza config to ${HOMEDIR}/.config/eza"
@mkdir -p ${HOMEDIR}/.config/eza
@cp .config/eza/* ${HOMEDIR}/.config/eza
deploy-htop: ## Deploy htop config
@echo "\033[1;32m>>>\033[1;0m Deploy htop config to ${HOMEDIR}/.config/htop"
@mkdir -p ${HOMEDIR}/.config/htop
@cp .config/htop/htoprc ${HOMEDIR}/.config/htop/htoprc
deploy-htop-zfs: ## Deploy htop config with zfs
@echo "\033[1;32m>>>\033[1;0m Deploy htop config to ${HOMEDIR}/.config/htop"
@mkdir -p ${HOMEDIR}/.config/htop
@cp .config/htop/htoprc.zfs ${HOMEDIR}/.config/htop/htoprc
deploy-tmux: ## Deploy tmux config
@echo "\033[1;32m>>>\033[1;0m Deploy tmux config to ${HOMEDIR}/.config/tmux"
@mkdir -p ${HOMEDIR}/.config/tmux