Compare commits

..

3 commits

Author SHA1 Message Date
0658a6ae9e updated bashrc 2023-07-02 14:47:23 -04:00
6cad44fdd0 added rust-motd configuration files 2023-07-02 14:47:09 -04:00
eac2066d3e updated tmux settings to make truecolor work 2023-07-02 14:46:52 -04:00
4 changed files with 62 additions and 9 deletions

26
bashrc
View file

@ -8,11 +8,17 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias exa='exa --tree'
alias flush='cd; clear; motd'
alias fortune='fortune-rs'
alias hx='helix'
alias imgcat="wezterm imgcat --height 50%"
alias imgcat='wezterm imgcat --height 50%'
alias ls='ls --color=auto'
alias lsd="lsd -l"
alias motd="rust-motd"
alias lsd='lsd -l'
alias motd='rust-motd'
alias onefetch='onefetch --no-title --no-art --no-color-palette'
alias rmux='remux'
alias sl='sl -e'
export EDITOR=helix
@ -24,8 +30,20 @@ eval "$(thefuck --alias)"
source /usr/lib/goto/goto.sh
source /usr/lib/codecat/codecat.sh
export PS1="$(starship prompt)"
if [[ $TERM == 'linux' ]]; then
if [[ $SHLVL -le 1 ]]; then
echo -e "\nWelcome back, $(whoami)!\n"
fi
return
fi
#export PS1="$(starship prompt)"
if [[ $SHLVL -le 3 ]]; then
motd
fi
if shopt -q login_shell; then
bash
exit
fi

7
motd/banner.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/bash
echo -e "\033[1;31m$(hostname | figlet -f slant)\033[0m"
echo "$(whoami)@$(hostname)"
echo ''
fortune-rs

23
motd/config.toml Normal file
View file

@ -0,0 +1,23 @@
[global]
progress_full_character = "="
progress_empty_character = "="
progress_prefix = "["
progress_suffix = "]"
time_format = "%Y-%m-%d %H:%M"
[banner]
color = "light_white"
#color = "red"
# command = 'figlet -f slant "$(whoami)@$(hostname)"'
command = "~/.config/rust-motd/banner.sh"
[filesystems]
root = "/"
#secondary = "/mount/f"
[uptime]
prefix = "Uptime:"
#[weather]
#url = "https://wttr.in/Cary,North+Carolina?0"

View file

@ -12,16 +12,18 @@ set -g mouse on
# / /| / __/ /_/ / /_/ / / / / / /_/ (__ )
#/_/ |_\___/\__, /_.___/_/_/ /_/\__,_/____/
# /____/
# detach
unbind d
bind M-Escape detach-client
# Splits
# splits
unbind '"'
unbind %
bind h split-window -h
bind v split-window -v
# Navigation
# navigation
unbind w
unbind s
unbind a
@ -42,17 +44,20 @@ bind e next-window
# /_/ |_/ .___/ .___/\___/\__,_/_/ \__,_/_/ /_/\___/\___/
# /_/ /_/
# Modes
# fix truecolor
set-option -g terminal-overrides ",xterm*:Tc"
# modes
setw -g clock-mode-colour colour7
setw -g clock-mode-style 12
setw -g mode-style 'fg=colour15 bold bg=colour235'
# Panes
# panes
set -g pane-border-style 'fg=colour251'
set -g pane-active-border-style 'fg=colour69'
# Status Bar
# status bar
set -g status-position bottom
set -g status-justify left
set -g status-style 'fg=colour15'