# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything case $- in *i*) ;; *) return;; esac # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000 # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # If set, the pattern "**" used in a pathname expansion context will # match all files and zero or more directories and subdirectories. #shopt -s globstar # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" # set variable identifying the chroot you work in (used in the prompt below) if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in xterm-color|*-256color) color_prompt=yes;; esac # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then # We have color support; assume it's compliant with Ecma-48 # (ISO/IEC-6429). (Lack of such support is extremely rare, and such # a case would tend to support setf rather than setaf.) color_prompt=yes else color_prompt= fi fi 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 unset color_prompt force_color_prompt # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*) PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" ;; *) ;; esac # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' #alias dir='dir --color=auto' #alias vdir='vdir --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi # colored GCC warnings and errors #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # some more ls aliases alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert 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$//'\'')"' # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi # 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 # custom paths export PATH=$HOME/go/bin:$HOME/.local/bin:/usr/local/go/bin:$PATH # git prompt support source $HOME/scripts/git-prompt.sh # Define some color variables RED="\[\033[0;31m\]" GREEN="\[\033[0;32m\]" YELLOW="\[\033[0;33m\]" BLUE="\[\033[0;34m\]" NO_COLOR="\[\033[0m\]" # Customize PS1 PS1="${GREEN}\u@\h${NO_COLOR}:${BLUE}\w${YELLOW}\$(__git_ps1)${NO_COLOR}\$ " # Conda base path export CONDA_DIR="$HOME/storage/ai/conda" alias sconda="source $CONDA_DIR/bin/activate" 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 alias pbpaste='xclip -selection clipboard -o' alias pbcopy='xclip -selection clipboard' alias create_markmap_visualization='fabric --pattern create_markmap_visualization' alias analyze_paper='fabric --pattern analyze_paper' alias create_aphorisms='fabric --pattern create_aphorisms' alias explain_code='fabric --pattern explain_code' alias summarize_rpg_session='fabric --pattern summarize_rpg_session' alias extract_videoid='fabric --pattern extract_videoid' alias improve_writing='fabric --pattern improve_writing' alias explain_project='fabric --pattern explain_project' alias create_keynote='fabric --pattern create_keynote' alias extract_references='fabric --pattern extract_references' alias analyze_spiritual_text='fabric --pattern analyze_spiritual_text' alias create_threat_model='fabric --pattern create_threat_model' alias create_visualization='fabric --pattern create_visualization' alias explain_docs='fabric --pattern explain_docs' alias extract_main_idea='fabric --pattern extract_main_idea' alias label_and_rate='fabric --pattern label_and_rate' alias check_agreement='fabric --pattern check_agreement' alias extract_recommendations='fabric --pattern extract_recommendations' alias improve_academic_writing='fabric --pattern improve_academic_writing' alias extract_wisdom='fabric --pattern extract_wisdom' alias create_network_threat_landscape='fabric --pattern create_network_threat_landscape' alias summarize_pull-requests='fabric --pattern summarize_pull-requests' alias ai='fabric --pattern ai' alias agility_story='fabric --pattern agility_story' alias extract_sponsors='fabric --pattern extract_sponsors' alias extract_patterns='fabric --pattern extract_patterns' alias improve_prompt='fabric --pattern improve_prompt' alias analyze_prose='fabric --pattern analyze_prose' alias create_summary='fabric --pattern create_summary' alias create_npc='fabric --pattern create_npc' alias create_command='fabric --pattern create_command' alias create_logo='fabric --pattern create_logo' alias analyze_prose_json='fabric --pattern analyze_prose_json' alias summarize_micro='fabric --pattern summarize_micro' alias analyze_claims='fabric --pattern analyze_claims' alias summarize_git_changes='fabric --pattern summarize_git_changes' alias analyze_threat_report_trends='fabric --pattern analyze_threat_report_trends' alias summarize_newsletter='fabric --pattern summarize_newsletter' alias compare_and_contrast='fabric --pattern compare_and_contrast' alias clean_text='fabric --pattern clean_text' alias summarize='fabric --pattern summarize' alias extract_ideas='fabric --pattern extract_ideas' alias analyze_tech_impact='fabric --pattern analyze_tech_impact' alias rate_value='fabric --pattern rate_value' alias extract_article_wisdom='fabric --pattern extract_article_wisdom' alias analyze_threat_report='fabric --pattern analyze_threat_report' alias write_semgrep_rule='fabric --pattern write_semgrep_rule' alias find_hidden_message='fabric --pattern find_hidden_message' alias extract_algorithm_update_recommendations='fabric --pattern extract_algorithm_update_recommendations' alias extract_predictions='fabric --pattern extract_predictions' alias write_pull-request='fabric --pattern write_pull-request' alias rate_content='fabric --pattern rate_content' alias extract_poc='fabric --pattern extract_poc' alias analyze_incident='fabric --pattern analyze_incident' alias create_micro_summary='fabric --pattern create_micro_summary' alias create_mermaid_visualization='fabric --pattern create_mermaid_visualization' alias write_essay='fabric --pattern write_essay' alias create_video_chapters='fabric --pattern create_video_chapters' alias provide_guidance='fabric --pattern provide_guidance' alias philocapsulate='fabric --pattern philocapsulate' if [ -f "/home/user/.config/fabric/fabric-bootstrap.inc" ]; then . "/home/user/.config/fabric/fabric-bootstrap.inc"; fi . "$HOME/.cargo/env" export PATH="/home/user/.local/share/solana/install/active_release/bin:$PATH" export PATH="$PATH:/home/user/.foundry/bin" export GOBIN="$HOME/go/bin" export GOPATH="$HOME/go" # create new venv alias nvenv="python3 -m venv venv --prompt venv && source venv/bin/activate && pip install -U pip setuptools wheel pip-tools" alias venv="source venv/bin/activate" export PATH="$HOME/.local/share/gem/ruby/3.0.0/bin:$PATH" # notes file export TODO="$HOME/storage/notes/TODO.txt"