Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
janwirth committed Jul 30, 2023
1 parent 22417cf commit e64d2a4
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gitconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[core]
excludesfile = /Users/janwirthprivate/.gitignore
excludesfile = /Users/janwirth/.gitignore
ignorecase = false
pager = diff-so-fancy | less --tabs=4 -RFX
[user]
Expand Down
2 changes: 2 additions & 0 deletions install.conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
path: alacritty.yml
~/.zshrc:
path: zshrc
~/.yabairc:
path: yabairc
~/.gitconfig:
path: gitconfig
~/.skhdrc:
Expand Down
1 change: 1 addition & 0 deletions kakrc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ map global user o F:<esc>H:b<space>%{<backspace>reg{.}<ret>

hook global BufCreate .vue %{ set buffer filetype xml }
hook global BufCreate .*.elm %{ set buffer filetype haskell }
hook global BufCreate .*.roc %{ set buffer filetype haskell }
# hook global BufCreate .*.purs %{ set buffer filetype haskell }
hook global BufCreate .*.(es6|tsx?) %{ set buffer filetype javascript }
# hook global BufCreate .*.js %{ rename-buffer 💩}
Expand Down
1 change: 1 addition & 0 deletions yabairc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yabai -m config layout bsp
33 changes: 28 additions & 5 deletions zshrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Fig pre block. Keep at the top of this file.
. "$HOME/.fig/shell/zshrc.pre.zsh"
# If you come from bash you might have to change your $PATH.


Expand Down Expand Up @@ -107,7 +106,6 @@ fi


### ZNT's installer added snippet ###
fpath=( "$fpath[@]" "$HOME/.config/znt/zsh-navigation-tools" )
autoload n-aliases n-cd n-env n-functions n-history n-kill n-list n-list-draw n-list-input n-options n-panelize n-help
autoload znt-usetty-wrapper znt-history-widget znt-cd-widget znt-kill-widget
alias naliases=n-aliases ncd=n-cd nenv=n-env nfunctions=n-functions nhistory=n-history
Expand All @@ -130,11 +128,10 @@ function k () kak `fasd -f $@`
function rid () less `fasd -f $@`

alias rgl='rg -l'
alias pip='pip3'

alias tomp3='youtube-dl --audio-quality=320K -x --audio-format mp3'
alias tomp3='yt-dlp --audio-quality=320K -x --audio-format mp3'

alias h='n-history' # interactive file selection
alias h='n-history' # interactive history selection

# vim keybindings
bindkey -v
Expand Down Expand Up @@ -231,3 +228,29 @@ export FPATH="/usr/local/share/zsh/functions:$FPATH"
alias z='fasd_cd -d'
source $HOME/.cargo/env
export PATH="/Users/$HOME/dotfiles/bin:$PATH"

source /opt/homebrew/share/zsh-navigation-tools/zsh-navigation-tools.plugin.zsh

. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash
PATH=$(pyenv root)/shims:$PATH

alias j8="export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home; java -version"

alias gource-summary=""
alias first-commit-in-year='git log --reverse | head -n3 | tail -n1 | cut -f8 -d" "'
# seconds per day = 1/365 = 1 year = one secoind
# for a one-minute summmary of a year we need 1/365 * 60
# for a one-minute for all years we need 1/365 * 60 / years_sinc_start

alias gource-one-minute='gource --seconds-per-day $((1.0/365 * 60 /8))'

# pnpm
export PNPM_HOME="/Users/janwirth/Library/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end

alias myip="ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'"

0 comments on commit e64d2a4

Please sign in to comment.