Compare commits
3 commits
845f7ef5e8
...
0658a6ae9e
Author | SHA1 | Date | |
---|---|---|---|
0658a6ae9e | |||
6cad44fdd0 | |||
eac2066d3e |
4 changed files with 62 additions and 9 deletions
26
bashrc
26
bashrc
|
@ -8,11 +8,17 @@
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
alias exa='exa --tree'
|
||||||
|
alias flush='cd; clear; motd'
|
||||||
|
alias fortune='fortune-rs'
|
||||||
alias hx='helix'
|
alias hx='helix'
|
||||||
alias imgcat="wezterm imgcat --height 50%"
|
alias imgcat='wezterm imgcat --height 50%'
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias lsd="lsd -l"
|
alias lsd='lsd -l'
|
||||||
alias motd="rust-motd"
|
alias motd='rust-motd'
|
||||||
|
alias onefetch='onefetch --no-title --no-art --no-color-palette'
|
||||||
|
alias rmux='remux'
|
||||||
|
alias sl='sl -e'
|
||||||
|
|
||||||
export EDITOR=helix
|
export EDITOR=helix
|
||||||
|
|
||||||
|
@ -24,8 +30,20 @@ eval "$(thefuck --alias)"
|
||||||
source /usr/lib/goto/goto.sh
|
source /usr/lib/goto/goto.sh
|
||||||
source /usr/lib/codecat/codecat.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
|
if [[ $SHLVL -le 3 ]]; then
|
||||||
motd
|
motd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if shopt -q login_shell; then
|
||||||
|
bash
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
7
motd/banner.sh
Executable file
7
motd/banner.sh
Executable 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
23
motd/config.toml
Normal 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"
|
||||||
|
|
15
tmux.conf
15
tmux.conf
|
@ -12,16 +12,18 @@ set -g mouse on
|
||||||
# / /| / __/ /_/ / /_/ / / / / / /_/ (__ )
|
# / /| / __/ /_/ / /_/ / / / / / /_/ (__ )
|
||||||
#/_/ |_\___/\__, /_.___/_/_/ /_/\__,_/____/
|
#/_/ |_\___/\__, /_.___/_/_/ /_/\__,_/____/
|
||||||
# /____/
|
# /____/
|
||||||
|
|
||||||
|
# detach
|
||||||
unbind d
|
unbind d
|
||||||
bind M-Escape detach-client
|
bind M-Escape detach-client
|
||||||
|
|
||||||
# Splits
|
# splits
|
||||||
unbind '"'
|
unbind '"'
|
||||||
unbind %
|
unbind %
|
||||||
bind h split-window -h
|
bind h split-window -h
|
||||||
bind v split-window -v
|
bind v split-window -v
|
||||||
|
|
||||||
# Navigation
|
# navigation
|
||||||
unbind w
|
unbind w
|
||||||
unbind s
|
unbind s
|
||||||
unbind a
|
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-colour colour7
|
||||||
setw -g clock-mode-style 12
|
setw -g clock-mode-style 12
|
||||||
|
|
||||||
setw -g mode-style 'fg=colour15 bold bg=colour235'
|
setw -g mode-style 'fg=colour15 bold bg=colour235'
|
||||||
|
|
||||||
# Panes
|
# panes
|
||||||
set -g pane-border-style 'fg=colour251'
|
set -g pane-border-style 'fg=colour251'
|
||||||
set -g pane-active-border-style 'fg=colour69'
|
set -g pane-active-border-style 'fg=colour69'
|
||||||
|
|
||||||
# Status Bar
|
# status bar
|
||||||
set -g status-position bottom
|
set -g status-position bottom
|
||||||
set -g status-justify left
|
set -g status-justify left
|
||||||
set -g status-style 'fg=colour15'
|
set -g status-style 'fg=colour15'
|
||||||
|
|
Loading…
Reference in a new issue