Repository navigation
Expand file tree
/
Copy pathdot_bashrc
More file actions
33 lines (29 loc) · 1.39 KB
/
Copy pathdot_bashrc
File metadata and controls
33 lines (29 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#-----------------------------------------------------------
# @raisedadead's config files
# Copyright: Mrugesh Mohapatra <https://mrugesh.dev>
# License: ISC
#
# File name: .bashrc
#-----------------------------------------------------------
# Minimal on purpose. zsh is the shell. This file only makes a bash
# process that something else spawns behave correctly.
# Non-interactive bailout
[[ $- != *i* ]] && return
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export XDG_CONFIG_HOME="$HOME/.config"
export EDITOR="nvim"
# --- PATH ---
# The fnm default-alias dir must stay ABOVE Homebrew, or bash resolves
# Homebrew's node. path.zsh carries the same prepend; keep the two in sync.
export HOMEBREW_PREFIX="/opt/homebrew"
export PATH="$HOMEBREW_PREFIX/bin:$HOMEBREW_PREFIX/sbin:$PATH"
export PNPM_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/pnpm"
[[ -d "$PNPM_HOME/bin" ]] && export PATH="$PNPM_HOME/bin:$PATH"
[[ -d "${XDG_DATA_HOME:-$HOME/.local/share}/fnm/aliases/default/bin" ]] && export PATH="${XDG_DATA_HOME:-$HOME/.local/share}/fnm/aliases/default/bin:$PATH"
export GOPATH="$HOME/go"
[[ -d "$GOPATH/bin" ]] && export PATH="$GOPATH/bin:$PATH"
[[ -d "$HOME/.cargo/bin" ]] && export PATH="$HOME/.cargo/bin:$PATH"
[[ -d "$HOME/.local/bin" ]] && export PATH="$HOME/.local/bin:$PATH"
[[ -d "$HOME/.bin" ]] && export PATH="$HOME/.bin:$PATH"
command -v wt >/dev/null 2>&1 && eval "$(wt config shell init bash)"