Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6aec149865 | |||
| 21030a8604 | |||
| 3c96f8af47 | |||
| d3e2a923ad | |||
| fc1487fc8b | |||
| 818e1a97d8 | |||
| 959e419e5c | |||
| d86ef98487 | |||
| 68d222153b | |||
| 901863c9ff | |||
| 4b36f51801 |
1115
.ansible.cfg
Normal file
1115
.ansible.cfg
Normal file
File diff suppressed because it is too large
Load Diff
3
.bashrc
3
.bashrc
@ -56,6 +56,9 @@ function parse_git_branch {
|
|||||||
#export PS1='\u@\h \[\033[1;33m\]\w \[\033[0m\]$(parse_git_branch)$ '
|
#export PS1='\u@\h \[\033[1;33m\]\w \[\033[0m\]$(parse_git_branch)$ '
|
||||||
export PS1='\[\033[1;31m\]\u@\h \[\033[1;34m\]\w \[\033[1;32m\]$(parse_git_branch)\[\033[0m\]$ '
|
export PS1='\[\033[1;31m\]\u@\h \[\033[1;34m\]\w \[\033[1;32m\]$(parse_git_branch)\[\033[0m\]$ '
|
||||||
|
|
||||||
|
# bind commands
|
||||||
|
bind '"\C-k"':kill-line # clear to end of line
|
||||||
|
|
||||||
# Local customized path and environment settings, etc.
|
# Local customized path and environment settings, etc.
|
||||||
if [ -f ~/.bashrc.local ]; then
|
if [ -f ~/.bashrc.local ]; then
|
||||||
. ~/.bashrc.local
|
. ~/.bashrc.local
|
||||||
|
|||||||
@ -261,7 +261,7 @@ mux_conf_theme_right_separator_sub="\uE0B3" # PowerlineSymbols.otf font, see
|
|||||||
# - #{username}
|
# - #{username}
|
||||||
# - #{username_ssh}
|
# - #{username_ssh}
|
||||||
tmux_conf_theme_status_left=" ❐ #S | ↑#{?uptime_y, #{uptime_y}y,}#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} "
|
tmux_conf_theme_status_left=" ❐ #S | ↑#{?uptime_y, #{uptime_y}y,}#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} "
|
||||||
tmux_conf_theme_status_right=" #{prefix}#{mouse}#{pairing}#{synchronized} #(curl wttr.in?format=3) #{?battery_status,#{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} , %R , %d %b | #{username}#{root} | #{hostname} "
|
tmux_conf_theme_status_right=" #{prefix}#{mouse}#{pairing}#{synchronized} #(curl #{?battery_status,#{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} , %R , %d %b | #{username}#{root} | #{hostname} "
|
||||||
|
|
||||||
# status left style
|
# status left style
|
||||||
tmux_conf_theme_status_left_fg="$tmux_conf_theme_colour_6,$tmux_conf_theme_colour_7,$tmux_conf_theme_colour_8"
|
tmux_conf_theme_status_left_fg="$tmux_conf_theme_colour_6,$tmux_conf_theme_colour_7,$tmux_conf_theme_colour_8"
|
||||||
|
|||||||
@ -6,9 +6,9 @@
|
|||||||
|
|
||||||
########## Variables
|
########## Variables
|
||||||
|
|
||||||
dir=$(basename $0) # dotfiles directory
|
dir=~/.dotfiles # dotfiles directory
|
||||||
olddir=$(basename $0)_old # old dotfiles backup directory
|
olddir=~/.dotfiles_old # old dotfiles backup directory
|
||||||
files=".tmux.conf .tmux.conf.local .vimrc .vim .tcshrc .bashrc .inputrc .git_completion" # list of files/folders to symlink in homedir
|
files=".tmux.conf .tmux.conf.local .vimrc .vim .tcshrc .bashrc .inputrc .git_completion .ansible.cfg" # list of files/folders to symlink in homedir
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
|
||||||
@ -25,18 +25,18 @@ echo "...done"
|
|||||||
# move any existing dotfiles in homedir to dotfiles_old directory, then create symlinks
|
# move any existing dotfiles in homedir to dotfiles_old directory, then create symlinks
|
||||||
for file in $files; do
|
for file in $files; do
|
||||||
echo "Moving any existing dotfiles from ~ to $olddir"
|
echo "Moving any existing dotfiles from ~ to $olddir"
|
||||||
mv ~/$file ~/dotfiles_old/ > /dev/null 2>&1
|
mv ~/$file ~/.dotfiles_old/ > /dev/null 2>&1
|
||||||
echo "Creating symlink to $file in home directory."
|
echo "Creating symlink to $file in home directory."
|
||||||
ln -s $dir/$file ~/$file > /dev/null 2>&1
|
ln -s $dir/$file ~/$file > /dev/null 2>&1
|
||||||
done
|
done
|
||||||
|
|
||||||
# link Starship config to ~/.config/ if exists
|
# link Starship config to ~/.config/ if exists
|
||||||
if [ -f ~/.config ]; then
|
if [ -d ~/.config ]; then
|
||||||
ln -s ./starship.toml ~/.config/starship.toml
|
ln -s $dir/starship.toml ~/.config/starship.toml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# copy example bashrc.local if one doesn't exist yet
|
# copy example bashrc.local if one doesn't exist yet
|
||||||
if [ ! -f ~/.bashrc.local ]; then
|
if [ ! -f ~/.bashrc.local ]; then
|
||||||
ln -s .bashrc.local ~/.bashrc.local
|
cp $file/.bashrc.local ~/.bashrc.local
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,7 @@ show_always = true
|
|||||||
[hostname]
|
[hostname]
|
||||||
ssh_only = false
|
ssh_only = false
|
||||||
format = "[$ssh_symbol](bold blue) on [$hostname](bold yellow) "
|
format = "[$ssh_symbol](bold blue) on [$hostname](bold yellow) "
|
||||||
trim_at = ".companyname.com"
|
trim_at = ".strog.org"
|
||||||
disabled = false
|
disabled = false
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
|
|||||||
Reference in New Issue
Block a user