50 lines
1.3 KiB
Bash
Executable File
50 lines
1.3 KiB
Bash
Executable File
# Exports
|
|
export EDITOR=vi
|
|
export VISUAL=vi
|
|
export PF_INFO="ascii title os host pkgs memory palette"
|
|
export PF_COL3=4
|
|
export LS_COLORS="$LS_COLORS:ow=1;7;34:st=30;44:su=30;41"
|
|
export MANPAGER='nvim +Man!'
|
|
export PATH="$PATH:$HOME/nand2tetris/tools"
|
|
export PATH="$HOME/.local/bin:$PATH"
|
|
export PATH="/opt/local/libexec/gnubin:$PATH"
|
|
export KEYTIMEOUT=1
|
|
export VI_MODE_SET_CURSOR=true
|
|
|
|
# Aliases
|
|
alias ls="ls -F --color=always --group-directories-first -h"
|
|
alias la="ls -F --color=always -Ahs"
|
|
alias l="ls -A"
|
|
alias ll="la -l"
|
|
alias vim=$EDITOR
|
|
alias t='python $HOME/repos/t/t.py --task-dir $HOME/tasks --list tasks'
|
|
alias wr='curl -fGsS --compressed "wttr.in/98122?1FQnT"'
|
|
alias w='curl -fGsS --compressed "wttr.in/98122?format=%C+%f+%p\n"'
|
|
setopt interactive_comments
|
|
bindkey -v
|
|
|
|
# Prompt
|
|
PS1='%(?.;.%F{red}%B;%b%f) '
|
|
|
|
# Completion
|
|
fpath=(/opt/local/share/zsh/site-functions $fpath)
|
|
autoload -Uz compinit
|
|
compinit
|
|
|
|
eval "$(fnm env)"
|
|
|
|
#[ -f "/Users/zane/.ghcup/env" ] && source "/Users/zane/.ghcup/env" # ghcup-env
|
|
source ~/.config/up/up.sh
|
|
|
|
[ -f "/Users/zane/.ghcup/env" ] && source "/Users/zane/.ghcup/env" # ghcup-env
|
|
|
|
if [ -z "$TMUX" ]
|
|
then
|
|
if tmux has-session 2>/dev/null; then
|
|
tmux attach-session
|
|
else
|
|
tmux new-session -s main sandman catgirl tilde
|
|
fi
|
|
else
|
|
fi
|