feat: reshuffle files
This commit is contained in:
8
dotfiles/shells/.bash_profile
Normal file
8
dotfiles/shells/.bash_profile
Normal file
@@ -0,0 +1,8 @@
|
||||
# .bash_profile
|
||||
|
||||
# Get the aliases and functions
|
||||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
|
||||
# User specific environment and startup programs
|
||||
63
dotfiles/shells/.bashrc
Normal file
63
dotfiles/shells/.bashrc
Normal file
@@ -0,0 +1,63 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Only run for interactive shells
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# Load debian_chroot if available
|
||||
[[ -z ${debian_chroot:-} && -r /etc/debian_chroot ]] && debian_chroot=$(< /etc/debian_chroot)
|
||||
|
||||
# Determine if color prompt should be used
|
||||
color_prompt=
|
||||
if [[ -n ${force_color_prompt:-} ]] || [[ ${TERM} =~ ^(xterm-color|.*-256color)$ ]]; then
|
||||
if [[ -x /usr/bin/tput ]] && tput setaf 1 >&/dev/null; then
|
||||
color_prompt=yes
|
||||
fi
|
||||
fi
|
||||
|
||||
# Set PS1 based on color support
|
||||
if [[ ${color_prompt} == yes ]]; then
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
else
|
||||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||
fi
|
||||
|
||||
# Set window title for xterm/rxvt
|
||||
if [[ ${TERM} =~ ^(xterm|rxvt) ]]; then
|
||||
PS1="\[\e]0;${debian_chroot:+(${debian_chroot})}\u@\h: \w\a\]${PS1}"
|
||||
fi
|
||||
|
||||
# Clean up
|
||||
unset color_prompt force_color_prompt
|
||||
|
||||
# Enable color support for ls and grep if available
|
||||
if [[ -x /usr/bin/dircolors ]]; then
|
||||
if [[ -r ~/.dircolors ]]; then
|
||||
eval "$(dircolors -b ~/.dircolors)"
|
||||
else
|
||||
eval "$(dircolors -b)"
|
||||
fi
|
||||
|
||||
# Color aliases
|
||||
alias ls='ls --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
# Alert alias for desktop notifications
|
||||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||
|
||||
# Load custom aliases if file exists
|
||||
[[ -f ~/.bash_aliases ]] && . ~/.bash_aliases
|
||||
|
||||
# Enable bash completion if available and not in posix mode
|
||||
if ! shopt -oq posix; then
|
||||
if [[ -f /usr/share/bash-completion/bash_completion ]]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [[ -f /etc/bash_completion ]]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
|
||||
# Load custom prompt script if it exists
|
||||
[[ -f /usr/local/bin/prompt.sh ]] && . /usr/local/bin/prompt.sh
|
||||
105
dotfiles/shells/.config/kitty/kitty.conf
Normal file
105
dotfiles/shells/.config/kitty/kitty.conf
Normal file
@@ -0,0 +1,105 @@
|
||||
# --- Includes
|
||||
include theme.conf
|
||||
|
||||
# --- Font Settings
|
||||
font_family family='Liga SFMono Nerd Font' postscript_name=LigaSFMonoNerdFont-Light
|
||||
bold_font auto
|
||||
italic_font auto
|
||||
bold_italic_font auto
|
||||
font_size 11.0
|
||||
font_features none
|
||||
|
||||
# --- Cursor Settings
|
||||
cursor_shape beam
|
||||
cursor_blink_interval 0.5
|
||||
cursor_stop_blinking_after 0
|
||||
|
||||
# --- Miscellaneous Settings
|
||||
scrollback_lines 5000
|
||||
|
||||
# --- Mouse
|
||||
mouse_hide_wait 1.0
|
||||
url_style curly
|
||||
open_url_with default
|
||||
detect_urls yes
|
||||
|
||||
# --- Terminal Bell
|
||||
enable_audio_bell no
|
||||
visual_bell_duration 0
|
||||
window_alert_on_bell yes
|
||||
bell_on_tab yes
|
||||
|
||||
# --- Window Layout
|
||||
remember_window_size no
|
||||
initial_window_width 1600
|
||||
initial_window_height 900
|
||||
window_border_width 1.0pt
|
||||
enabled_layouts tall
|
||||
window_padding_width 12
|
||||
window_margin_width 2
|
||||
confirm_os_window_close 0
|
||||
hide_window_decorations no
|
||||
|
||||
# --- Tab Bar
|
||||
tab_bar_min_tabs 1
|
||||
tab_bar_style powerline
|
||||
tab_powerline_style angled
|
||||
#tab_title_template "$(pwd): $(executing/last executed command) {title}"
|
||||
inactive_tab_font_style normal
|
||||
tab_activity_symbol *
|
||||
|
||||
# --- Background Opacity
|
||||
background_opacity 1
|
||||
|
||||
# --- Advanced
|
||||
linux_display_server x11
|
||||
shell_integration enabled
|
||||
strip_trailing_spaces smart
|
||||
editor codium
|
||||
allow_remote_control yes
|
||||
listen_on unix:~/.config/kitty/.kitty_socket
|
||||
strip_trailing_spaces smart
|
||||
|
||||
# --- Keybinds
|
||||
kitty_mod shift+alt
|
||||
map ctrl+shift+c copy_to_clipboard
|
||||
map ctrl+shift+v paste_from_clipboard
|
||||
map ctrl+q quit
|
||||
map kitty_mod+enter launch --cwd=current --type os-window
|
||||
map f1 launch --stdin-source=@screen_scrollback --stdin-add-formatting --type=overlay less +G -R
|
||||
|
||||
# --- Scrolling
|
||||
map alt+up scroll_line_up
|
||||
map alt+down scroll_line_down
|
||||
map alt+shift+up scroll_page_up
|
||||
map alt+shift+down scroll_page_down
|
||||
|
||||
# --- Window Management
|
||||
map alt+= new_window
|
||||
map alt+- close_window
|
||||
map alt+] next_window
|
||||
map alt+[ previous_window
|
||||
map kitty_mod+w move_window_forward
|
||||
map kitty_mod+s move_window_backward
|
||||
|
||||
# --- Tab Management
|
||||
map kitty_mod+0 goto_tab 10
|
||||
map kitty_mod+1 goto_tab 1
|
||||
map kitty_mod+2 goto_tab 2
|
||||
map kitty_mod+3 goto_tab 3
|
||||
map kitty_mod+4 goto_tab 4
|
||||
map kitty_mod+5 goto_tab 5
|
||||
map kitty_mod+6 goto_tab 6
|
||||
map kitty_mod+7 goto_tab 7
|
||||
map kitty_mod+8 goto_tab 8
|
||||
map kitty_mod+9 goto_tab 9
|
||||
map kitty_mod+right previous_tab
|
||||
map kitty_mod+left next_tab
|
||||
map kitty_mod+t new_tab
|
||||
map kitty_mod+q close_tab
|
||||
|
||||
# --- Layout Management
|
||||
map ctrl+alt+z next_layout
|
||||
|
||||
# --- Testing
|
||||
tab_title_template {title} [{index}]{fmt.fg.magenta}{fmt.bold}{activity_symbol}{fmt.nobold}
|
||||
43
dotfiles/shells/.config/kitty/theme.conf
Normal file
43
dotfiles/shells/.config/kitty/theme.conf
Normal file
@@ -0,0 +1,43 @@
|
||||
# --- General Colours
|
||||
foreground #ebdbb2
|
||||
background #282828
|
||||
selection_foreground #282828
|
||||
selection_background #bdae93
|
||||
url_color #d3869b
|
||||
cursor #ebdbb2
|
||||
cursor_text_color #282828
|
||||
|
||||
# --- Tab Colours
|
||||
active_tab_foreground #3c3836
|
||||
active_tab_background #d8a657
|
||||
active_tab_font_style bold
|
||||
inactive_tab_foreground #fabd2f
|
||||
inactive_tab_background #3c3836
|
||||
|
||||
# --- Window Colours
|
||||
active_border_color #d8a657
|
||||
inactive_border_color #665c54
|
||||
|
||||
# --- Normal Colours
|
||||
color0 #665c54
|
||||
color1 #ea6962
|
||||
color2 #a9b665
|
||||
color3 #d8a657
|
||||
color4 #83b193
|
||||
color5 #d3869b
|
||||
color6 #89b482
|
||||
color7 #fe8019
|
||||
|
||||
# --- Bright Colours
|
||||
color8 #665c54
|
||||
color9 #fb4934
|
||||
color10 #d9e675
|
||||
color11 #fabd2f
|
||||
color12 #83a598
|
||||
color13 #b16286
|
||||
color14 #8ec07c
|
||||
color15 #ff9400
|
||||
|
||||
# Extended Colors
|
||||
color16 #fc9867
|
||||
color17 #ff6188
|
||||
Reference in New Issue
Block a user