This commit is contained in:
opalvault
2022-01-06 00:06:04 -08:00
parent 9616eae7dd
commit 6f29d506ef
84 changed files with 6934 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
HOME_ENVIRONMENT=$HOME/.guix-home
. $HOME_ENVIRONMENT/setup-environment
$HOME_ENVIRONMENT/on-first-login
# Each new shell auto-imports all environment variables.
# Hence exporting needs to be done only once.
# Also, all non-login shells are descendants of a login shell.
# Ergo, exports need to be done in the login shell only.
# Hence, we put exports in .zprofile
# Only vars needed by external commands should be exported.
# Note that you can export vars w/out assigning a value to them.
export XDG_CONFIG_HOME=~/.config
export XDG_CACHE_HOME=~/.cache
export XDG_DATA_HOME=~/.local/share
export XDG_STATE_HOME=~/.config/zsh
export EDITOR=nvim
export VISUAL=nvim
GUIX_PROFILE="$HOME/.config/guix/current" . "$GUIX_PROFILE/etc/profile"
xmodmap ~/.config/xmodmap/xmodmap

View File

@@ -0,0 +1,22 @@
# ~ Guix #
alias install="guix install"
alias remove="guix remove"
alias search="guix search"
alias pull="guix pull"
alias upgrade="guix package -u"
alias hreconfig="guix home reconfigure ~/dotfiles/guix/home/guix-home.scm"
# ~ Commands ~ #
alias ip="ip -c"
alias rm="rm -i"
alias ols="ls-with-file-mode-bits.sh"
# ~ Derp ~ #
alias unmount="umount"
alias please="sudo"
alias yeet="rm -rf"
alias :q='echo This aint a file, dingus.'
alias :wq='echo This aint a file, dingus.'
# ~ Source Zsh Configuration ~ #
alias zshrcsource="source ~/dotfiles/guix/home/files/zsh/zshrc"

View File

@@ -0,0 +1,5 @@
# ~ Move files to trash folder instead ~ #
del () { mv "$@" $HOME/.local/share/trash/files/.; }
# Make directory and CD into it.
mk () { mkdir -p -- "$1" && cd -P -- "$1" }

View File

@@ -0,0 +1,9 @@
if [[ -z "$XDG_CONFIG_HOME" ]]
then
export XDG_CONFIG_HOME="$HOME/.config"
fi
if [[ -d "$XDG_CONFIG_HOME/zsh" ]]
then
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
fi

View File

@@ -0,0 +1,29 @@
# Sometimes SSH'ing with Emacs is ungraceful.
# To remedy this I disable the zsh line editor.
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
#### ~~~~ General ~~~~ #####
export ZSH="$XDG_CONFIG_HOME/oh-my-zsh"
HISTFILE=$XDG_CONFIG_HOME/zsh/.history
ZSH_THEME="mrtazz"
DISABLE_AUTO_UPDATE="true"
ENABLE_CORRECTION="true"
plugins=(git)
source $ZSH/oh-my-zsh.sh # This has to stay below plugins.
#### ~~~~ Autostart ~~~~ #####
pfetch
#### ~~~~ Path Additions ~~~~ #####
export PATH=/home/opal/scripts:$PATH # Scripts
#### ~~~~ Locale ~~~~ #####
export LANG=en_US.UTF-8
#### ~~~~ Import ~~~~ #####
ALIAS_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_aliases"
FUNCTION_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_functions"
source $ALIAS_LOCATION
source $FUNCTION_LOCATION