mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-12-22 01:03:35 +01:00
Added SXC thingies to dotfiles, allowing for *.local files for bash and profile. Still Needs these files for tmux,vim,git,...
This commit is contained in:
parent
d47333930f
commit
7a82ebe7f1
14 changed files with 41 additions and 2660 deletions
|
@ -40,3 +40,6 @@ if [ -r "$DOTBASH/$HOSTNAME.bashrc" ]; then
|
||||||
source "$DOTBASH/$HOSTNAME.bashrc"
|
source "$DOTBASH/$HOSTNAME.bashrc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -r "$HOME/.bashrc.local" ]; then
|
||||||
|
source "$HOME/.bashrc.local"
|
||||||
|
fi
|
||||||
|
|
|
@ -29,11 +29,3 @@ alias pc='python -ic "from __future__ import division; from math import *"'
|
||||||
# Moving around
|
# Moving around
|
||||||
alias ~='cd ~'
|
alias ~='cd ~'
|
||||||
alias ..='cd ..'
|
alias ..='cd ..'
|
||||||
|
|
||||||
|
|
||||||
#Aliases for RU
|
|
||||||
alias lilo='ssh lilo'
|
|
||||||
alias MC='cd ~/MC; echo "Welcome to Marie Curie"'
|
|
||||||
alias MCMail='~/MC/www/mailer/mariemailer.psql.pl'
|
|
||||||
alias DocMail='~/MC/www/mailer/docentmailer.pl'
|
|
||||||
|
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
[ -z "$DOTFILES" ] && source "$HOME/.profile"
|
[ -z "$DOTFILES" ] && source "$HOME/.profile"
|
||||||
|
|
||||||
|
[ -r "$HOME/.bash_profile.local" ] && source "$HOME/.bash_profile.local"
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
#This file should be cronned from: wttr.in/<place>
|
|
||||||
#For example:
|
|
||||||
#27 */2 * * * curl -s wttr.in/Voorthuizen | sed -n 3,7p > .wttr 2>&1
|
|
||||||
WTTR=~/.wttr
|
|
||||||
if [ -f $WTTR ]; then
|
|
||||||
cat $WTTR
|
|
||||||
alias wttr='cat $WTTR'
|
|
||||||
fi
|
|
5
bash/scriptlets/cert_status
Normal file
5
bash/scriptlets/cert_status
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Report on last renewing of ssl certificates
|
||||||
|
CERTSTAT=~/cert_status
|
||||||
|
if [ -r $CERTSTAT ]; then
|
||||||
|
echo "Last certs: $(cat $CERTSTAT)";
|
||||||
|
fi;
|
14
bash/scriptlets/wttr
Normal file
14
bash/scriptlets/wttr
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
WTTR=~/.wttr
|
||||||
|
if [ -f $WTTR ]; then
|
||||||
|
cat $WTTR
|
||||||
|
alias wttr='cat $WTTR'
|
||||||
|
else
|
||||||
|
read -p "{$Yel}Do you want your weather cronned? " -n 1 -r
|
||||||
|
echo
|
||||||
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||||
|
then
|
||||||
|
cronjob="curl -s wttr.in/Voorthuizen | sec -n 3,7p > $WTTR 2>&1 "
|
||||||
|
croncmd="27 */2 * * * $cronjob"
|
||||||
|
( crontab -l | grep -v -F "$croncmd" ; echo "$cronjob" ) | crontab -
|
||||||
|
fi
|
||||||
|
fi
|
3
bash/scriptlets/zz-fatserf-greet
Normal file
3
bash/scriptlets/zz-fatserf-greet
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
echo "Welcome onboard:"
|
||||||
|
figlet -t sXc : fatSerf
|
||||||
|
fortune | cowsay -n
|
|
@ -1,6 +1,10 @@
|
||||||
[diff "pdf"]
|
# This is Git's per-user configuration file.
|
||||||
textconv = pdf2txt
|
|
||||||
[user]
|
[user]
|
||||||
name = Eric Teunis de Boone
|
name = Eric Teunis de Boone
|
||||||
|
email = ericteunis@gmail.com
|
||||||
|
[gui]
|
||||||
|
editor = geany
|
||||||
[push]
|
[push]
|
||||||
default = matching
|
default = matching
|
||||||
|
[diff "pdf"]
|
||||||
|
textconv = pdf2txt
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
~/.gitconfig: git/gitconfig
|
~/.gitconfig: git/gitconfig
|
||||||
~/.tmux.conf: tmux/tmux.conf
|
~/.tmux.conf: tmux/tmux.conf
|
||||||
~/.vimrc: vim/vimrc
|
~/.vimrc: vim/vimrc
|
||||||
|
~/.ncmpcpp/config: ncmpcpp/config
|
||||||
|
|
||||||
#- shell:
|
#- shell:
|
||||||
# - git submodules update # after linking ~/.gitconfig
|
# - git submodules update # after linking ~/.gitconfig
|
||||||
|
|
1
ncmpcpp/config
Normal file
1
ncmpcpp/config
Normal file
|
@ -0,0 +1 @@
|
||||||
|
user_interface = "alternative"
|
|
@ -4,6 +4,8 @@ DOTFILES="$HOME/.dotfiles"
|
||||||
# Source main profile
|
# Source main profile
|
||||||
[ -r "$DOTFILES/profiles/main.sh" ] && source "$DOTFILES/profiles/main.sh"
|
[ -r "$DOTFILES/profiles/main.sh" ] && source "$DOTFILES/profiles/main.sh"
|
||||||
|
|
||||||
|
|
||||||
# Source machine specific profile
|
# Source machine specific profile
|
||||||
[ -r "$DOTFILES/profiles/$HOSTNAME.profile"] && source "$DOTFILES/profiles/$HOSTNAME.profile"
|
[ -r "$DOTFILES/profiles/$HOSTNAME.profile" ] && source "$DOTFILES/profiles/$HOSTNAME.profile"
|
||||||
|
|
||||||
|
# Always source a local profile
|
||||||
|
[ -r "$HOME/.profile.local" ] && source "$HOME/.profile.local"
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# use ^b as prefix
|
# use ^b as prefix
|
||||||
set -g prefix C-b
|
set -g prefix C-b
|
||||||
|
|
||||||
# bind-key C-a last-window
|
# vim shortcuts
|
||||||
|
setw -g mode-keys vi
|
||||||
|
|
||||||
# force a reload of the config file
|
# force a reload of the config file
|
||||||
unbind r
|
unbind r
|
||||||
|
|
2639
vim/viminfo
2639
vim/viminfo
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue