-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.__neutral__.
More file actions
executable file
·61 lines (56 loc) · 3.16 KB
/
.__neutral__.
File metadata and controls
executable file
·61 lines (56 loc) · 3.16 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
#!/usr/bin/env bash
[[ -f "$(which tty)" ]] && GPG_TTY=$(tty) && export GPG_TTY
[[ -d "$HOME/.local/bin" ]] && export PATH="$HOME/.local/bin:$PATH"
[[ -d "$HOME/bin" ]] && export PATH="$HOME/bin:$PATH"
[[ -d "$HOME/.cargo/bin" ]] && export PATH="$HOME/.cargo/bin:$PATH"
[[ -d "$HOME/.local/share" ]] && export XDG_DATA_HOME="$HOME/.local/share"
[[ -d "$HOME/.config" ]] && export XDG_CONFIG_HOME="$HOME/.config"
[[ -d "$HOME/.local/state" ]] && export XDG_STATE_HOME="$HOME/.local/state"
[[ -d "$HOME/.cache" ]] && export XDG_CACHE_HOME="$HOME/.cache"
[[ -d "/usr/share/fzf" ]] && export FZF_BASE="/usr/share/fzf"
[[ -d "/home" ]] && export HOMEDRIVE="/home"
[[ -d "$HOMEDRIVE/$(logname)" ]] && HOMEPATH="$(logname)" && export HOMEPATH
[[ -f "${XDG_DATA_HOME:-$HOME/.local/share}/Steam/steamapps/common/Lossless Scaling/Lossless.dll" ]] && export LSFG_DLL_PATH="${XDG_DATA_HOME:-$HOME/.local/share}/Steam/steamapps/common/Lossless Scaling/Lossless.dll"
[[ -d "/usr/share/nvm" ]] && export NVM_DIR="/usr/share/nvm"
# shellcheck disable=SC1091
[ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh" # This loads nvm
# shellcheck disable=SC1091
[ -s "$NVM_DIR/bash_completion" ] && source "$NVM_DIR/bash_completion" # This loads nvm bash_completion
[[ -d "$HOME/.pyenv" ]] && export PYENV_ROOT="$HOME/.pyenv"
[[ -d "$PYENV_ROOT/bin" ]] && export PATH="$PYENV_ROOT/bin:$PATH"
[[ -d "$HOME/.linuxbrew" ]] && eval "$("$HOME/.linuxbrew/bin/brew" shellenv)"
[[ -d "/home/linuxbrew/.linuxbrew" ]] && eval "$("/home/linuxbrew/.linuxbrew/bin/brew" shellenv)"
[[ -f "$(which brew)" ]] && eval "$("$(brew --prefix)/bin/brew" shellenv)"
[[ -f "$HOME/.cargo/env" ]] && source "$HOME/.cargo/env"
export LANG="en_US.UTF-8"
export VISUAL="gedit"
export GIT_DISCOVERY_ACROSS_FILESYSTEM="1"
export EDITOR="nano"
export CRYPTOGRAPHY_OPENSSL_NO_LEGACY="true"
export VDPAU_DRIVER="nvidia"
export LIBVA_DRIVER_NAME="nvidia"
export TERM="alacritty"
[[ -f "$(which make)" ]] && alias make-fast='make -j$(nproc)'
[[ -f "$(which yay)" ]] && alias yay-custom='yay --devel --timeupdate --noconfirm --needed --noredownload --norebuild --noremovemake --nomakepkgconf --save --combinedupgrade --sudoloop --answerdiff None --answeredit None --answerclean All'
[[ -f "$(which speedtest++)" ]] && alias speedtest='speedtest++ --share'
[[ -f "$(which flatpak)" ]] && alias flatpak-user='flatpak --user'
[[ -f "$(which pacman)" ]] && alias pacman="sudo pacman"
jmn-gamescope() {
echo "gamescope --prefer-vk-device 10de:2503 --prefer-output DP-1,DP-2,HDMI-A-2 --adaptive-sync --force-grab-cursor --fullscreen --force-windows-fullscreen --framerate-limit 120 --output-width 1920 --output-height 1080 --filter nis --"
}
if [[ -f "$(which pgrep)" ]] && [[ -f "$(which ssh-agent)" ]]; then
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent -t 1h > "${XDG_RUNTIME_DIR:-/run/user/$(id -u)}/ssh-agent.env"
fi
if [ ! -f "${SSH_AUTH_SOCK}" ]; then
source "${XDG_RUNTIME_DIR}/ssh-agent.env" >/dev/null
fi
fi
# shellcheck disable=SC2034
export COMPLETION_WAITING_DOTS="true"
# shellcheck disable=SC2034
export CASE_SENSITIVE="false"
# shellcheck disable=SC2034
export HYPHEN_INSENSITIVE="false"
# shellcheck disable=SC2034
export ENABLE_CORRECTION="true"