feat: set env variables for development
This commit is contained in:
parent
fa04252661
commit
283e551b1d
2 changed files with 34 additions and 7 deletions
|
@ -5,20 +5,47 @@
|
|||
|
||||
# if running bash
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
# include .bashrc if it exists
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
# include .bashrc if it exists
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
fi
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/bin" ] ; then
|
||||
PATH="$HOME/bin:$PATH"
|
||||
PATH="$HOME/bin:$PATH"
|
||||
fi
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/.local/bin" ] ; then
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
fi
|
||||
|
||||
export GPG_TTY=$(tty)
|
||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||
|
||||
# Flutter
|
||||
export CHROME_EXECUTABLE="/usr/bin/chromium"
|
||||
export FLUTTER_ROOT="$HOME/flutter/flutter"
|
||||
if [ -d "$FLUTTER_ROOT/bin" ] ; then
|
||||
PATH="$FLUTTER_ROOT/bin:$PATH"
|
||||
fi
|
||||
|
||||
export EDITOR="nvim"
|
||||
|
||||
# Go
|
||||
export GOPATH="$HOME/go"
|
||||
if [ -d "$GOPATH/bin" ] ; then
|
||||
PATH="$GOPATH/bin:$PATH"
|
||||
fi
|
||||
if [ -d "/usr/lib/go-1.22/bin" ] ; then
|
||||
PATH="/usr/lib/go-1.22/bin:$PATH"
|
||||
fi
|
||||
|
||||
# Rustup
|
||||
if [ -d "$HOME/.cargo" ] ; then
|
||||
. "$HOME/.cargo/env"
|
||||
fi
|
||||
|
||||
# Firefox
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
|
|
|
@ -20,6 +20,6 @@
|
|||
mode: '0660'
|
||||
- name: Copy bash logout
|
||||
ansible.builtin.copy:
|
||||
src: files/profile.sh
|
||||
src: files/bash_logout.sh
|
||||
dest: "{{ ansible_env.HOME }}/.bash_logout"
|
||||
mode: '0660'
|
||||
|
|
Loading…
Reference in a new issue