Skip to content

Commit

Permalink
remove .profile
Browse files Browse the repository at this point in the history
didn't realize it was just for x.org
  • Loading branch information
mtaron committed May 28, 2024
1 parent c53d868 commit 81f56d2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 39 deletions.
36 changes: 0 additions & 36 deletions home/private_dot_profile.tmpl

This file was deleted.

37 changes: 34 additions & 3 deletions home/private_dot_zshenv.tmpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,39 @@
{{ if or .headless (eq .chezmoi.os "darwin") -}}
# On MacOS .profile is not read by the OS, so running it here.
source "$HOME/.profile"
# XDG base directories
# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_BIN_DIR="$HOME/.local/bin"

export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export LESSHISTFILE="$XDG_DATA_HOME/less/history"

export VISUAL=code

{{ if lookPath "bat" -}}
# Color man pages with bat
# https://github.com/sharkdp/bat#man
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
export MANROFFOPT="-c"
{{- end }}

export PAGER='less --quit-if-one-screen --mouse'

{{ if and (eq .chezmoi.os "linux") (not .headless) -}}
export VSCODE_PORTABLE="$XDG_CONFIG_HOME/vscode"
{{- end }}
{{ if lookPath "ipython" -}}
export IPYTHONDIR="$XDG_CONFIG_HOME/ipython"
{{- end }}
{{ if lookPath "jupyter" -}}
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter"
{{- end }}

# https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-tool-install
[[ -d "$HOME/.dotnet/tools" ]] && PATH="$HOME/.dotnet/tools:$PATH"

export PATH="$XDG_BIN_DIR:$PATH"

# zsh paths
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
export HISTFILE="$ZDOTDIR/.zsh_history"
Expand Down

0 comments on commit 81f56d2

Please sign in to comment.