My .zprofile:
My .zprofile:
#NixOS #Nix #HomeManager
#NixOS #Nix #HomeManager
Yes, I know, dotfiles.
Anyone have a dotfiles approach that I'll actually use? MacOS primary, don't really care about syncing it elsewhere, I use homebrew.
I'd be open to some new shell thingie.
Yes, I know, dotfiles.
Anyone have a dotfiles approach that I'll actually use? MacOS primary, don't really care about syncing it elsewhere, I use homebrew.
I'd be open to some new shell thingie.
zsh startup files such as .zshrc, .zprofile, and .zshenv can have compiled .zwc counterparts.
The full blog post here: dfir.ch/posts/compil...
zsh startup files such as .zshrc, .zprofile, and .zshenv can have compiled .zwc counterparts.
The full blog post here: dfir.ch/posts/compil...
IF YOU SET THE PATH IN /etc/zshenv THEN DON'T FUCKING DO IT AGAIN in /etc/zprofile AND OVERWRITE ANYTHING IN ~/.zshenv YOU ABSOLUTE FUCKING MELTS.
They had fucking unfucked this once, but no, they've decided to refuck it all over afucking-gain. Fuckers.
IF YOU SET THE PATH IN /etc/zshenv THEN DON'T FUCKING DO IT AGAIN in /etc/zprofile AND OVERWRITE ANYTHING IN ~/.zshenv YOU ABSOLUTE FUCKING MELTS.
They had fucking unfucked this once, but no, they've decided to refuck it all over afucking-gain. Fuckers.
1. Install Homebrew
2. Install rbenv with Homebrew, and init it
3. Install Ruby with rbenv, and init rbenv in .zprofile
4. Install Cocoapods with gem
5. Now I can simply run "pod install" etc
#iosdev #buildinpublic #todayilearned
1. Install Homebrew
2. Install rbenv with Homebrew, and init it
3. Install Ruby with rbenv, and init rbenv in .zprofile
4. Install Cocoapods with gem
5. Now I can simply run "pod install" etc
#iosdev #buildinpublic #todayilearned
Aside from slow compinit (a classic), I had eval "$(pyenv init --path)" in several places
Aside from slow compinit (a classic), I had eval "$(pyenv init --path)" in several places
PATH とか LSCOLORS といった他の環境変数は反映されてるんだけど。
PATH とか LSCOLORS といった他の環境変数は反映されてるんだけど。
In my .zprofile:
alias hey="osascript -e 'display notification \"hey\"'"
cargo build && hey
In my .zprofile:
alias hey="osascript -e 'display notification \"hey\"'"
cargo build && hey
And in my .profile or .zprofile (zsh also needs an additional setopt PROMPT_SUBST):
source ~/.git-prompt.sh
PS1='\w$(__git_ps1 " [%s]") \$ '
And in my .profile or .zprofile (zsh also needs an additional setopt PROMPT_SUBST):
source ~/.git-prompt.sh
PS1='\w$(__git_ps1 " [%s]") \$ '
# ~/.zprofile
alias list='skate list --keys-only'
alias load='skate get'
alias save='skate set'
$ pbpaste | save 'happy gary'
$ load 'happy gary'
ᕕ(ᐛ)ᕗ
#Linux #MacOS
# ~/.zprofile
alias list='skate list --keys-only'
alias load='skate get'
alias save='skate set'
$ pbpaste | save 'happy gary'
$ load 'happy gary'
ᕕ(ᐛ)ᕗ
#Linux #MacOS
- .zshenv for things like XDG_CONFIG_DIR, ZSH_DIR, EDITOR since this gets sourced everywhere (usually)
- .zsh/.zprofile for PATH (zsh has a neat unique array thing to keep it tidt) and anything ur login shells need
- .zsh/.zshrc for interactive goodies (prompt, aliases, etc)
- .zshenv for things like XDG_CONFIG_DIR, ZSH_DIR, EDITOR since this gets sourced everywhere (usually)
- .zsh/.zprofile for PATH (zsh has a neat unique array thing to keep it tidt) and anything ur login shells need
- .zsh/.zshrc for interactive goodies (prompt, aliases, etc)