-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_bashrc_personal
More file actions
69 lines (52 loc) · 1.44 KB
/
dot_bashrc_personal
File metadata and controls
69 lines (52 loc) · 1.44 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
# persistent ssh-agent
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
# set shell language to UTF8
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
# fnm (nodejs manager)
FNM_PATH="/home/gal/.local/share/fnm"
if [ -d "$FNM_PATH" ]; then
export PATH="$FNM_PATH:$PATH"
# eval "`fnm env`"
eval "$(fnm env --use-on-cd)" # automatically switch node version based on directory
fi
# Homebrew
if [ -f "/home/linuxbrew/.linuxbrew/bin/brew" ]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# Emacs
alias ec="emacsclient -r -n -a ''"
# bat
alias bat='batcat'
# Rust
if [ -f "$HOME/.cargo/env" ]; then
. "$HOME/.cargo/env"
fi
# Add .NET Core SDK tools
export PATH="$PATH:/home/gal/.dotnet/tools"
# use starship for the shell prompt
eval "$(starship init bash)"
# opencode
export PATH=/home/gal/.opencode/bin:$PATH
alias opencode="nono run --allow-cwd --profile opencode-dotnet -- opencode"
# eza - modern ls
alias ls="eza"
alias ll="eza -lg"
# claude code
alias claude="nono run --profile claude-code-dotnet -- claude"
# zoxide - better cd
eval "$(zoxide init bash)"
# zig
export ZIG_INSTALL="$HOME/.local/bin/zig"
export PATH="$ZIG_INSTALL:$PATH"