-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profile
100 lines (86 loc) · 3.26 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/bin/sh
#
# this file should only contain posix-compliant shell customizations and
# environment variables. shell-specific customizations should be done in the
# respective shell's profile or init file (e.g. .zshrc, .bash_profile, etc.)
# AJATT (user account only because TTYs don't render non-ascii characters)
export LANG='ja_JP.UTF-8'
# aliases
alias vim='nvim'
alias copy='xclip -selection clipboard'
alias dnd='dragon-drop --all --and-exit'
alias sl='sl -w'
alias bctl='bluetoothctl'
alias sctl='systemctl --user'
# one letters
alias r='cd "$(lf -print-last-dir | head -n1)"'
alias v='nvim'
alias m='neomutt'
alias y='yay'
alias n='ncmpcpp'
alias c='khal'
alias f='fork'
alias p='pass'
alias b='bluetoothctl'
alias s='systemctl --user'
alias g='git'
# force colorterm
export COLORTERM="truecolor"
# xdg base directories
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
# ruby
export GEM_HOME="$XDG_DATA_HOME/gem/ruby/3.0.0"
# script locations
if [ -z "$PATH_EXTENDED" ] ; then
PATH="$GEM_HOME/bin:$PATH"
# PATH="$HOME/.lyp/bin:$PATH"
# PATH="/opt/f4pga/xc7/conda/bin:$PATH"
PATH="$HOME/.local/share/cargo/bin:$PATH"
PATH="$HOME/.local/go/bin:$PATH"
PATH="$HOME/.local/bin:$PATH"
PATH="$HOME/.local/share/bin:$PATH"
export PATH
export PATH_EXTENDED=y
fi
# other stuff
export EDITOR="nvim -p"
export PAGER="less"
export FZF_DEFAULT_COMMAND="find . -name '.?*' -prune -o -print"
export FZF_DEFAULT_OPTS="--color=bw,fg:7,scrollbar:8,info:8 --layout=reverse --info=inline-right --no-separator --no-scrollbar --marker='*' --pointer=''"
export GOPATH="$HOME/.local/go"
[ -e "$XDG_CONFIG_HOME/gtk-4.0/env" ] && . "$XDG_CONFIG_HOME/gtk-4.0/env"
export PASSWORD_STORE_ENABLE_EXTENSIONS=true
export PASSWORD_STORE_EXTENSIONS_DIR="$XDG_DATA_HOME/pass-extensions"
# LS_COLORS
[ ! -e "$XDG_CACHE_HOME/dircolors" ] || [ "$XDG_CONFIG_HOME/dircolors" -nt "$XDG_CACHE_HOME/dircolors" ] && dircolors "$XDG_CONFIG_HOME/dircolors" > "$XDG_CACHE_HOME/dircolors"
. "$XDG_CACHE_HOME/dircolors"
# use .config/ instead of home directory
export ANDROID_SDK_HOME="$XDG_CONFIG_HOME/android"
export ADB_VENDOR_KEY="$XDG_CONFIG_HOME/android"
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export gnome_user_dir="$HOME/.config/gnome/apps"
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export GRADLE_USER_HOME="$XDG_DATA_HOME/gradle"
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
export PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
export PYLINTHOME="$XDG_CACHE_HOME/pylint"
export STACK_ROOT="$XDG_DATA_HOME/stack"
export WINEPREFIX="$XDG_DATA_HOME/wineprefixes/default"
export HISTFILE="$XDG_DATA_HOME/zsh/history"
export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv"
export CONAN_USER_HOME="$XDG_CONFIG_HOME/conan"
alias nvidia-settings='nvidia-settings --config="$XDG_CONFIG_HOME/nvidia/settings"'
alias gpg2="gpg2 --homedir $XDG_DATA_HOME/gnupg"
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
export WGETRC="$XDG_CONFIG_HOME/wgetrc"
# disable dotnet telemetry
export DOTNET_CLI_TELEMETRY_OPTOUT=1
# GPG key IDs
export GPG_ID_DEFAULT="1081FFE2B963ADB5BDCF4DA6D0E3BC76E355B6CC"
export GPG_ID_GIT="$GPG_ID_DEFAULT"
export GPG_ID_PASSWORD_STORE="A12ADDD26335FA960FE3C78A9FC7A0100BC4C971"
# secrets
[ -f "$HOME/.env" ] && . "$HOME/.env"