Compare commits

...

2 Commits

Author SHA1 Message Date
1094859efd correct some emacs paths 2025-09-28 15:05:11 -04:00
b22a9c4867 Add zshrc 2025-09-28 15:05:11 -04:00
4 changed files with 85 additions and 2 deletions

View File

@ -78,5 +78,6 @@ dashboard:
# Other misc conf files
xdg.configFile."kitty/kitty.conf".source = ./xdg/kitty/kitty.conf;
home.file.".zshrc".source = .xdg/zshrc;
}

View File

@ -906,6 +906,6 @@ description at POINT."
(godef--find-file-line-column file))))
(file-error (message "Could not run godef binary"))))
(load "~/.emacs.d/modes/go-mode-custom.el")
(load "~/.config/emacs/modes/go-mode-custom.el")
(provide 'go-mode)

View File

@ -6,7 +6,7 @@
(add-hook 'text-mode-hook 'flyspell-mode)
; Settings for C++ mode (and I guess C as well)
(add-hook 'c-mode-common-hook (lambda () (load "~/.emacs.d/modes/c-mode.el")))
(add-hook 'c-mode-common-hook (lambda () (load "~/.config/emacs/modes/c-mode.el")))
(add-hook 'c-mode-common-hook 'hs-minor-mode)
;; Terraform mode hooks

82
xdg/zshrc Normal file
View File

@ -0,0 +1,82 @@
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000000000000
SAVEHIST=10000000000000
setopt share_history
bindkey -e
# End of lines configured by zsh-newuser-install
autoload -U compinit promptinit
promptinit
setopt globdots
set bell-style none
local start="%(?,%F{red}☺,%F{red}☹)"
# Decode hostname color based on hostname.
HOSTNAME=$(cat /etc/hostname)
COLOR=yellow
if [[ "$HOSTNAME" == *"tin"* ]]
then
COLOR=129
elif [[ "$HOSTNAME" == *"zinc"* ]]
then
COLOR=blue
elif [[ "$HOSTNAME" == *"nicrosil"* ]]
then
COLOR=cyan
elif [[ "$HOSTNAME" == *"iron"* ]]
then
COLOR=black
fi
# Other prompt colors
SYSTEM_COLOR=69
BGCOLOR=183
ERRORCOLOR=196
PATHBGCOLOR=53
PATHCOLOR=69
PROMPT="%K{$BGCOLOR}%(?,%B%F{$BGCOLOR}▒░,%F{$ERRORCOLOR}█▒)%K{$BGCOLOR}%F{$SYSTEM_COLOR}%B%n@%F{$COLOR}%m%b%F{$BGCOLOR}%K{$PATHBGCOLOR}▓▒░%F{$PATHCOLOR}%K{$PATHBGCOLOR}%B%~/%b%k%f%F{$PATHBGCOLOR}%K{default}▓▒░%B%F{$PATHCOLOR}%#%b%F{default} "
RPROMPT=""
# Cascading preferences of editors
EDITOR="$HOME/usr/bin/emacs"
[ -x "$EDITOR" ] || EDITOR="$HOME/scripts/emacs"
[ -x "$EDITOR" ] || EDITOR='/usr/bin/emacs'
[ -x "$EDITOR" ] || EDITOR='/usr/bin/vim'
[ -x "$EDITOR" ] || EDITOR='/usr/bin/vi'
# source ~/.zsh/zsh-syntax-highlighting.zsh
export PATH=$HOME/usr/bin:$HOME/scripts:$HOME/go/bin:$PATH
export GOPATH=$HOME/go
export CC=/usr/bin/clang
[ -f ~/.localrc ] && source ~/.localrc
[ -f ~/.bash_aliases ] && source ~/.bash_aliases
export WINEPREFIX="$HOME/usr/wine"
export PREFIX="$HOME/usr"
# SSH-agent starting
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
fi
if [[ ! "$SSH_AUTH_SOCK" ]]; then
source "$XDG_RUNTIME_DIR/ssh-agent.env" >/dev/null
fi
export TERM=rxvt-unicode
# Pyenv
# eval "$(pyenv init --path)"
# eval "$(pyenv init -)"
# Starship
eval "$(starship init zsh)"