fixed user creation, some rc files, use hcloud host vars (ipv6)

This commit is contained in:
2024-11-26 18:00:21 +01:00
parent 158048f51d
commit c49dff9ad4
10 changed files with 255 additions and 44 deletions

View File

@@ -102,22 +102,24 @@ alias uc="tr '[a-z]' '[A-Z]'"
alias table="column -t"
alias gethttp="fetch -n --no-verify-peer --no-verify-hostname"
# use vim
alias vi=vim
EDITOR=vim
PROMPT_COMMAND="PS1='\[\033]0;\u@$host:\w\007\]
# simple command prompt
PS1='
--- [\w] ---
\u@$host: $CURSOR '"
\u@\h % '
# customize path
for dir in $HOME/bin $HOME/.cabal/bin $HOME/perl5/perlbrew/bin /usr/local/bin /usr/local/sbin /usr/sbin; do
for dir in $HOME/bin /usr/local/bin /usr/local/sbin /usr/sbin; do
if test -d $dir; then
PATH=$PATH:$dir
fi
done
export PATH
# global env vars
EDITOR=vim
# history options
HISTFILESIZE=1000000
HISTSIZE=1000000
@@ -125,7 +127,7 @@ HISTCONTROL=ignoreboth
HISTIGNORE='ls:bg:fg:history'
HISTTIMEFORMAT='%F %T '
export EDITOR PROMPT_COMMAND PATH LESSCHARSET GREP_OPTIONS HISTFILE HISTFILESIZE HISTSIZE HISTCONTROL HISTIGNORE HISTTIMEFORMAT INPUTRC
export EDITOR PS1 PATH LESSCHARSET GREP_OPTIONS HISTFILE HISTFILESIZE HISTSIZE HISTCONTROL HISTIGNORE HISTTIMEFORMAT INPUTRC
# better override
umask 0027
@@ -141,26 +143,10 @@ fi
# bash options
shopt -s cdable_vars checkhash checkwinsize histappend cmdhist
# perl brew installed?
if test -d ~/perl5; then
source ~/perl5/perlbrew/etc/bashrc
fi
# python?
if test -e ~/.pythonrc; then
export PYTHONSTARTUP=~/.pythonrc
fi
# any local specific config?
if test -e ~/.bashrc-local; then
source ~/.bashrc-local
fi
# rust?
if test -e /usr/local/rust/cargo/env; then
source /usr/local/rust/cargo/env
export RUSTUP_HOME=/usr/local/rust/rustup
export CARGO_HOME=/usr/local/rust/cargo
fi

View File

@@ -7,9 +7,20 @@
alias h history 25
alias j jobs -l
alias l ls -alF
alias la ls -aF
alias lf ls -FA
alias ll ls -lAF
alias lt ls -ltr
alias les less
alias md mkdir -p
alias .. cd ..
alias ... cd ../..
alias .... cd ../../..
alias ..... cd ../../../..
alias grip egrep -i
alias which type -p
# These are normally set through /etc/login.conf. You may override them here
# if wanted.