This commit is contained in:
kokopi-dev
2025-12-07 13:40:44 +09:00
parent 7aea541045
commit 5a1ff168ee
9 changed files with 153 additions and 114 deletions

View File

@@ -1,10 +0,0 @@
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
# bspwm with X startup
# exec startx
export XCURSOR_THEME=Cappuccin-Mocha-Dark
exec Hyprland

View File

@@ -1,31 +0,0 @@
# base commands to be copied
# basic
alias ls='ls --color=auto'
alias ll='ls -l'
alias lll='ls -la'
alias v='nvim'
alias ..='cd ..'
alias ux='chmod u+x'
alias venva='source venv/bin/activate'
alias mkdir='mkdir -p'
function fsize() {
du -sh "$1"
}
# basic enhanced
alias ll='exa -lg --icons'
alias lll='exa -lga'
alias cat='bat --style=header,grid'
# git
alias gadd='git add'
alias gdiff='git diff'
alias mpush='git push origin master'
alias gstat='git status'
function gcom() {
GITMESSAGE="$*"
git commit -m "$GITMESSAGE"
}
export FZF_CTRL_T_COMMAND="fd --type f --type d --hidden --follow --exclude .git --exclude venv --exclude node_modules --exclude .cache --exclude cache --exclude __pycache__ --exclude pkg --exclude .vim --search-path ."

20
bashrc/bash_profile Normal file
View File

@@ -0,0 +1,20 @@
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
# env
export GTK_THEME=tokyonight-dark
export XCURSOR_THEME=catppuccin-mocha-dark-cursors
# bspwm
# exec startx
# hyprland
# exec Hyprland
# mangowc
if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
exec mango
fi

58
bashrc/bashrc Normal file
View File

@@ -0,0 +1,58 @@
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# navigation
PS1='[\u@\h \W]\$ '
alias ls='ls --color=auto'
alias ll="ls -l"
alias ..="cd .."
alias ll='exa -lg --icons'
alias lll='exa -lga'
alias cat='bat --style=header,grid'
# git
alias gadd='git add'
alias gdiff='git diff'
alias mpush='git push origin master'
alias gstat='git status'
function gcom() {
GITMESSAGE="$*"
git commit -m "$GITMESSAGE"
}
# utility
alias grep='grep --color=auto'
alias v="nvim"
alias ziptar="tar -zcvf"
alias unziptar="tar -xvzf"
alias ux='chmod u+x'
alias mkdir='mkdir -p'
alias diff='difft'
function filesize() {
du -sh "$1"
}
# custom binaries
export PATH="$PATH:$HOME/.local/bin"
# version managers/language binaries
export PATH="$HOME/go/bin:$PATH" # golang
export PATH="$HOME/.bun/bin:$PATH" # bun js
eval "$(fnm env --use-on-cd)" # node
## python
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init - bash)"
# misc
eval "$(starship init bash)"
bind 'TAB:menu-complete'
bind 'set show-all-if-ambiguous on'
eval "$(fzf --bash)"
export FZF_CTRL_T_COMMAND="fd --type f --type d --hidden --follow --search-path ."

65
bashrc/fdignore Normal file
View File

@@ -0,0 +1,65 @@
dist
build
target
out
.pnpm-store
.npm-cache
bower_components
vendor
.venv
env
.pytest_cache
.mypy_cache
.ruff_cache
.tox
*.egg-info
.eggs
.git
go/telemetry
venv
node_modules
.cache
cache
__pycache__
pkg
.vim
.themes
.cargo
.config/discord
.npm
.mozilla
.rustup
.bun
.yarn
.gnupg
.pyenv
Dygma
Bazecor
.anthy
.fzf
.atlas
.password-store
pnpm
.local/state
virtualenv
logs
*.log
*.png
*.jpg
*.webp
*.mp3
*.mp4
*.gif
*.svg
*.ico
*.pdf
*.zip
*.tar.gz
*.rar
*.dmg
*.iso
*.mov
*.avi
*.mkv
*.wav
*.flac