Compare commits
10 Commits
b32de217f0
...
2e1b4ec107
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e1b4ec107 | ||
|
|
7113a95aad | ||
|
|
36bc6f3738 | ||
|
|
20ae3e711b | ||
|
|
3bf5765ef7 | ||
|
|
f3d1dab1e7 | ||
|
|
fc632525fd | ||
|
|
dba6450f86 | ||
|
|
f9d67b0077 | ||
|
|
95a814fe4d |
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
|
||||||
# ~/.bashrc (symlink to ~/code/configs/home/.bashrc)
|
# ~/.bashrc (symlink to ~/code/configs/home/.bashrc)
|
||||||
|
|
||||||
# Load base configurations
|
# Load base configurations
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
[user]
|
[user]
|
||||||
email = dl92@dl92.com
|
email = dl92@dl92.com
|
||||||
name = dl92
|
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
|
||||||
|
|||||||
45
home/.zshrc
45
home/.zshrc
@@ -40,4 +40,49 @@ export ZSH="$HOME/.oh-my-zsh"
|
|||||||
ZSH_THEME="powerlevel9k/powerlevel9k"
|
ZSH_THEME="powerlevel9k/powerlevel9k"
|
||||||
source $ZSH/custom/themes/powerlevel9k/powerlevel9k.zsh-theme
|
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
|
||||||
|
|||||||
@@ -3,7 +3,9 @@
|
|||||||
|
|
||||||
# check the window size after each command and, if necessary,
|
# check the window size after each command and, if necessary,
|
||||||
# update the values of LINES and COLUMNS.
|
# update the values of LINES and COLUMNS.
|
||||||
|
if [[ -n "$BASH_VERSION" ]]; then
|
||||||
shopt -s checkwinsize
|
shopt -s checkwinsize
|
||||||
|
fi
|
||||||
|
|
||||||
# If set, the pattern "**" used in a pathname expansion context will
|
# If set, the pattern "**" used in a pathname expansion context will
|
||||||
# match all files and zero or more directories and subdirectories.
|
# match all files and zero or more directories and subdirectories.
|
||||||
@@ -21,18 +23,57 @@ esac
|
|||||||
HISTCONTROL=ignoreboth
|
HISTCONTROL=ignoreboth
|
||||||
|
|
||||||
# append to the history file, don't overwrite it
|
# append to the history file, don't overwrite it
|
||||||
|
if [[ -n "$BASH_VERSION" ]]; then
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
|
fi
|
||||||
|
|
||||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||||
HISTSIZE=1000
|
HISTSIZE=10000
|
||||||
HISTFILESIZE=2000
|
HISTFILESIZE=20000
|
||||||
|
|
||||||
|
|
||||||
#activate python
|
#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)
|
# Added by LM Studio CLI tool (lms)
|
||||||
export PATH="$PATH:$HOME/.lmstudio/bin"
|
export PATH="$PATH:$HOME/.lmstudio/bin"
|
||||||
|
|
||||||
# ask scrcpy to use a specific adb binary,
|
# ask scrcpy to use a specific adb binary,
|
||||||
export ADB=/usr/bin/adb
|
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 <<<
|
||||||
|
|||||||
@@ -1,7 +1,14 @@
|
|||||||
# some more ls aliases
|
# some more ls aliases
|
||||||
|
|
||||||
# Common 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 ll='ls -alF'
|
||||||
alias gs='git status'
|
alias gs='git status'
|
||||||
alias lz='lazygit'
|
alias lz='lazygit'
|
||||||
alias nvim='nvim.appimage'
|
alias nvim='nvim.appimage'
|
||||||
|
alias dmp3='yt-dlp -x --audio-format mp3 --audio-quality 0 --embed-thumbnail'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
source "$HOME/code/scripts/system/nnn/nnnconfig.sh"
|
||||||
export PATH="$PATH:$HOME/code/scripts/system/nnn"
|
export PATH="$PATH:$HOME/code/scripts/system/nnn"
|
||||||
export PATH="$PATH:$HOME/.local/bin"
|
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
|
# set PATH so it includes user's private bin if it exists
|
||||||
if [ -d "$HOME/bin" ] ; then
|
if [ -d "$HOME/bin" ] ; then
|
||||||
PATH="$HOME/bin:$PATH"
|
PATH="$HOME/bin:$PATH"
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
rmf() {
|
||||||
|
fzf -m | xargs -0 -I {} rm {}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user