-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
44 lines (34 loc) · 1.29 KB
/
.bashrc
File metadata and controls
44 lines (34 loc) · 1.29 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
34
35
36
37
38
39
40
41
42
43
44
# If not running interactively, don't do anything (leave this at the top of this file)
[[ $- != *i* ]] && return
if [ -d "$HOME/.local/share/omarchy" ]; then
source ~/.local/share/omarchy/default/bash/rc
fi
alias ll='ls -la --color=auto'
alias vim='nvim'
# Dotfiles git bare command
alias config='git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
# XDG Base Directory Specification
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
# opencode
export PATH=/home/albert/.opencode/bin:$PATH
export PATH=/home/albertllonch/.opencode/bin:$PATH
export XCOMPOSEFILE="$XDG_CONFIG_HOME/x11/XCompose"
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
export CLICOLOR_FORCE=1
# Enable colors for WSL/Windows Terminal compatibility
force_color_prompt=yes
# Oh My Posh - cross-platform prompt (only if available and not in omarchy)
if [ -z "$OMP_ALREADY_LOADED" ]; then
if command -v oh-my-posh &>/dev/null; then
export OMP_ALREADY_LOADED=1
export POSH_THEME="$HOME/.config/oh-my-posh/config.json"
eval "$(oh-my-posh init bash --config $POSH_THEME)"
fi
fi
# Tmux config
if command -v tmux &>/dev/null && [ -z "$TMUX" ]; then
tmux attach -t default 2>/dev/null || tmux new -s default
fi
export PATH="$HOME/.npm-global/bin:$PATH"