Compare commits

...

10 Commits

Author SHA1 Message Date
dl92
2e1b4ec107 fzf default command 2025-12-07 23:32:51 +00:00
dl92
7113a95aad add rmf function remove multiple files 2025-12-07 23:22:48 +00:00
dl92
36bc6f3738 mamba settings in bash 2025-08-14 22:49:37 +01:00
dl92
20ae3e711b init conda/mamba 2025-08-10 22:06:17 +01:00
dl92
3bf5765ef7 fzf rocks smart terminal preview and open 2025-08-10 00:53:32 +01:00
dl92
f3d1dab1e7 improve fzf search! 2025-08-10 00:10:47 +01:00
dl92
fc632525fd improve interop between zsh and bash 2025-08-09 23:09:26 +01:00
dl92
dba6450f86 update configs 2025-08-06 14:10:54 +01:00
dl92
f9d67b0077 iter#1 complete 2025-02-23 23:29:03 +00:00
dl92
95a814fe4d testing fragmented zshrc 2025-02-23 23:22:48 +00:00
7 changed files with 110 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
#!/bin/bash
# ~/.bashrc (symlink to ~/code/configs/home/.bashrc)
# Load base configurations

View File

@@ -1,3 +1,9 @@
[user]
email = dl92@dl92.com
name = dl92
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential

View File

@@ -40,4 +40,49 @@ export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel9k/powerlevel9k"
source $ZSH/custom/themes/powerlevel9k/powerlevel9k.zsh-theme
# Set up fzf key bindings and fuzzy completion
eval "$(fzf --zsh)"
FZF_DEFAULT_COMMAND='fd --type f | fzf --print0 | xargs -0 -o vim'
# Load base configurations
source ~/code/configs/home/bash-config/rc.base
source ~/code/configs/home/bash-config/rc.aliases
source ~/code/configs/home/bash-config/rc.functions
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_SCREEN_SCALE_FACTORS=1.5
eval "$(gh copilot alias -- zsh)"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/ys/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/ys/miniforge3/etc/profile.d/conda.sh" ]; then
. "/home/ys/miniforge3/etc/profile.d/conda.sh"
else
export PATH="/home/ys/miniforge3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# >>> mamba initialize >>>
# !! Contents within this block are managed by 'mamba shell init' !!
export MAMBA_EXE='/home/ys/miniforge3/bin/mamba';
export MAMBA_ROOT_PREFIX='/home/ys/miniforge3';
__mamba_setup="$("$MAMBA_EXE" shell hook --shell zsh --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__mamba_setup"
else
alias mamba="$MAMBA_EXE" # Fallback on help from mamba activate
fi
unset __mamba_setup
# <<< mamba initialize <<<
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

View File

@@ -3,7 +3,9 @@
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
if [[ -n "$BASH_VERSION" ]]; then
shopt -s checkwinsize
fi
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
@@ -21,18 +23,57 @@ esac
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
if [[ -n "$BASH_VERSION" ]]; then
shopt -s histappend
fi
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
HISTSIZE=10000
HISTFILESIZE=20000
#activate python
source /home/ys/Data/projects/code/Python/Envs/General/bin/activate
#source /home/ys/Data/projects/code/Python/Envs/General/bin/activate
# Set up fzf key bindings and fuzzy completion
eval "$(fzf --bash)"
FZF_DEFAULT_COMMAND="rg --files --hidden | fzf --bind 'enter:become(vim {+})'"
# Added by LM Studio CLI tool (lms)
export PATH="$PATH:$HOME/.lmstudio/bin"
# ask scrcpy to use a specific adb binary,
export ADB=/usr/bin/adb
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/ys/miniforge3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/ys/miniforge3/etc/profile.d/conda.sh" ]; then
. "/home/ys/miniforge3/etc/profile.d/conda.sh"
else
export PATH="/home/ys/miniforge3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# >>> mamba initialize >>>
# !! Contents within this block are managed by 'mamba shell init' !!
export MAMBA_EXE='/home/ys/miniforge3/bin/mamba';
export MAMBA_ROOT_PREFIX='/home/ys/miniforge3';
__mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__mamba_setup"
else
alias mamba="$MAMBA_EXE" # Fallback on help from mamba activate
fi
unset __mamba_setup
# <<< mamba initialize <<<

View File

@@ -1,7 +1,14 @@
# some more ls aliases
# Common aliases
alias rg='rgrep'
alias fo='open "$(fzf)"'
alias fp='fzf --style full --preview "~/code/scripts/system/fzftools/fzf-preview.sh {}" --bind "focus:transform-header:file --brief {}"'
alias ll='ls -alF'
alias gs='git status'
alias lz='lazygit'
alias nvim='nvim.appimage'
alias dmp3='yt-dlp -x --audio-format mp3 --audio-quality 0 --embed-thumbnail'

View File

@@ -3,14 +3,13 @@
# Set up fzf key bindings and fuzzy completion
eval "$(fzf --bash)"
FZF_DEFAULT_COMMAND='fd --type f| fzf --print0 | xargs -0 -o vim'
source "$HOME/code/scripts/system/nnn/nnnconfig.sh"
export PATH="$PATH:$HOME/code/scripts/system/nnn"
export PATH="$PATH:$HOME/.local/bin"
export DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT=1
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"

View File

@@ -0,0 +1,3 @@
rmf() {
fzf -m | xargs -0 -I {} rm {}
}