Add env and aliases for home-manager
This commit is contained in:
parent
4f5d9a240e
commit
2353b4cfac
2 changed files with 14 additions and 2 deletions
|
@ -6,6 +6,8 @@ alias :wq='exit'
|
||||||
|
|
||||||
alias aliases='$EDITOR ~/.config/aliasrc && . ~/.config/aliasrc'
|
alias aliases='$EDITOR ~/.config/aliasrc && . ~/.config/aliasrc'
|
||||||
alias aliases.local='$EDITOR ~/.config/aliasrc.local && . ~/.config/aliasrc'
|
alias aliases.local='$EDITOR ~/.config/aliasrc.local && . ~/.config/aliasrc'
|
||||||
|
# shellcheck disable=2154
|
||||||
|
alias arch-deps2deps='set -a; source PKGBUILD; set +a; sudo pacman -S --asdeps --noconfirm $depends && makepkg -fsi --noconfirm'
|
||||||
alias artisan='./artisan'
|
alias artisan='./artisan'
|
||||||
|
|
||||||
alias bspwm-default='echo "default" > /tmp/bspwm_mode; bspc wm -r'
|
alias bspwm-default='echo "default" > /tmp/bspwm_mode; bspc wm -r'
|
||||||
|
@ -16,6 +18,7 @@ alias clip='xclip -selection clipboard'
|
||||||
alias cp='cp -iv'
|
alias cp='cp -iv'
|
||||||
|
|
||||||
alias df='df -h'
|
alias df='df -h'
|
||||||
|
alias dns-flush='sudo systemctl restart systemd-resolved.service && sudo systemd-resolve --flush-caches && sudo resolvectl flush-caches'
|
||||||
alias doas='doas -- '
|
alias doas='doas -- '
|
||||||
alias doasu='\doas -u '
|
alias doasu='\doas -u '
|
||||||
alias docker-caddy-reload='docker compose exec app sh -c "caddy validate --config /etc/caddy/Caddyfile && caddy reload --config /etc/caddy/Caddyfile"'
|
alias docker-caddy-reload='docker compose exec app sh -c "caddy validate --config /etc/caddy/Caddyfile && caddy reload --config /etc/caddy/Caddyfile"'
|
||||||
|
|
|
@ -45,6 +45,8 @@ export MAKEFLAGS="-j$_makeflags"
|
||||||
export MARKPATH="$XDG_CONFIG_HOME/zsh/jump_marks"
|
export MARKPATH="$XDG_CONFIG_HOME/zsh/jump_marks"
|
||||||
export MENU="bemenu"
|
export MENU="bemenu"
|
||||||
|
|
||||||
|
_whoami=$(whoami)
|
||||||
|
export NIX_PATH="$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/$_whoami/channels${NIX_PATH:+:$NIX_PATH}"
|
||||||
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch/config"
|
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch/config"
|
||||||
|
|
||||||
export OPENFAAS_URL="https://faas.serguzim.me"
|
export OPENFAAS_URL="https://faas.serguzim.me"
|
||||||
|
@ -80,6 +82,13 @@ export ZSH="$ZDOTDIR/oh-my-zsh"
|
||||||
[ -x "$(command -v moar)" ] && export MANPAGER="moar"
|
[ -x "$(command -v moar)" ] && export MANPAGER="moar"
|
||||||
[ -x "$(command -v moar)" ] && export PAGER="moar"
|
[ -x "$(command -v moar)" ] && export PAGER="moar"
|
||||||
|
|
||||||
set -a
|
if [ -x "$(command -v home-manager)" ] && [ -x "$(command -v nix)" ]
|
||||||
|
then
|
||||||
|
[ -f "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" ] \
|
||||||
|
&& . "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||||
|
|
||||||
|
[ -d "$HOME/.nix-profile/share" ] \
|
||||||
|
&& export XDG_DATA_DIRS="$HOME/.nix-profile/share:$XDG_DATA_DIRS"
|
||||||
|
fi
|
||||||
|
|
||||||
[ -f "$HOME/.config/environment.local" ] && . "$HOME/.config/environment.local"
|
[ -f "$HOME/.config/environment.local" ] && . "$HOME/.config/environment.local"
|
||||||
set +a
|
|
||||||
|
|
Loading…
Reference in a new issue