Compare commits
No commits in common. "7567ffcd7611c0cfa4750c0b03c6d40ccfe97882" and "b99593c340c20b4b22cdf48953bf69cf94695cc1" have entirely different histories.
7567ffcd76
...
b99593c340
5 changed files with 17 additions and 20 deletions
|
@ -1,15 +1,15 @@
|
|||
alias dcpull='docker compose pull && docker compose down && docker compose up -d'
|
||||
alias dcpull='docker-compose pull && docker-compose down && docker-compose up -d'
|
||||
alias dprune='docker image prune -f'
|
||||
alias dcrestart='docker compose down && docker compose up -d'
|
||||
alias dcrestart='docker-compose down && docker-compose up -d'
|
||||
|
||||
alias tup='sudo tailscale up --login-server https://headscale.nelim.org'
|
||||
|
||||
alias ncht='docker exec -it --user www-data app-server php occ maintenance:update:htaccess'
|
||||
|
||||
alias pve='ssh root@10.0.0.121'
|
||||
alias mc='ssh mc@10.0.0.124'
|
||||
alias dock='ssh -p 6768 dock@10.0.0.122'
|
||||
alias serv='ssh -p 6768 dock@10.0.0.121'
|
||||
alias oksys='ssh matt@10.0.0.213'
|
||||
alias router='ssh root@10.0.0.2'
|
||||
|
||||
alias ls='ls -lah --color=auto'
|
||||
|
||||
alias autorm='yay -Rc $(yay -Qdt | cut -d " " -f1)'
|
||||
|
|
9
.bashrc
9
.bashrc
|
@ -25,12 +25,14 @@ if [ -z "${arch_chroot:-}" ] && [ -r /etc/arch_chroot ]; then
|
|||
fi
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
export TERM=xterm-color
|
||||
case "$TERM" in
|
||||
xterm-color|*-256color) color_prompt=yes;;
|
||||
esac
|
||||
|
||||
# uncomment for a colored prompt, if the terminal has the capability; turned
|
||||
# off by default to not distract the user: the focus in a terminal window
|
||||
# should be on the output of commands, not on the prompt
|
||||
force_color_prompt=yes
|
||||
#force_color_prompt=yes
|
||||
|
||||
if [ -n "$force_color_prompt" ]; then
|
||||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||
|
@ -112,3 +114,6 @@ if [ -f ~/.bash-fzfrc ] ; then
|
|||
. ~/.bash-fzfrc
|
||||
fi
|
||||
|
||||
if [ -f ~/git/dotfiles ] ; then
|
||||
(cd ~/git/dotfiles && git pull)
|
||||
fi
|
||||
|
|
2
.profile
2
.profile
|
@ -1,2 +0,0 @@
|
|||
. ~/.bashrc
|
||||
bash ~/git/dotfiles/pull.sh
|
5
pull.sh
5
pull.sh
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
if [ -f ~/git/dotfiles ] ; then
|
||||
git config pull.rebase false
|
||||
(cd ~/git/dotfiles && git pull)
|
||||
fi
|
|
@ -1,17 +1,16 @@
|
|||
rm ../../.bash* ../../.profile /root/.bash* /etc/nanorc
|
||||
rm ../../.bash* /root/.bash*
|
||||
|
||||
ln ./.bash* /root
|
||||
ln ./.bash* ../../
|
||||
ln ./.profile ../../
|
||||
|
||||
rm /root/.bashrc /root/.profile
|
||||
rm /root/.bashrc
|
||||
cp .bashrc /root
|
||||
cp .profile /root
|
||||
|
||||
export TERM=xterm-color
|
||||
|
||||
cat << EOF >> /root/.bashrc
|
||||
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
EOF
|
||||
|
||||
. /root/.bashrc
|
||||
ln ./nanorc /etc/nanorc
|
||||
echo "Install fzf pls"
|
Loading…
Reference in a new issue