Closed molleweide closed 2 years ago
Hey, do you know how to rewrite zsh setopt
command in strict mode?
Hey, do you know how to rewrite zsh
setopt
command in strict mode?
can you give me a code sample, so I know the context
Hey, do you know how to rewrite zsh
setopt
command in strict mode?can you give me a code sample, so I know the context
Yes!
if test -z "${XDG_STATE_HOME-}"; then
export HISTFILE="${XDG_STATE_HOME-}/zsh/history"
fi
HISTSIZE=100000
SAVEHIST=100000
setopt append_history
setopt extended_history
setopt hist_expire_dups_first
setopt hist_ignore_dups # ignore duplication command history list
setopt hist_ignore_space
setopt inc_append_history
setopt share_history # share command history data
setopt extended_glob
In $DOROTHY/sources/paths.sh
you use eval
command to export paths.
However, when I run
eval "$("$DOROTHY/user/commands/setup-user-xdg")"
in $DOROTHY/user/source.sh
my export paths from setup-user-xdg
are unset.
Can we jump on a zoom https://balupton.com/zoom or signal +14084186557
call, so you can screenshare?
Yes, absolutely. I just installed your zoom link.
export DOTFILES=~/.dorothy/user
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
if is-mac; then
export XDG_DESKTOP_DIR=~/Desktop
export XDG_DOCUMENTS_DIR=~/Documents
export XDG_DOWNLOAD_DIR=~/Downloads
export XDG_MUSIC_DIR=~/Music
export XDG_PICTURES_DIR=~/Pictures
export XDG_VIDEOS_DIR=~/Videos
fi
export ADOTDIR="${XDG_DATA_HOME:-$HOME/.local/share}/antigen"
export ALSA_CONFIG_PATH="$XDG_CONFIG_HOME/alsa/asoundrc"
export ANDROID_SDK_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/android"
export ANSIBLE_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/ansible/ansible.cfg"
export ANTIGEN_COMPDUMP="${ADOTDIR}/.zcompdump"
export ANTIGEN_DEBUG_LOG="${ADOTDIR}/antigen_debug.log"
export ANTIGEN_LOG="${ADOTDIR}/antigen.log"
export ANTIGEN_BUNDLES="${ADOTDIR}/bundles"
export CABAL_CONFIG="$XDG_CONFIG_HOME"/cabal/config
export CABAL_DIR="$XDG_CACHE_HOME"/cabal
export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo"
export RUSTUP_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/rustup"
export ELECTRUMDIR="${XDG_DATA_HOME:-$HOME/.local/share}/electrum"
export GEM_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/gem"
export GEM_SPEC_CACHE="$XDG_CACHE_HOME/gem"
export GNUPGHOME="${XDG_DATA_HOME:-$HOME/.local/share}/gnupg"
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0"
export HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/history"
export INPUTRC="${XDG_CONFIG_HOME:-$HOME/.config}/readline/inputrc"
export IRBRC="${XDG_CONFIG_HOME:-$HOME/.config}/irb/irbrc"
export KODI_DATA="${XDG_DATA_HOME:-$HOME/.local/share}/kodi"
export LESSHISTFILE="-"
export MBSYNCRC="${XDG_CONFIG_HOME:-$HOME/.config}/mbsync/config"
export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch-config"
export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
export NVM_DIR="$XDG_DATA_HOME"/nvm
export OCTAVE_HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/octave-hsts"
export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/password-store"
export PYENV_ROOT="${XDG_DATA_HOME:-$HOME/.local/share}/pyenv"
export STACK_ROOT="$XDG_DATA_HOME"/stack
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
export UNISON="${XDG_DATA_HOME:-$HOME/.local/share}/unison"
export WEECHAT_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/weechat"
export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc"
export WINEPREFIX="${XDG_DATA_HOME:-$HOME/.local/share}/wineprefixes/default"
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # This line will break some DMs.
export XINITRC="${XDG_CONFIG_HOME:-$HOME/.config}/x11/xinitrc"
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
I figured it out for the rework.
We'll soft deprecate user/source.*
and introduce user/sources/shell.*
If user/sources/shell.sh
does not exist, but user/shell/*.*
does, then dorothy will do that for loop magic that you are doing for you automatically.
Everything else can stay in user/source.*
or go into specific configuration sources.
We'll apply the changes in a few days, as I may be too busy on Wednesday with other tasks.
Thanks for the zoom call Benny. I have setup a kmonad numpad layout for so next time we can test and see how fast can get it to work for you.
Just finished the reaper installer. I've followed the setup-dorothy patterns so that it sets up a clean git if no user repo is found on github.
@molleweide I've addded you as a collaborator on the repo, can you push up the changes we made to dorothy to say a dev-paths-redo
branch, and I'll work on some of the changes from my side.
Can I do this from my fork? I have pushed all of the changes we've made to branch molleweide
.
Can I do this from my fork? I have pushed all of the changes we've made to branch
molleweide
.
cool, I'll cherry-pick them into that branch when I have time, and resume work
Great! Do I need to create a PR in order for that to work?
Great! Do I need to create a PR in order for that to work?
nah, all good
cool. im off to bed now. talk later!
but wait, if I am a collaborator, then I can just push to upstream right?
pushed!
I've got the rewrite done locally. Grab a time on https://balupton.com/meet this weekend and I can get your feedback on the changes.
is the time table converted so I choose time slots according to swedish time?
timezone is whatever is here
okay just wanted to make sure. I enterd 13.45 on tuesday 26th. I hope that isn't to early for you Ben.
I see in the auto email that it is 07:45. Tell me if you want to push it forward to eg. 09.45 your time?
07:45pm - Tuesday, 26 October 2021 (Australia/Perth)
Works great
Oh it said pm lol ithought it said am
So I'll have the new version of dorothy published prior to our meeting, and we can use the meeting to adapt your user configuration accordingly and solicit any feedback adjustments that need to be made.
Dude I'm super excited about this! I'm really looking forward to zooming tomorrow.
how do you install the packages from generic.bash
? Do you run each respective setup-util
script or is there a single command?
how do you install the packages from
generic.bash
? Do you run each respectivesetup-util
We'll cover it in the call, as I believe generic.bash
may have been a local workaround.
For details on the upcoming release, see #24
Great!
yo im getting ready. it is 13.45 for me now.
Just write when you are ready also. I am taking something to eat.
ready, just chilling in the zoom lobby
Cool. Just Gimmie a minute :)
im ready
https://balupton.com/zoom in case you need the link
@molleweide ping
just a moment
My network!!!
Hi there,
First of all I want to say that I am very happy that I found this project and it looks amazing! I found it when searching for a better reason differentiate between intel mac and M1 in bash. I saw that you are using
uname -a
which is cool!Question: Can I use this project on arch based linux distros. Have you tested it on that?
Currently I am a mac user myself but I am very much looking into migrating over to arch for various reasons.