Compare commits
5 Commits
993e375a76
...
cfce67e2e4
| Author | SHA1 | Date | |
|---|---|---|---|
| cfce67e2e4 | |||
| bd0fca3af6 | |||
| e29bfd1594 | |||
| 5ea0114631 | |||
| 6e2eba211f |
-164
@@ -7,170 +7,6 @@ case $- in
|
||||
*) return;;
|
||||
esac
|
||||
|
||||
# Path to your oh-my-bash installation.
|
||||
export OSH='/home/jsarthak/.oh-my-bash'
|
||||
|
||||
# Set name of the theme to load. Optionally, if you set this to "random"
|
||||
# it'll load a random theme each time that oh-my-bash is loaded.
|
||||
OSH_THEME="font"
|
||||
|
||||
# If you set OSH_THEME to "random", you can ignore themes you don't like.
|
||||
# OMB_THEME_RANDOM_IGNORED=("powerbash10k" "wanelo")
|
||||
# You can also specify the list from which a theme is randomly selected:
|
||||
# OMB_THEME_RANDOM_CANDIDATES=("font" "powerline-light" "minimal")
|
||||
|
||||
# Uncomment the following line to use case-sensitive completion.
|
||||
OMB_CASE_SENSITIVE="true"
|
||||
|
||||
# Uncomment the following line to use hyphen-insensitive completion. Case
|
||||
# sensitive completion must be off. _ and - will be interchangeable.
|
||||
OMB_HYPHEN_SENSITIVE="false"
|
||||
|
||||
# Uncomment the following line to disable bi-weekly auto-update checks.
|
||||
# DISABLE_AUTO_UPDATE="true"
|
||||
|
||||
# Uncomment the following line to change how often to auto-update (in days).
|
||||
export UPDATE_OSH_DAYS=13
|
||||
|
||||
# Uncomment the following line to disable colors in ls.
|
||||
# DISABLE_LS_COLORS="true"
|
||||
|
||||
# Uncomment the following line to disable auto-setting terminal title.
|
||||
# DISABLE_AUTO_TITLE="true"
|
||||
|
||||
# Uncomment the following line to enable command auto-correction.
|
||||
# ENABLE_CORRECTION="true"
|
||||
|
||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||
COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
# Uncomment the following line if you want to disable marking untracked files
|
||||
# under VCS as dirty. This makes repository status check for large repositories
|
||||
# much, much faster.
|
||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||
|
||||
# Uncomment the following line if you don't want the repository to be considered dirty
|
||||
# if there are untracked files.
|
||||
# SCM_GIT_DISABLE_UNTRACKED_DIRTY="true"
|
||||
|
||||
# Uncomment the following line if you want to completely ignore the presence
|
||||
# of untracked files in the repository.
|
||||
# SCM_GIT_IGNORE_UNTRACKED="true"
|
||||
|
||||
# Uncomment the following line if you want to change the command execution time
|
||||
# stamp shown in the history command output. One of the following values can
|
||||
# be used to specify the timestamp format.
|
||||
# * 'mm/dd/yyyy' # mm/dd/yyyy + time
|
||||
# * 'dd.mm.yyyy' # dd.mm.yyyy + time
|
||||
# * 'yyyy-mm-dd' # yyyy-mm-dd + time
|
||||
# * '[mm/dd/yyyy]' # [mm/dd/yyyy] + [time] with colors
|
||||
# * '[dd.mm.yyyy]' # [dd.mm.yyyy] + [time] with colors
|
||||
# * '[yyyy-mm-dd]' # [yyyy-mm-dd] + [time] with colors
|
||||
# If not set, the default value is 'yyyy-mm-dd'.
|
||||
# HIST_STAMPS='yyyy-mm-dd'
|
||||
|
||||
# Uncomment the following line if you do not want OMB to overwrite the existing
|
||||
# aliases by the default OMB aliases defined in lib/*.sh
|
||||
# OMB_DEFAULT_ALIASES="check"
|
||||
|
||||
# Would you like to use another custom folder than $OSH/custom?
|
||||
# OSH_CUSTOM=/path/to/new-custom-folder
|
||||
|
||||
# To disable the uses of "sudo" by oh-my-bash, please set "false" to
|
||||
# this variable. The default behavior for the empty value is "true".
|
||||
OMB_USE_SUDO=true
|
||||
|
||||
# To enable/disable display of Python virtualenv and condaenv
|
||||
# OMB_PROMPT_SHOW_PYTHON_VENV=true # enable
|
||||
# OMB_PROMPT_SHOW_PYTHON_VENV=false # disable
|
||||
|
||||
# To enable/disable Spack environment information
|
||||
# OMB_PROMPT_SHOW_SPACK_ENV=true # enable
|
||||
# OMB_PROMPT_SHOW_SPACK_ENV=false # disable
|
||||
|
||||
# Which completions would you like to load? (completions can be found in ~/.oh-my-bash/completions/*)
|
||||
# Custom completions may be added to ~/.oh-my-bash/custom/completions/
|
||||
# Example format: completions=(ssh git bundler gem pip pip3)
|
||||
# Add wisely, as too many completions slow down shell startup.
|
||||
completions=(
|
||||
git
|
||||
composer
|
||||
ssh
|
||||
)
|
||||
|
||||
# Which aliases would you like to load? (aliases can be found in ~/.oh-my-bash/aliases/*)
|
||||
# Custom aliases may be added to ~/.oh-my-bash/custom/aliases/
|
||||
# Example format: aliases=(vagrant composer git-avh)
|
||||
# Add wisely, as too many aliases slow down shell startup.
|
||||
aliases=(
|
||||
general
|
||||
)
|
||||
|
||||
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-bash/plugins/*)
|
||||
# Custom plugins may be added to ~/.oh-my-bash/custom/plugins/
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
plugins=(
|
||||
git
|
||||
bashmarks
|
||||
starship
|
||||
)
|
||||
|
||||
# Which plugins would you like to conditionally load? (plugins can be found in ~/.oh-my-bash/plugins/*)
|
||||
# Custom plugins may be added to ~/.oh-my-bash/custom/plugins/
|
||||
# Example format:
|
||||
# if [ "$DISPLAY" ] || [ "$SSH" ]; then
|
||||
# plugins+=(tmux-autoattach)
|
||||
# fi
|
||||
|
||||
# If you want to reduce the initialization cost of the "tput" command to
|
||||
# initialize color escape sequences, you can uncomment the following setting.
|
||||
# This disables the use of the "tput" command, and the escape sequences are
|
||||
# initialized to be the ANSI version:
|
||||
#
|
||||
#OMB_TERM_USE_TPUT=no
|
||||
|
||||
source "$OSH"/oh-my-bash.sh
|
||||
|
||||
# User configuration
|
||||
# export MANPATH="/usr/local/man:$MANPATH"
|
||||
|
||||
# You may need to manually set your language environment
|
||||
# export LANG=en_US.UTF-8
|
||||
|
||||
# Preferred editor for local and remote sessions
|
||||
# if [[ -n $SSH_CONNECTION ]]; then
|
||||
# export EDITOR='vim'
|
||||
# else
|
||||
# export EDITOR='mvim'
|
||||
# fi
|
||||
|
||||
# Compilation flags
|
||||
# export ARCHFLAGS="-arch x86_64"
|
||||
|
||||
# ssh
|
||||
# export SSH_KEY_PATH="~/.ssh/rsa_id"
|
||||
|
||||
# Set personal aliases, overriding those provided by oh-my-bash libs,
|
||||
# plugins, and themes. Aliases can be placed here, though oh-my-bash
|
||||
# users are encouraged to define aliases within the OSH_CUSTOM folder.
|
||||
# For a full list of active aliases, run `alias`.
|
||||
#
|
||||
# Example aliases
|
||||
# alias bashconfig="mate ~/.bashrc"
|
||||
# alias ohmybash="mate ~/.oh-my-bash"
|
||||
# test if the prompt var is not set and also to prevent failures
|
||||
# when `$PS1` is unset and `set -u` is used
|
||||
if [ -z "${PS1:-}" ]; then
|
||||
# prompt var is not set, so this is *not* an interactive shell
|
||||
return
|
||||
fi
|
||||
|
||||
# If we reach this line of code, then the prompt var is set, so
|
||||
# this is an interactive shell.
|
||||
# Put all the commands here that should run only if this is an
|
||||
# interactive shell.
|
||||
|
||||
# Example command:
|
||||
source ~/.config/shell/common
|
||||
source ~/.config/shell/personal #added by 6500gitsetup
|
||||
|
||||
@@ -3,7 +3,15 @@ local options = {
|
||||
base46 = {
|
||||
theme = "tokyodark", -- default theme
|
||||
hl_add = {},
|
||||
hl_override = {},
|
||||
hl_override = {
|
||||
TbBufOn = {
|
||||
bold = true,
|
||||
fg = "green",
|
||||
},
|
||||
St_FileName = {
|
||||
bold = true,
|
||||
},
|
||||
},
|
||||
integrations = {},
|
||||
changed_themes = {},
|
||||
transparency = true,
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# starship.toml - Fully riced modern prompt config aligned with Carbonfox theme
|
||||
|
||||
format = """
|
||||
$username$hostname$directory$git_branch$git_state$git_status$cmd_duration$line_break\
|
||||
$os$username$hostname$directory$git_branch$git_state$git_status$python$nodejs$rust$golang$cmd_duration$line_break\
|
||||
$character"""
|
||||
|
||||
# Wait 10 milliseconds for starship to check files under the current directory.
|
||||
@@ -8,75 +10,93 @@ scan_timeout = 10
|
||||
# Disable the blank line at the start of the prompt
|
||||
add_newline = true
|
||||
|
||||
# # Define custom colors
|
||||
# [palettes.foo]
|
||||
# # Overwrite existing color
|
||||
# blue = '21'
|
||||
# # Define new color
|
||||
# mustard = '#af8700'
|
||||
|
||||
[directory]
|
||||
style = "purple"
|
||||
truncation_length = 3
|
||||
format = ': [$path]($style)[$read_only]($read_only_style) '
|
||||
truncation_symbol = ".../"
|
||||
truncate_to_repo =true
|
||||
|
||||
[character]
|
||||
success_symbol = '[❯](bold green)'
|
||||
# success_symbol = '[➜](bold green)'
|
||||
error_symbol = '[✗](bold purple) '
|
||||
vimcmd_symbol = "[❮](green)"
|
||||
|
||||
[git_branch]
|
||||
symbol = '🌱 '
|
||||
# truncation_length = 4
|
||||
truncation_symbol = ''
|
||||
format = '[$symbol$branch]($style) '
|
||||
|
||||
[git_status]
|
||||
conflicted = '🏳'
|
||||
ahead = '🏎💨'
|
||||
behind = '😰'
|
||||
diverged = '😵'
|
||||
up_to_date = '✓'
|
||||
untracked = '🤷'
|
||||
stashed = '📦'
|
||||
modified = '📝'
|
||||
staged = '[++\($count\)](green)'
|
||||
renamed = '👅'
|
||||
deleted = '🗑'
|
||||
|
||||
[git_state]
|
||||
format = '[\($state( $progress_current of $progress_total)\)]($style) '
|
||||
cherry_pick = '[🍒 PICKING](bold red)'
|
||||
|
||||
[cmd_duration]
|
||||
min_time = 100
|
||||
format = 'underwent [$duration](bold yellow)'
|
||||
|
||||
[os]
|
||||
disabled = false
|
||||
style = "bold white"
|
||||
|
||||
[username]
|
||||
style_user = 'white bold'
|
||||
style_root = 'black bold'
|
||||
format = '[$user]($style) '
|
||||
style_user = "bold #be95ff" # Carbonfox purple
|
||||
style_root = "bold red"
|
||||
format = "[$user]($style)"
|
||||
disabled = false
|
||||
show_always = true
|
||||
|
||||
[hostname]
|
||||
ssh_only = false
|
||||
format = '@(bold blue) [$hostname](bold red) '
|
||||
trim_at = '.ciena.com'
|
||||
style = "bold #33b1ff" # Carbonfox blue/cyan
|
||||
format = "@[$hostname]($style) "
|
||||
disabled = false
|
||||
|
||||
[directory]
|
||||
style = "bold #08bdba" # Carbonfox teal
|
||||
format = "in [ $path]($style)[$read_only]($read_only_style) "
|
||||
truncation_length = 3
|
||||
truncation_symbol = "…/"
|
||||
truncate_to_repo = true
|
||||
read_only = " "
|
||||
read_only_style = "bold red"
|
||||
|
||||
[character]
|
||||
success_symbol = "[❯](bold #25be6a)" # Carbonfox green
|
||||
error_symbol = "[❯](bold #ee5396)" # Carbonfox pink/red
|
||||
vimcmd_symbol = "[❮](bold #08bdba)" # Carbonfox teal
|
||||
|
||||
[git_branch]
|
||||
symbol = "🌱 "
|
||||
style = "bold #ee5396" # Carbonfox pink
|
||||
format = "on [$symbol$branch]($style) "
|
||||
truncation_symbol = ""
|
||||
|
||||
[git_status]
|
||||
style = "bold #ee5396"
|
||||
format = "([$all_status$ahead_behind]($style) )"
|
||||
conflicted = "🏳"
|
||||
ahead = "🏎💨"
|
||||
behind = "😰"
|
||||
diverged = "😵"
|
||||
untracked = "🤷"
|
||||
stashed = "📦"
|
||||
modified = "📝"
|
||||
staged = '[++\($count\)](green)'
|
||||
renamed = "👅"
|
||||
deleted = "🗑"
|
||||
|
||||
[git_state]
|
||||
format = "([$state( $progress_current of $progress_total)]($style) )"
|
||||
cherry_pick = "[🍒 PICKING](bold red)"
|
||||
|
||||
[python]
|
||||
symbol = "🐍 "
|
||||
style = "bold #3ddbd9"
|
||||
format = "via [$symbol$version]($style) "
|
||||
|
||||
[nodejs]
|
||||
symbol = " "
|
||||
style = "bold #25be6a"
|
||||
format = "via [$symbol$version]($style) "
|
||||
|
||||
[rust]
|
||||
symbol = "🦀 "
|
||||
style = "bold #ff9e64"
|
||||
format = "via [$symbol$version]($style) "
|
||||
|
||||
[golang]
|
||||
symbol = " "
|
||||
style = "bold #78a9ff"
|
||||
format = "via [$symbol$version]($style) "
|
||||
|
||||
[cmd_duration]
|
||||
min_time = 100
|
||||
style = "bold #e0af68" # Carbonfox yellow/orange
|
||||
format = "underwent [$duration]($style) "
|
||||
|
||||
[status]
|
||||
style = 'bg:blue'
|
||||
symbol = '🔴 '
|
||||
success_symbol = '🟢 SUCCESS'
|
||||
format = '[\[$symbol$common_meaning$signal_name$maybe_int\]]($style) '
|
||||
style = "bg:blue"
|
||||
symbol = "🔴 "
|
||||
success_symbol = "🟢 SUCCESS"
|
||||
format = '[[\[$symbol$common_meaning$signal_name$maybe_int\]]($style) ]'
|
||||
map_symbol = true
|
||||
disabled = false
|
||||
disabled = true
|
||||
|
||||
[conda]
|
||||
format = "[$symbol$environment]($style) "
|
||||
|
||||
+37
-35
@@ -71,29 +71,31 @@ tmux_conf_24b_colour=auto
|
||||
# - tmux_conf_theme_synchronized
|
||||
tmux_conf_theme=enabled
|
||||
|
||||
color_yellow="yellow"
|
||||
color_reg="red"
|
||||
color_green="green"
|
||||
color_teal="teal"
|
||||
color_white="white"
|
||||
color_pink="pink"
|
||||
color_black="black"
|
||||
color_blue="blue"
|
||||
color_mauve="#FFE3E3"
|
||||
color_offwhite="#F9F9F2"
|
||||
color_grey="grey"
|
||||
# Carbonfox Color Palette
|
||||
color_bg="#161616"
|
||||
color_fg="#f2f4f8"
|
||||
color_black="#282828"
|
||||
color_gray="#353535"
|
||||
color_light_gray="#484848"
|
||||
color_red="#ee5396"
|
||||
color_green="#25be6a"
|
||||
color_teal="#3ddbd9"
|
||||
color_blue="#78a9ff"
|
||||
color_purple="#be95ff"
|
||||
color_cyan="#33b1ff"
|
||||
color_white="#dfdfe0"
|
||||
|
||||
color_accent="blue"
|
||||
color_accent="$color_blue"
|
||||
color_primary="default"
|
||||
color_secondary="$color_grey"
|
||||
color_fg_primary="default"
|
||||
color_fg_secondary="$color_offwhite"
|
||||
color_secondary="$color_gray"
|
||||
color_fg_primary="$color_fg"
|
||||
color_fg_secondary="$color_white"
|
||||
|
||||
window_status_current_bg="default"
|
||||
window_status_current_fg="$color_accent"
|
||||
|
||||
theme_mode_bg="$color_accent"
|
||||
theme_mode_fg="$color_fg_primary"
|
||||
theme_mode_fg="$color_bg"
|
||||
|
||||
tmux_conf_theme_window_fg="$color_fg_primary"
|
||||
# window style
|
||||
@@ -172,7 +174,7 @@ tmux_conf_theme_window_status_attr="none"
|
||||
# tmux_conf_theme_window_status_format="#I #W#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,!,}#{?window_zoomed_flag,Z,}"
|
||||
#tmux_conf_theme_window_status_format="#{circled_window_index} #W#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,!,}#{?window_zoomed_flag,Z,}"
|
||||
# tmux_conf_theme_window_status_format=" #I: #(despell -e #W) #W #{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}"
|
||||
tmux_conf_theme_window_status_format=" #I:#W #{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}"
|
||||
tmux_conf_theme_window_status_format="#[fg=$color_gray,bg=default]#[fg=$color_fg,bg=$color_gray]#I: #(bash /Users/jsarthak/dotfiles/tmux/tmux-window-name.sh '#W' '#{pane_current_path}')#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}#[fg=$color_gray,bg=default]"
|
||||
|
||||
# window current status style
|
||||
# - built-in variables are:
|
||||
@@ -187,7 +189,7 @@ tmux_conf_theme_window_status_format=" #I:#W #{?#{||:#{window_bell_flag},#{windo
|
||||
# tmux_conf_theme_window_status_current_format="#I #W#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,!,}#{?window_zoomed_flag,Z,}"
|
||||
#tmux_conf_theme_window_status_current_format="#{circled_window_index} #W#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,!,}#{?window_zoomed_flag,Z,}"
|
||||
# tmux_conf_theme_window_status_current_format="#I: #(despell -e #W) #[fg=$tmux_conf_theme_window_status_current_fg]#W*#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}"
|
||||
tmux_conf_theme_window_status_current_format="#I:#[fg=$tmux_conf_theme_window_status_current_fg]#W#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}"
|
||||
tmux_conf_theme_window_status_current_format="#[fg=$color_accent,bg=default]#[fg=$color_bg,bg=$color_accent,bold]#I: #(bash /Users/jsarthak/dotfiles/tmux/tmux-window-name.sh '#W' '#{pane_current_path}')#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}#[fg=$color_accent,bg=default]"
|
||||
|
||||
tmux_conf_theme_window_status_current_fg="$window_status_current_fg"
|
||||
tmux_conf_theme_window_status_current_bg="$window_status_current_bg"
|
||||
@@ -210,9 +212,9 @@ tmux_conf_theme_window_status_last_attr="bold"
|
||||
|
||||
# status left/right sections separators
|
||||
tmux_conf_theme_left_separator_main=""
|
||||
tmux_conf_theme_left_separator_sub="|"
|
||||
tmux_conf_theme_left_separator_sub=""
|
||||
tmux_conf_theme_right_separator_main=""
|
||||
tmux_conf_theme_right_separator_sub="\u2022"
|
||||
tmux_conf_theme_right_separator_sub=""
|
||||
# tmux_conf_theme_left_separator_main='\uE0B0' # /!\ you don't need to install Powerline
|
||||
# tmux_conf_theme_left_separator_sub='\uE0B1' # yku only need fonts patched with
|
||||
# tmux_conf_theme_right_separator_main='\uE0B2' # Powerline symbols or the standalone
|
||||
@@ -247,18 +249,18 @@ tmux_conf_theme_right_separator_sub="\u2022"
|
||||
# - #{username}
|
||||
# - #{username_ssh}
|
||||
|
||||
tmux_conf_theme_status_left=" [#S]"
|
||||
tmux_conf_theme_status_right=" #{prefix}#{mouse}#{pairing}#{synchronized} |\u2022 #{username}#{root} |\u2022 #{hostname} |\u2022 ↑ #{?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 #[fg=$color_accent,bg=default,none]"
|
||||
tmux_conf_theme_status_right=" #{prefix}#{mouse}#{pairing}#{synchronized} |#[fg=default,bg=default] #[fg=$color_secondary,bg=default,none]#[fg=$color_fg,bg=$color_secondary,none] #{?uptime_d,#{uptime_d}d,}#{?uptime_h,#{uptime_h}h,}#{?uptime_m,#{uptime_m}m,}#[fg=$color_secondary,bg=default,none] |#[fg=default,bg=default] #[fg=$color_purple,bg=default,none]#[fg=$color_bg,bg=$color_purple,bold] #{username}#{root}@#{hostname}#[fg=$color_purple,bg=default,none] "
|
||||
|
||||
# status left style
|
||||
tmux_conf_theme_status_left_fg="$color_black,$color_fg_primary,$color_fg_primary"
|
||||
tmux_conf_theme_status_left_bg="$color_primary,$color_primary,$color_primary"
|
||||
tmux_conf_theme_status_left_attr="bold,none,none"
|
||||
tmux_conf_theme_status_left_fg="$color_bg"
|
||||
tmux_conf_theme_status_left_bg="$color_accent"
|
||||
tmux_conf_theme_status_left_attr="bold"
|
||||
|
||||
# status right style
|
||||
tmux_conf_theme_status_right_fg="$color_fg_primary,$color_fg_primary,$color_fg_primary,$color_fg_primary"
|
||||
tmux_conf_theme_status_right_bg="$color_primary,$color_primary,$color_primary,$color_primary"
|
||||
tmux_conf_theme_status_right_attr="bold,none,bold,none"
|
||||
tmux_conf_theme_status_right_fg="$color_red,$color_fg,$color_bg"
|
||||
tmux_conf_theme_status_right_bg="default,$color_secondary,$color_purple"
|
||||
tmux_conf_theme_status_right_attr="bold,none,bold"
|
||||
|
||||
# pairing indicator
|
||||
tmux_conf_theme_pairing="⚇" # U+2687
|
||||
@@ -267,14 +269,14 @@ tmux_conf_theme_pairing_bg="none"
|
||||
tmux_conf_theme_pairing_attr="none"
|
||||
|
||||
# prefix indicator
|
||||
tmux_conf_theme_prefix="⌨" # U+2328
|
||||
tmux_conf_theme_prefix_fg="none"
|
||||
tmux_conf_theme_prefix=" "
|
||||
tmux_conf_theme_prefix_fg="$color_red"
|
||||
tmux_conf_theme_prefix_bg="none"
|
||||
tmux_conf_theme_prefix_attr="none"
|
||||
tmux_conf_theme_prefix_attr="bold"
|
||||
|
||||
# mouse indicator
|
||||
tmux_conf_theme_mouse="↗" # U+2197
|
||||
tmux_conf_theme_mouse_fg="none"
|
||||
tmux_conf_theme_mouse=" "
|
||||
tmux_conf_theme_mouse_fg="$color_teal"
|
||||
tmux_conf_theme_mouse_bg="none"
|
||||
tmux_conf_theme_mouse_attr="none"
|
||||
|
||||
@@ -285,8 +287,8 @@ tmux_conf_theme_root_bg="none"
|
||||
tmux_conf_theme_root_attr="bold,blink"
|
||||
|
||||
# synchronized indicator
|
||||
tmux_conf_theme_synchronized="⚏" # U+268F
|
||||
tmux_conf_theme_synchronized_fg="none"
|
||||
tmux_conf_theme_synchronized=" "
|
||||
tmux_conf_theme_synchronized_fg="$color_green"
|
||||
tmux_conf_theme_synchronized_bg="none"
|
||||
tmux_conf_theme_synchronized_attr="none"
|
||||
|
||||
|
||||
Executable
+86
@@ -0,0 +1,86 @@
|
||||
#!/bin/bash
|
||||
# tmux-window-name.sh - Auto emoji/icon plugin replacement for tmux window titles
|
||||
# Zero dependencies, fast shell-based script mapping commands to Nerd Font glyphs.
|
||||
|
||||
cmd="$1"
|
||||
path="$2"
|
||||
|
||||
# Get basename of the directory
|
||||
base_dir=$(basename "$path")
|
||||
if [ "$base_dir" = "$USER" ]; then
|
||||
base_dir="~"
|
||||
fi
|
||||
|
||||
icon=""
|
||||
name="$cmd"
|
||||
|
||||
case "$cmd" in
|
||||
zsh|bash|sh|fish|ksh)
|
||||
icon=""
|
||||
name="$base_dir"
|
||||
;;
|
||||
nvim|vim|vi)
|
||||
icon=""
|
||||
name="nvim ($base_dir)"
|
||||
;;
|
||||
emacs)
|
||||
icon=""
|
||||
name="emacs ($base_dir)"
|
||||
;;
|
||||
git|lazygit|gh)
|
||||
icon=""
|
||||
name="${cmd} ($base_dir)"
|
||||
;;
|
||||
node|npm|yarn|pnpm|bun)
|
||||
icon=""
|
||||
name="${cmd} ($base_dir)"
|
||||
;;
|
||||
python|python3|pip|ipython)
|
||||
icon=""
|
||||
;;
|
||||
docker|docker-compose|lazydocker)
|
||||
icon=""
|
||||
name="${cmd} ($base_dir)"
|
||||
;;
|
||||
cargo|rustc|rustup)
|
||||
icon=""
|
||||
name="${cmd} ($base_dir)"
|
||||
;;
|
||||
go)
|
||||
icon=""
|
||||
;;
|
||||
htop|top|btop)
|
||||
icon=""
|
||||
;;
|
||||
curl|wget)
|
||||
icon=""
|
||||
;;
|
||||
man)
|
||||
icon=""
|
||||
;;
|
||||
less|more)
|
||||
icon="📄"
|
||||
;;
|
||||
make|cmake|just)
|
||||
icon="🛠️"
|
||||
;;
|
||||
ssh|scp|sftp|mosh-client|mosh)
|
||||
icon="🔑"
|
||||
;;
|
||||
sudo)
|
||||
icon="🔒"
|
||||
;;
|
||||
terraform|tofu)
|
||||
icon=""
|
||||
name="${cmd} ($base_dir)"
|
||||
;;
|
||||
grep|rg|find|fd)
|
||||
icon="🔍"
|
||||
;;
|
||||
sleep)
|
||||
icon="💤"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Output the formatted name
|
||||
echo "$icon $name"
|
||||
Reference in New Issue
Block a user