Compare commits

..
3 Commits
Author SHA1 Message Date
Rob eff28a6aa9 start tmux with .bashrc 2024-11-19 10:37:22 +00:00
Rob c49dc83d7b add .bashrc 2024-11-19 06:41:25 +00:00
Rob 5f0b583e51 ignore ACME domainhash file 2024-11-19 06:41:03 +00:00
3 changed files with 31 additions and 1 deletions

No files matched your search

+1
View File
@@ -1 +1,2 @@
result result
domainhash.txt
+29
View File
@@ -0,0 +1,29 @@
## bash prompt styling
PS1="\[\e[32m\][\u@\h\]]:\[\e[34m\]\w\[\e[0m\]\$ "
echo "## Mache ssh key verfügbar##"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_bfds_gitea
echo "=============="
echo "## Wechsel zu aktueller NixOS config Verzeichnis ##"
echo "## run: git status"
cd /etc/nixos/
git status
echo "=============="
### !! if not running inside tmux, ask user to start tmux or create session !!
if [ -z "$TMUX" ]; then
alias tmuxxx='tmux -f /etc/nixos/dot-files/.tmux.conf new -d -s mainsession'
alias tmuxx='tmux -f /etc/nixos/dot-files/.tmux.conf attach -t mainsession'
if ! tmux ls &> /dev/null; then
tmuxxx
fi
read -p "tmux starten (tmuxx / tmuxxx)? (j/n): " answer
if [ "$answer" = "j" ] || [ "$answer" = "y" ]; then
tmuxx
fi
fi
### !! if not running inside tmux !!
+1 -1
View File
@@ -1,5 +1,5 @@
set -g default-shell /run/current-system/sw/bin/bash set -g default-shell /run/current-system/sw/bin/bash
set -g default-command "bash --norc" set -g default-command bash
set-option -g default-shell /run/current-system/sw/bin/bash set-option -g default-shell /run/current-system/sw/bin/bash
set-window-option -g automatic-rename on set-window-option -g automatic-rename on