chore: update fedora bashrc, gitconfig and ssh config
parent
37e2903b9c
commit
3a057ab935
21
.gitconfig
21
.gitconfig
|
@ -1,18 +1,25 @@
|
||||||
[user]
|
[user]
|
||||||
name = Matt Clark
|
name = Rowan Clark
|
||||||
email = 4matt2clark7@gmail.com
|
email = crimsontome427@protonmail.com
|
||||||
signingKey = 70352871F95F9905
|
signingkey = F620D51904044094
|
||||||
[author]
|
[author]
|
||||||
name = CrimsonTome
|
name = CrimsonTome
|
||||||
email = crimsontome427@protonmail.com
|
email = crimsontome427@protonmail.com
|
||||||
[url "git@github.com:"]
|
[url "git@github.com:"]
|
||||||
insteadOf = https://github.com/
|
insteadOf = https://github.com/
|
||||||
[url "git@github.com:"]
|
|
||||||
insteadOf = https://github.com/
|
|
||||||
[url "ssh://git@github.com:"]
|
[url "ssh://git@github.com:"]
|
||||||
insteadOf = https://github.com/
|
insteadOf = https://github.com/
|
||||||
|
|
||||||
[pull]
|
[url "git@git.crimsontome.com:"]
|
||||||
rebase = true
|
insteadOf = https://git.crimsontome.com/
|
||||||
|
[url "ssh://git@git.crimsontome.com:"]
|
||||||
|
insteadOf = https://git.crimsontome.com/
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
|
[pull]
|
||||||
|
rebase = true
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
|
|
||||||
|
[push]
|
||||||
|
autoSetupRemote = true
|
||||||
|
|
|
@ -0,0 +1,58 @@
|
||||||
|
VisualHostKey yes
|
||||||
|
ServerAliveInterval 120
|
||||||
|
|
||||||
|
Host crimsontome.com
|
||||||
|
Port 22
|
||||||
|
User ctome
|
||||||
|
IdentityFile ~/.ssh/id_ed25519
|
||||||
|
PreferredAuthentications publickey
|
||||||
|
|
||||||
|
Host git.starbeamrainbowlabs.com
|
||||||
|
Port 22
|
||||||
|
IdentityFile ~/.ssh/id_ed25519
|
||||||
|
PreferredAuthentications publickey
|
||||||
|
|
||||||
|
Host git.crimsontome.com
|
||||||
|
Port 2202
|
||||||
|
IdentityFile ~/.ssh/id_ed25519
|
||||||
|
PreferredAuthentications publickey
|
||||||
|
Host fs-web02
|
||||||
|
Hostname freeside.co.uk
|
||||||
|
User matthewclark
|
||||||
|
PreferredAuthentications publickey,password,keyboard-interactive
|
||||||
|
Host fs-storage
|
||||||
|
Hostname 150.237.94.147
|
||||||
|
User matthewclark
|
||||||
|
PreferredAuthentications publickey,password,keyboard-interactive
|
||||||
|
Host fs-docker
|
||||||
|
Hostname 150.237.94.41
|
||||||
|
User matthewclark
|
||||||
|
PreferredAuthentications publickey,password,keyboard-interactive
|
||||||
|
Host fs-docker2
|
||||||
|
Hostname 150.237.94.53
|
||||||
|
User matthewclark
|
||||||
|
PreferredAuthentications publickey,password,keyboard-interactive
|
||||||
|
Host fs-ipa
|
||||||
|
Hostname 150.237.94.146
|
||||||
|
User matthewclark
|
||||||
|
PreferredAuthentications publickey,password,keyboard-interactive
|
||||||
|
|
||||||
|
|
||||||
|
Host fs-desktop-01
|
||||||
|
Hostname 150.237.94.40
|
||||||
|
User matthewclark
|
||||||
|
PreferredAuthentications publickey,password,keyboard-interactive
|
||||||
|
Host fs-desktop-02
|
||||||
|
Hostname 150.237.94.3
|
||||||
|
User matthewclark
|
||||||
|
PreferredAuthentications publickey,password,keyboard-interactive
|
||||||
|
Host fs-desktop-03
|
||||||
|
Hostname 150.237.94.30
|
||||||
|
User matthewclark
|
||||||
|
PreferredAuthentications publickey,password,keyboard-interactive
|
||||||
|
Host fs-desktop-04
|
||||||
|
Hostname 150.237.94.39
|
||||||
|
User matthewclark
|
||||||
|
|
||||||
|
PreferredAuthentications publickey,password,keyboard-interactive
|
||||||
|
|
|
@ -14,6 +14,8 @@ export PATH
|
||||||
|
|
||||||
export HISTSIZE=-1
|
export HISTSIZE=-1
|
||||||
export HISTFILESIZE=-1
|
export HISTFILESIZE=-1
|
||||||
|
shopt -s histappend
|
||||||
|
|
||||||
|
|
||||||
# User specific aliases and functions
|
# User specific aliases and functions
|
||||||
if [ -d ~/.bashrc.d ]; then
|
if [ -d ~/.bashrc.d ]; then
|
||||||
|
@ -28,9 +30,11 @@ unset rc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
PS1=$"\w\n`whoami`💻`hostname`"$(tput blink)"-> "$(tput sgr0)
|
# PS1=$"\w`whoami`💻`hostname`"$(tput blink)"-> "$(tput sgr0)
|
||||||
|
|
||||||
|
|
||||||
alias ls='ls -Alh --color=auto'
|
alias ls='ls -Alh --color=auto'
|
||||||
|
alias ls='exa -la'
|
||||||
alias di='sudo dnf install'
|
alias di='sudo dnf install'
|
||||||
alias dud='sudo dnf update -y'
|
alias dud='sudo dnf update -y'
|
||||||
alias ds='dnf search'
|
alias ds='dnf search'
|
||||||
|
@ -43,10 +47,10 @@ alias gpl='git pull' #pull updates from a git repo
|
||||||
alias gph='git push' #push local updates to a git repo
|
alias gph='git push' #push local updates to a git repo
|
||||||
alias gl='git log' #check git log
|
alias gl='git log' #check git log
|
||||||
alias ga='git add -A' #add all changes to commit
|
alias ga='git add -A' #add all changes to commit
|
||||||
alias gcm='git commit -S -am' #adds all changes, commits to branch and signs the commit with gpg
|
# alias gcm='git commit -S -am' #adds all changes, commits to branch and signs the commit with gpg
|
||||||
|
alias gcm='commit'
|
||||||
alias gs='git status' #check git status
|
alias gs='git status' #check git status
|
||||||
alias ga='git add -A'
|
alias gr='git remote -v'
|
||||||
|
|
||||||
alias ghr='gh repo'
|
alias ghr='gh repo'
|
||||||
alias ghrc='gh repo create'
|
alias ghrc='gh repo create'
|
||||||
alias ghs='gh status'
|
alias ghs='gh status'
|
||||||
|
@ -95,8 +99,7 @@ alias cpdir='cp -vr' #copy directory and contents
|
||||||
alias mv='mv -vi' #move
|
alias mv='mv -vi' #move
|
||||||
alias upstats='echo "Up since:" && uptime -s && uptime -p' #displays uptime stats
|
alias upstats='echo "Up since:" && uptime -s && uptime -p' #displays uptime stats
|
||||||
alias sshserver='mosh root@192.168.100.2' #ssh's into my server
|
alias sshserver='mosh root@192.168.100.2' #ssh's into my server
|
||||||
alias sudo='sudo -p "$(printf "\033[1;31mPassword: \033[0;0m" )"'
|
alias pullall='for i in */.git; do cd $(dirname $i); git pull -q; cd ..; done; echo done'
|
||||||
alias pullall='for i in */.git; do cd $(dirname $i); git pull; cd ..; done; echo done'
|
|
||||||
alias aria='aria2c --console-log-level=error'
|
alias aria='aria2c --console-log-level=error'
|
||||||
alias gzipc='gzip --keep -9' #max compression keeping the file
|
alias gzipc='gzip --keep -9' #max compression keeping the file
|
||||||
alias gitamendcomment='git commit --amend'
|
alias gitamendcomment='git commit --amend'
|
||||||
|
@ -227,22 +230,45 @@ gitcloneorg() {
|
||||||
GHORG={$name}; curl "https://api.github.com/orgs/$GHORG/repos?per_page=1000" | grep -o 'git@[^"]*' | xargs -L1 git clone
|
GHORG={$name}; curl "https://api.github.com/orgs/$GHORG/repos?per_page=1000" | grep -o 'git@[^"]*' | xargs -L1 git clone
|
||||||
|
|
||||||
}
|
}
|
||||||
##-----------------------------------------------------
|
ctop(){
|
||||||
## synth-shell-greeter.sh
|
|
||||||
if [ -f /home/ctome/.config/synth-shell/synth-shell-greeter.sh ] && [ -n "$( echo $- | grep i )" ]; then
|
docker run --rm -ti \
|
||||||
source /home/ctome/.config/synth-shell/synth-shell-greeter.sh
|
--name=ctop \
|
||||||
|
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
|
||||||
|
quay.io/vektorlab/ctop:latest
|
||||||
|
}
|
||||||
|
listen-to-yt() { if [[ -z "$1" ]]; then echo "Enter a search string!"; else mpv "$(youtube-dl --default-search 'ytsearch1:' \"$1\" --get-url | tail -1)"; fi }
|
||||||
|
|
||||||
|
eval "$(starship init bash)"
|
||||||
|
|
||||||
|
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
||||||
|
|
||||||
|
export GPG_TTY=/dev/pts/2
|
||||||
|
|
||||||
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
|
function gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}
|
||||||
|
source /home/ctome/.dvm/dvm.sh
|
||||||
|
export DOTNET_ROOT=$HOME/.dotnet
|
||||||
|
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
|
||||||
|
|
||||||
|
### Bashhub.com Installation.
|
||||||
|
### This Should be at the EOF. https://bashhub.com/docs
|
||||||
|
if [ -f ~/.bashhub/bashhub.sh ]; then
|
||||||
|
source ~/.bashhub/bashhub.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##-----------------------------------------------------
|
|
||||||
## synth-shell-prompt.sh
|
|
||||||
if [ -f /home/ctome/.config/synth-shell/synth-shell-prompt.sh ] && [ -n "$( echo $- | grep i )" ]; then
|
|
||||||
source /home/ctome/.config/synth-shell/synth-shell-prompt.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
##-----------------------------------------------------
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
## better-history
|
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
if [ -f /home/ctome/.config/synth-shell/better-history.sh ] && [ -n "$( echo $- | grep i )" ]; then
|
eval "$(pyenv init -)"
|
||||||
source /home/ctome/.config/synth-shell/better-history.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
eval "$(thefuck --alias)"
|
export EDITOR="vim"
|
||||||
|
|
||||||
|
|
||||||
|
# cohost bot things
|
||||||
|
export COOKIE="use the cohost cookie"
|
||||||
|
export LENGTH="8"
|
||||||
|
export LENGTH="9"
|
||||||
|
|
Loading…
Reference in New Issue