-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profile
81 lines (63 loc) · 1.85 KB
/
.profile
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
70
71
72
73
74
75
76
77
78
79
80
81
# jshap's not-so-standard .profile
# -----------------------------------------
# environment settings
export EDITOR="vim"
export BROWSER="firefox-nightly"
export TERMINAL="alacritty"
# LS_COLORS are nice :)
if [ -f "$HOME/.dir_colors" ]; then
eval "$(dircolors -b ~/.dir_colors)"
else
# don't require stat for permisions check on every ls
eval "$(dircolors -p | perl -pe 's/^((CAP|S[ET]|O[TR]|M|E)\w+).*/$1 00/' | dircolors -)"
fi
#eval $(dircolors -b ~/.dir_colors)
# do a bunch of less config stuffs...
# like, don't ring the bell at EOF in less. it's annoying.
# e = quit on 2x eof
# F = tail
# i = ignore search case
# Q = quiet / nobell
# R = color / nostrip
# X = leave output on terminal
# N = line numbers
# S = chop long lines
# M = more
# K = quit on sigint
export LESS="-FiQRX"
export SYSTEMD_LESS="-FRSXMKQi"
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# -----------------------------------------
# path
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
export PATH="$PATH:$HOME/bin"
fi
# frameworks:
# go
export GOPATH="$HOME/.cache/go"
# programs:
# android
#export ANDROID_HOME=/opt/android-sdk
#export PATH="$PATH:$ANDROID_HOME/tools"
#export PATH="$PATH:$ANDROID_HOME/platform-tools"
# idea
#export PATH="$PATH:/home/shapirjr/bin/intellij/bin"
#export PATH="$PATH:/usr/local/cuda-12.3/bin"
# -----------------------------------------
# misc tweaks/fixes
# GTK - https://wiki.archlinux.org/index.php/GTK%2B#Suppress_warning_about_accessibility_bus
export NO_AT_BRIDGE=1
# enable firefox on wayland
if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
export MOZ_ENABLE_WAYLAND=1
export QT_QPA_PLATFORM=wayland
export GDK_BACKEND=wayland
fi
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gcr/ssh