Compare commits

..

4 commits

Author SHA1 Message Date
19e1944a90
todo todo todo 2023-02-28 12:25:23 -06:00
f094cdec07
many shell things 2023-02-28 12:25:20 -06:00
26445dcc83
zexists is broken 2023-02-28 12:11:15 -06:00
753b56d1e9
account for already set alias 2023-02-28 12:11:15 -06:00
8 changed files with 22 additions and 34 deletions

View file

@ -12,7 +12,7 @@ alias vi=vim
alias rr="rm -rf"
# more ways to ls
alias ls="ls --group-directories-first --color=always"
alias ls="${aliases[ls]:-ls} --group-directories-first --color=auto"
alias l='ls -lh'
alias la='ls -a'
alias ldot='ls -ld .*'

View file

@ -2,24 +2,17 @@
# misc - Set general Zsh config options here, or change plugin settings.
#
#
# Options
#
# Undo options from plugins
setopt NO_BEEP # Be quiet!
setopt NO_HIST_BEEP # Be quiet!
#
# OMZ
#
MAGIC_ENTER_GIT_COMMAND="$MAGIC_ENTER_OTHER_COMMAND && git status -sb"
# start gpg agent
export GPG_TTY=$(tty)
gpgconf --launch gpg-agent
#
# Zsh-Utils
#
# The belek/zsh-utils completion plugin also introduces compstyles. Let's use that!
(( ! $+functions[compstyle_zshzoo_setup] )) || compstyle_zshzoo_setup
# OMZ
MAGIC_ENTER_GIT_COMMAND="$MAGIC_ENTER_OTHER_COMMAND && git status -sb"
# let make handle it's own shell completion
zstyle ':completion::complete:make:*:targets' call-command true

View file

@ -1,7 +1,6 @@
# utility
romkatv/zsh-bench kind:path
ohmyzsh/ohmyzsh path:lib/clipboard.zsh
ohmyzsh/ohmyzsh path:plugins/copybuffer
ohmyzsh/ohmyzsh path:plugins/copyfile
@ -11,17 +10,13 @@ ohmyzsh/ohmyzsh path:plugins/magic-enter
ohmyzsh/ohmyzsh path:plugins/fancy-ctrl-z
belak/zsh-utils path:history
belak/zsh-utils path:utility
zdharma-continuum/fast-syntax-highlighting kind:defer
Aloxaf/fzf-tab kind:defer
# zsh-users/zsh-completions path:src kind:fpath
junegunn/fzf path:shell/completion.zsh
junegunn/fzf path:shell/key-bindings.zsh
# Source everything in $ZDOTDIR/rc.d prior to wrapping up.
mattmc3/zshrc.d
~/.config/zsh/plugins/zexists

View file

@ -15,7 +15,6 @@ function source-zshcmdd {
echo >&2 "zexists: dir not found '${ZSHCMDD:-${ZDOTDIR:-$HOME}/zexists.d/cmd}'"
return 1
fi
local -a conf_files=("$zshcmdd[1]"/*.{sh,zsh}(N))
local rcfile
local antircfile
@ -33,7 +32,6 @@ function source-zshcmdd {
fi
done
}
source-zshcmdd
function zshdir-decode {
# for now just remove the 'dir' part
@ -88,15 +86,18 @@ function source-zshpathd {
directory=$HOME/$(zshdir-decode ${name})
# source files only if exe with that name exists
if [[ -d $directory ]]; then
# echo "$directory"
source $rcfile
else
# if it doesn't exist try the anti version
antircfile=${rcfile:h}/anti-${pathtype}-${rcfile:t}
[[ -f $antircfile ]] && source $antircfile
# TODO: antirc naming broken
# # if it doesn't exist try the anti version
# antircfile="${rcfile:h}/anti-${pathtype}-${rcfile:t}"
# [[ -f $antircfile ]] && source $antircfile
fi
done
}
source-zshpathd
unset _envsubst
source-zshcmdd || echo >&2 'issues loading zexists.d/cmd'
source-zshpathd || echo >&2 'issues loading zexists.d/path'

View file

@ -1,3 +1,3 @@
is-tty && alias lsd="lsd --icon never"
alias ls="lsd --group-directories-first --color=always"
alias ls="lsd"
alias lt='lsd --tree --depth=3'

View file

@ -1,6 +0,0 @@
#!/usr/bin/env zsh
# bun completions
[[ -s "$HOME/.bun/_bun" ]] && source "$HOME/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
path=("$BUN_INSTALL/bin" $path)

View file

@ -1,4 +1,4 @@
#!/usr/bin/env zsh
export DENO_INSTALL="$HOME/.deno"; \
export DENO_INSTALL="$HOME/.deno"
path=("$DENO_INSTALL/bin" $path)

5
todo.md Normal file
View file

@ -0,0 +1,5 @@
# Dotfile Todo's
<!-- chezmoi forget --interactive ~/$(chezmoi managed | fzf) -->
- [ ] make a command to 'forget' files using fzf as selector