First
This commit is contained in:
52
dotfiles/.bashrc
Normal file
52
dotfiles/.bashrc
Normal file
@ -0,0 +1,52 @@
|
||||
# Setup history
|
||||
shopt -s histappend
|
||||
HISTCONTROL=ignoreboth
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=2000
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
force_color_prompt=yes
|
||||
color_prompt=yes
|
||||
|
||||
PS1=$'\uf0a9 '
|
||||
PS1="\[\e]0;\w\a\]$PS1"
|
||||
|
||||
# enable programmable completion features (you don't need to enable
|
||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||
# sources /etc/bash.bashrc).
|
||||
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
|
||||
|
||||
export PATH="./bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin"
|
||||
export EDITOR="nvim"
|
||||
set +h
|
||||
|
||||
alias ls='eza -lh --group-directories-first --icons'
|
||||
alias lt='eza --tree --level=2 --long --icons --git'
|
||||
alias ff="fzf --preview 'batcat --style=numbers --color=always {}'"
|
||||
alias spfy='spotify --force-device-scale-factor=1.5'
|
||||
alias r='./bin/rails'
|
||||
alias n='nvim'
|
||||
alias g='git'
|
||||
alias d='docker'
|
||||
alias gcm='git commit -m'
|
||||
alias gcam='git commit -a -m'
|
||||
alias gcad='git commit -a --amend'
|
||||
alias load-dconf='cat ~/.config/gnome-settings.ini | dconf load /'
|
||||
|
||||
export KAMAL_REGISTRY_PASSWORD="dckr_pat_1-VLgNpkPxENCjLuZSS6AM-zfD4"
|
||||
export HAYSTACK_GLOBAL_DATABASE_VERSION=8
|
||||
|
||||
eval "$(/usr/bin/rbenv init - bash)"
|
||||
eval "$(nodenv init -)"
|
||||
eval "$(zoxide init bash)"
|
||||
|
||||
export PATH=$PATH:/home/dhh/.spicetify
|
47
dotfiles/alacritty/alacritty.toml
Normal file
47
dotfiles/alacritty/alacritty.toml
Normal file
@ -0,0 +1,47 @@
|
||||
[env]
|
||||
TERM = "xterm-256color"
|
||||
|
||||
[window]
|
||||
padding.x = 16
|
||||
padding.y = 14
|
||||
decorations = "none"
|
||||
|
||||
[font]
|
||||
normal = { family = "CaskaydiaMono Nerd Font", style = "Regular" }
|
||||
size = 9
|
||||
|
||||
[keyboard]
|
||||
bindings = [
|
||||
{ key = "F11", action = "ToggleFullscreen" }
|
||||
]
|
||||
|
||||
[colors]
|
||||
[colors.primary]
|
||||
background = '#1a1b26'
|
||||
foreground = '#a9b1d6'
|
||||
|
||||
# Normal colors
|
||||
[colors.normal]
|
||||
black = '#32344a'
|
||||
red = '#f7768e'
|
||||
green = '#9ece6a'
|
||||
yellow = '#e0af68'
|
||||
blue = '#7aa2f7'
|
||||
magenta = '#ad8ee6'
|
||||
cyan = '#449dab'
|
||||
white = '#787c99'
|
||||
|
||||
# Bright colors
|
||||
[colors.bright]
|
||||
black = '#444b6a'
|
||||
red = '#ff7a93'
|
||||
green = '#b9f27c'
|
||||
yellow = '#ff9e64'
|
||||
blue = '#7da6ff'
|
||||
magenta = '#bb9af7'
|
||||
cyan = '#0db9d7'
|
||||
white = '#acb0d0'
|
||||
|
||||
[colors.selection]
|
||||
background = '#7aa2f7'
|
||||
|
16
dotfiles/aliases
Normal file
16
dotfiles/aliases
Normal file
@ -0,0 +1,16 @@
|
||||
# File system
|
||||
alias ls='eza -lh --group-directories-first --icons'
|
||||
alias lt='eza --tree --level=2 --long --icons --git'
|
||||
alias ff="fzf --preview 'batcat --style=numbers --color=always {}'"
|
||||
|
||||
# Tools
|
||||
alias n='nvim'
|
||||
alias g='git'
|
||||
alias d='docker'
|
||||
alias bat='batcat'
|
||||
|
||||
# Git
|
||||
alias gcm='git commit -m'
|
||||
alias gcam='git commit -a -m'
|
||||
alias gcad='git commit -a --amend'
|
||||
|
30
dotfiles/bashrc
Normal file
30
dotfiles/bashrc
Normal file
@ -0,0 +1,30 @@
|
||||
# History control
|
||||
shopt -s histappend
|
||||
HISTCONTROL=ignoreboth
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=2000
|
||||
|
||||
# Autocompletion
|
||||
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
|
||||
|
||||
# Prefer current-directory bins
|
||||
export PATH="./bin:$PATH"
|
||||
set +h
|
||||
|
||||
# Load configuration first from omabox, then local overwrites
|
||||
for file in ~/.{prompt,exports,aliases}; do
|
||||
[ -r "$file" ] && [ -f "$file" ] && source "$file"
|
||||
[ -r "$file.local" ] && [ -f "$file.local" ] && source "$file.local"
|
||||
done
|
||||
unset file
|
||||
|
||||
# Run iniitializers
|
||||
eval "$(rbenv init - bash)"
|
||||
eval "$(nodenv init -)"
|
||||
eval "$(zoxide init bash)"
|
44
dotfiles/inputrc
Normal file
44
dotfiles/inputrc
Normal file
@ -0,0 +1,44 @@
|
||||
set meta-flag on
|
||||
set input-meta on
|
||||
set output-meta on
|
||||
set convert-meta off
|
||||
set completion-ignore-case on
|
||||
set completion-prefix-display-length 2
|
||||
set show-all-if-ambiguous on
|
||||
set show-all-if-unmodified on
|
||||
|
||||
# Arrow keys match what you've typed so far against your command history
|
||||
"\e[A": history-search-backward
|
||||
"\e[B": history-search-forward
|
||||
"\e[C": forward-char
|
||||
"\e[D": backward-char
|
||||
|
||||
# Immediately add a trailing slash when autocompleting symlinks to directories
|
||||
set mark-symlinked-directories on
|
||||
|
||||
# Do not autocomplete hidden files unless the pattern explicitly begins with a dot
|
||||
set match-hidden-files off
|
||||
|
||||
# Show all autocomplete results at once
|
||||
set page-completions off
|
||||
|
||||
# If there are more than 200 possible completions for a word, ask to show them all
|
||||
set completion-query-items 200
|
||||
|
||||
# Show extra file information when completing, like `ls -F` does
|
||||
set visible-stats on
|
||||
|
||||
$if Bash
|
||||
# Be more intelligent when autocompleting by also looking at the text after
|
||||
# the cursor. For example, when the current line is "cd ~/src/mozil", and
|
||||
# the cursor is on the "z", pressing Tab will not autocomplete it to "cd
|
||||
# ~/src/mozillail", but to "cd ~/src/mozilla". (This is supported by the
|
||||
# Readline used by Bash 4.)
|
||||
set skip-completed-text on
|
||||
|
||||
# Coloring for Bash 4 tab completions.
|
||||
set colored-stats on
|
||||
$endif
|
||||
|
||||
# End with local overrides
|
||||
$include ~/.inputrc.local
|
5
dotfiles/prompt
Normal file
5
dotfiles/prompt
Normal file
@ -0,0 +1,5 @@
|
||||
force_color_prompt=yes
|
||||
color_prompt=yes
|
||||
|
||||
PS1=$'\uf0a9 '
|
||||
PS1="\[\e]0;\w\a\]$PS1"
|
35
dotfiles/zellij/config.kdl
Normal file
35
dotfiles/zellij/config.kdl
Normal file
@ -0,0 +1,35 @@
|
||||
themes {
|
||||
tokyo-night {
|
||||
fg 169 177 214
|
||||
bg 26 27 38
|
||||
black 56 62 90
|
||||
red 249 51 87
|
||||
green 158 206 106
|
||||
yellow 224 175 104
|
||||
blue 122 162 247
|
||||
magenta 187 154 247
|
||||
cyan 42 195 222
|
||||
white 192 202 245
|
||||
orange 255 158 100
|
||||
}
|
||||
}
|
||||
|
||||
theme "tokyo-night"
|
||||
themes {
|
||||
tokyo-night {
|
||||
fg 169 177 214
|
||||
bg 26 27 38
|
||||
black 56 62 90
|
||||
red 249 51 87
|
||||
green 158 206 106
|
||||
yellow 224 175 104
|
||||
blue 122 162 247
|
||||
magenta 187 154 247
|
||||
cyan 42 195 222
|
||||
white 192 202 245
|
||||
orange 255 158 100
|
||||
}
|
||||
}
|
||||
|
||||
theme "tokyo-night"
|
||||
default_layout "compact"
|
Reference in New Issue
Block a user