This repository was archived by the owner on Mar 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_profile
More file actions
82 lines (69 loc) · 2.56 KB
/
dot_profile
File metadata and controls
82 lines (69 loc) · 2.56 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
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env sh
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
export EDITOR=nvim
export GIT_EDITOR="$EDITOR"
export TERMINAL=/usr/bin/kitty
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export QT_QPA_PLATFORMTHEME=gtk2
export MOZ_USE_XINPUT2=1
# Add TeX Live related variables
export TEXDIR="/usr/local/texlive/2020"
export TEXMFLOCAL="/usr/local/texlive/texmf-local"
export TEXMFSYSVAR="/usr/local/texlive/2020/texmf-var"
export TEXMFSYSCONFIG="/usr/local/texlive/2020/texmf-config"
export TEXMFVAR="$HOME/.texlive2020/texmf-var"
export TEXMFCONFIG="$HOME/.texlive2020/texmf-config"
export TEXMFHOME="$HOME/texmf"
# If emacs server is not opened, open it now
export ALTERNATE_EDITOR=''
# This kind of directory should always be hidden
export GOPATH="$XDG_DATA_HOME/go"
if command -v dotnet >/dev/null; then
# Add .Net to PATH Source: https://github.com/OmniSharp/omnisharp-vscode/issues/2970#issuecomment-541516806
dotnet_base=$(dotnet --info | grep "Base Path" | awk '{print $3}')
dotnet_root=$(echo $dotnet_base | sed -E "s/^(.*)(\/sdk\/[^\/]+\/)$/\1/")
export MSBuildSDKsPath=${dotnet_base}Sdks/
export DOTNET_ROOT=$dotnet_root
# Why the hell do you need telemetry for a CLI tool?
export DOTNET_CLI_TELEMETRY_OPTOUT=1
fi
add_dir_to_path() {
if [ -d "$1" ]; then
export PATH="$1:$PATH"
fi
}
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
if command -v ruby >/dev/null && command -v gem >/dev/null; then
add_dir_to_path "$(ruby -r rubygems -e 'puts Gem.user_dir')/bin"
fi
# Add directories to $PATH
add_dir_to_path "/bin"
add_dir_to_path "/usr/bin"
add_dir_to_path "/usr/local/bin"
add_dir_to_path "/usr/local/go/bin"
add_dir_to_path "/usr/local/texlive/2020/bin/x86_64-linux"
add_dir_to_path "/opt/miktex/bin"
add_dir_to_path "/opt/luametatex/texmf-linux-64/bin"
add_dir_to_path "$HOME/bin"
add_dir_to_path "$HOME/.local/bin"
add_dir_to_path "$HOME/.cargo/bin"
add_dir_to_path "$HOME/.dotnet/tools"
add_dir_to_path "$HOME/clones/doom-emacs/bin"
add_dir_to_path "$HOME/clones/mxe/usr/bin"
add_dir_to_path "$DOTNET_ROOT"
add_dir_to_path "$(yarn global bin --offline)"
add_dir_to_path "$(go env GOPATH)/bin"