bevry / dorothy

🧙🏻‍♀️ Bring your dotfile commands and configuration to any shell. Sensible defaults and hundreds of commands preloaded. Supports Bash, Zsh, Fish, Nu, Xonsh, Elvish, Dash, KornShell, macOS, Linux, Windows.
Other
322 stars 22 forks source link

Adoption Support #21

Closed molleweide closed 2 years ago

molleweide commented 3 years ago

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.

molleweide commented 3 years ago

Hey, do you know how to rewrite zsh setopt command in strict mode?

balupton commented 3 years ago

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

molleweide commented 3 years ago

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
molleweide commented 3 years ago

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.

balupton commented 3 years ago

Can we jump on a zoom https://balupton.com/zoom or signal +14084186557 call, so you can screenshare?

molleweide commented 3 years ago

Yes, absolutely. I just installed your zoom link.

molleweide commented 3 years ago
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"
balupton commented 3 years ago

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.

molleweide commented 3 years ago

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.

molleweide commented 3 years ago

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.

balupton commented 3 years ago

@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.

molleweide commented 3 years ago

Can I do this from my fork? I have pushed all of the changes we've made to branch molleweide.

balupton commented 3 years ago

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

molleweide commented 3 years ago

Great! Do I need to create a PR in order for that to work?

balupton commented 3 years ago

Great! Do I need to create a PR in order for that to work?

nah, all good

molleweide commented 3 years ago

cool. im off to bed now. talk later!

molleweide commented 3 years ago

but wait, if I am a collaborator, then I can just push to upstream right?

molleweide commented 3 years ago

pushed!

balupton commented 3 years ago

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.

molleweide commented 3 years ago

is the time table converted so I choose time slots according to swedish time?

balupton commented 3 years ago

CleanShot 2021-10-22 at 21 10 32@2x

timezone is whatever is here

molleweide commented 3 years ago

okay just wanted to make sure. I enterd 13.45 on tuesday 26th. I hope that isn't to early for you Ben.

molleweide commented 3 years ago

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?

balupton commented 3 years ago

07:45pm - Tuesday, 26 October 2021 (Australia/Perth)

Works great

molleweide commented 3 years ago

Oh it said pm lol ithought it said am

balupton commented 3 years ago

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.

molleweide commented 2 years ago

Dude I'm super excited about this! I'm really looking forward to zooming tomorrow.

molleweide commented 2 years ago

how do you install the packages from generic.bash? Do you run each respective setup-util script or is there a single command?

balupton commented 2 years ago

how do you install the packages from generic.bash? Do you run each respective setup-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

molleweide commented 2 years ago

Great!

molleweide commented 2 years ago

yo im getting ready. it is 13.45 for me now.

Just write when you are ready also. I am taking something to eat.

balupton commented 2 years ago

ready, just chilling in the zoom lobby

molleweide commented 2 years ago

Cool. Just Gimmie a minute :)

molleweide commented 2 years ago

im ready

balupton commented 2 years ago

https://balupton.com/zoom in case you need the link

balupton commented 2 years ago

@molleweide ping

molleweide commented 2 years ago

just a moment

molleweide commented 2 years ago

My network!!!