Switch back to macOS.

This commit is contained in:
Bartek Stalewski 2024-06-19 16:19:39 +02:00
parent f8866a9eca
commit e819a06cda
No known key found for this signature in database
137 changed files with 192 additions and 23 deletions

View file

@ -1 +0,0 @@
clear

View file

@ -3,9 +3,6 @@ export XDG_CACHE_HOME=/tmp/${USER}-cache
export XDG_CONFIG_HOME=$HOME/.config
export XDG_DATA_HOME=$HOME/.local/share
export XDG_STATE_HOME=$HOME/.local/state
export HISTFILE=$XDG_DATA_HOME/zsh/history
export HISTSIZE=10000
export SAVEHIST=$HISTSIZE
export HISTFILE=$XDG_DATA_HOME/zsh/history
# if test -z "$XDG_RUNTIME_DIR"; then
# export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)
# fi

View file

@ -1,6 +1,6 @@
if test -z "$XDG_RUNTIME_DIR"; then
export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)
fi
# mac specific configuration
touch $HOME/.hushlogin
eval "$(/opt/homebrew/bin/brew shellenv)"
# prepare directories
mkdir -p $XDG_CACHE_HOME/zsh
@ -19,9 +19,9 @@ path=(~/.local/bin "$path[@]")
# source configuration
source $ZDOTDIR/aliases.zsh
source $ZDOTDIR/cleanhome.zsh
source $ZDOTDIR/fzf.zsh
source $ZDOTDIR/keys.zsh
source $ZDOTDIR/ssh.zsh
source $ZDOTDIR/fzf.zsh
# source modules
source ~/.local/git/zsh_modules/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh

View file

@ -3,8 +3,6 @@ LOCAL_GIT_DIR=${HOME}/.local/git
alias ga='git add .; git commit --no-edit --amend; git push --force-with-lease'
alias gae='git add .; git commit --amend; git push --force-with-lease'
alias less='less -R'
alias lg="lazygit"
alias qt="dbus-run-session qtile start -b wayland"
if [[ $(command -v bat) ]]; then
alias cat='bat -pp --color=always --tabs=2 --theme=Monokai\ Extended\ Bright'
@ -50,9 +48,3 @@ function ud() {
for i in ${LOCAL_GIT_DIR}/dotfiles ${LOCAL_GIT_DIR}/zsh_modules/*; do git -C ${i} pull; done
nvim -c "lua require('lazy').sync({wait = true})"
}
function upgrade() {
case $(lsb_release -si) in
Gentoo) eix-sync && eix-update && emerge -avuNDU @world ;;
VoidLinux) xbps-install -Su && xbps-remove -RoO && xlocate -S ;;
esac
}

View file

@ -1,3 +1,2 @@
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export LESSHISTFILE='/dev/null'
mkdir -p ~/.local/share/tig

View file

@ -1,9 +1,4 @@
if [[ $(command -v fzf) ]]; then
case $(lsb_release -si) in
Gentoo) source /usr/share/zsh/site-functions/_fzf ;;
VoidLinux) source /usr/share/fzf/completion.zsh ;;
esac
source /usr/share/fzf/key-bindings.zsh
export FZF_DEFAULT_COMMAND='fd -H -L --ignore-file ~/.local/config/fd'
export FZF_CTRL_T_COMMAND='fd -H -L --ignore-file ~/.local/config/fd'
export FZF_DEFAULT_OPTS="--multi -e --ansi --layout=reverse --preview='bat --color=always --tabs=2 --style=plain --theme=Monokai\ Extended\ Bright {}'"