modify Linux nanorc and bashrc for Debian
The ubuntu Bashrc file will be renamed to bashrc/debian.bashrc, since my bashrc for Ubuntu also flawlessly work on debian too. The bootstrap script might need more work than intended to install Git and CPython from the backports. Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
This commit is contained in:
parent
fcf64bd60e
commit
7d3cf39eb8
|
@ -0,0 +1,3 @@
|
||||||
|
# Doppler token for use in GitLab stuff, KEK
|
||||||
|
# Do not leak this BS! Otherwise, we might be fucked.
|
||||||
|
export DOPPLER_TOKEN=dp.st.mikedmoy.thisTokenIsFrickingBullshitDontLeakIt
|
|
@ -1 +1,2 @@
|
||||||
/secrets
|
/secrets
|
||||||
|
.envrc
|
||||||
|
|
|
@ -79,8 +79,8 @@ esac
|
||||||
if [ -x /usr/bin/dircolors ]; then
|
if [ -x /usr/bin/dircolors ]; then
|
||||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
#alias dir='dir --color=auto'
|
alias dir='dir --color=auto'
|
||||||
#alias vdir='vdir --color=auto'
|
alias vdir='vdir --color=auto'
|
||||||
|
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias fgrep='fgrep --color=auto'
|
alias fgrep='fgrep --color=auto'
|
||||||
|
@ -150,19 +150,20 @@ else
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# As long as possible, attempt to setup our GnuPG agent when
|
# As long as possible, attempt to setup our GnuPG agent when we're on an SSH session.
|
||||||
# we're on an SSH session.
|
|
||||||
if [[ -n "$SSH_CLIENT" ]] || [[ -n "$SSH_TTY" ]]; then
|
if [[ -n "$SSH_CLIENT" ]] || [[ -n "$SSH_TTY" ]]; then
|
||||||
eval $(keychain --agents gpg,ssh --eval --nogui --noinherit)
|
eval $(keychain --agents gpg,ssh --eval --nogui --noinherit)
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
else
|
else
|
||||||
# We'll do some checks here btw, Currently I use GNOME and Xfce4 as my desktop environments
|
# We'll do some checks here btw, Currently I use GNOME and Xfce4 as my desktop environments
|
||||||
case $(ps -o comm= -p $PPID) in
|
case $(ps -o comm= -p $PPID) in
|
||||||
sshd | */sshd) eval $(keychain --agents gpg,ssh --eval --nogui --noinherit);;
|
# Sometimes, $SSH_CLIENT and/or $SSH_TTY doesn't exists so we'll pull what ps says
|
||||||
xfce*) eval $(keychain --agents gpg,ssh --eval);;
|
sshd | */sshd) eval $(keychain --agents gpg,ssh --eval --nogui --noinherit);;
|
||||||
gnome*) eval $(keychain --agents gpg,ssh --eval);;
|
xfce*) eval $(keychain --agents gpg,ssh --eval);;
|
||||||
code) eval $(keychain --agents gpg,ssh --eval);;
|
gnome*) eval $(keychain --agents gpg,ssh --eval);;
|
||||||
*) eval $(keychain --agents gpg,ssh --eval --nogui --noinherit) ;;
|
# Don't forget VS Code and code-server!
|
||||||
|
code) eval $(keychain --agents gpg,ssh --eval);;
|
||||||
|
*) eval $(keychain --agents gpg,ssh --eval --nogui --noinherit) ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -175,13 +176,14 @@ source "$HOME/.dotfiles/bashrc/chain-source"
|
||||||
|
|
||||||
# https://packaging.ubuntu.com/html/getting-set-up.html#configure-your-shell
|
# https://packaging.ubuntu.com/html/getting-set-up.html#configure-your-shell
|
||||||
export DEBFULLNAME="Andrei Jiroh Halili"
|
export DEBFULLNAME="Andrei Jiroh Halili"
|
||||||
## can't add this email to my Launchpad profile, probably because I'm using an free domain lol.
|
# Temporary Gmail address for devel stuff, even through my longer email one is, well,
|
||||||
export DEBEMAIL="andreijiroh@madebythepins.tk"
|
# on my public GPG key btw, so YOLO it.
|
||||||
|
export DEBEMAIL="ajhalili2006@gmail.com"
|
||||||
|
|
||||||
# Homebrew
|
# Homebrew
|
||||||
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
|
|
||||||
# Golang
|
# Golang, probably we need to tweak this btw
|
||||||
export PATH=/home/gildedguy/go/bin:$PATH GOPATH=/home/gildedguy/go
|
export PATH=/home/gildedguy/go/bin:$PATH GOPATH=/home/gildedguy/go
|
||||||
|
|
||||||
# Use native builds when doing 'docker build' instead of 'docker buildx build'
|
# Use native builds when doing 'docker build' instead of 'docker buildx build'
|
||||||
|
@ -189,3 +191,6 @@ export DOCKER_BUILDKIT=1
|
||||||
|
|
||||||
# Generated for envman. Do not edit.
|
# Generated for envman. Do not edit.
|
||||||
[ -s "$HOME/.config/envman/load.sh" ] && source "$HOME/.config/envman/load.sh"
|
[ -s "$HOME/.config/envman/load.sh" ] && source "$HOME/.config/envman/load.sh"
|
||||||
|
|
||||||
|
# direnv
|
||||||
|
eval "$(direnv hook bash)"
|
||||||
|
|
|
@ -2,18 +2,18 @@
|
||||||
helper = !gh auth git-credential
|
helper = !gh auth git-credential
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
email = andreijiroh@madebythepins.tk
|
email = ajhalili2006@gmail.com
|
||||||
name = Andrei Jiroh Eugenio Halili
|
name = Andrei Jiroh Eugenio Halili
|
||||||
signingkey = A30EBE40AD856D88
|
signingkey = A30EBE40AD856D88
|
||||||
#editor = code --wait
|
#editor = code --wait
|
||||||
[merge]
|
#[merge]
|
||||||
tool = vscode
|
# tool = vscode
|
||||||
[mergetool "vscode"]
|
#[mergetool "vscode"]
|
||||||
cmd = code --wait $MERGED
|
# cmd = code --wait $MERGED
|
||||||
[diff]
|
#[diff]
|
||||||
tool = vscode
|
# tool = vscode
|
||||||
[difftool "vscode"]
|
#[difftool "vscode"]
|
||||||
cmd = code --wait --diff $LOCAL $REMOTE
|
# cmd = code --wait --diff $LOCAL $REMOTE
|
||||||
[commit]
|
[commit]
|
||||||
gpgsign = true
|
gpgsign = true
|
||||||
|
|
||||||
|
@ -26,6 +26,9 @@
|
||||||
[url "git+ssh://ajhalili2006@git.launchpad.net/"]
|
[url "git+ssh://ajhalili2006@git.launchpad.net/"]
|
||||||
insteadof = lp:
|
insteadof = lp:
|
||||||
pushInsteadOf = lp:
|
pushInsteadOf = lp:
|
||||||
|
[url "git+ssh://git@gitlab.alpinelinux.org/"]
|
||||||
|
insteadof = alpine:
|
||||||
|
pushInsteadOf = alpine:
|
||||||
[url "git@gitlab.com:"]
|
[url "git@gitlab.com:"]
|
||||||
insteadOf = https://gitlab.com/
|
insteadOf = https://gitlab.com/
|
||||||
pushInsteadOf = https://gitlab.com/
|
pushInsteadOf = https://gitlab.com/
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
# import package defaults first
|
# import package defaults first
|
||||||
include /usr/share/nano/*
|
include /usr/share/nano/*.nanorc
|
||||||
|
include /usr/share/nano/extra/*.nanorc
|
||||||
|
|
||||||
# then import ours
|
# then import ours, but trust our distro packages
|
||||||
include /home/gildedguy/.dotfiles/nanorc/highlighting/*.nanorc
|
#include ~/.dotfiles/nanorc/highlighting/*.nanorc
|
||||||
|
|
||||||
|
# enable multibuffer stuff
|
||||||
|
set multibuffer
|
||||||
|
|
Loading…
Reference in New Issue