This commit is contained in:
Sage Vaillancourt 2023-12-13 13:48:01 -05:00
commit c0463de046
8 changed files with 75 additions and 14 deletions

View File

@ -99,10 +99,10 @@ discharging_symbol = " "
[directory.substitutions]
'~/git/' = ''
[custom.in-project-dir]
command = '/home/sagevaillancourt/.in_project_dir.sh'
when = true
style = 'bold red'
# [custom.in-project-dir]
# command = '/home/sagevaillancourt/.in_project_dir.sh'
# when = true
# style = 'bold red'
[dotnet]
format = 'via [$symbol($version) (◎ $tfm )]($style)'

View File

@ -33,7 +33,7 @@ ScrollingBar=TERMINAL_SCROLLBAR_NONE
BackgroundImageFile=/home/sage/Pictures/ballpapers/wallhaven-r7vxk1.jpg
BackgroundImageShading=0.790000
BackgroundImageStyle=TERMINAL_BACKGROUND_STYLE_CENTERED
FontName=FiraCode Nerd Font weight=453 10
FontName=FiraCode Nerd Font 11
ColorCursor=#f8f8f2
ColorBold=#f8f8f2
ColorBoldUseDefault=FALSE

View File

@ -1,6 +1,6 @@
[user]
name = Sage Vaillancourt
email = sagev9000@tutanota.com
email = sage@sagev.space
[core]
autocrlf = input

View File

@ -76,7 +76,6 @@ def print_project_message(project: str) -> ():
project = project.replace(home, "~")
print(f'git {project}')
# print(f'{project}\0icon\x1f{icon}')
if __name__ == '__main__':

View File

@ -1,9 +1,5 @@
#!/bin/bash
function uvim {
vim "scp://undercover.cafe:64522//data/data/com.termux/files/home/$@"
}
function hearch {
history 0 | sed 's/[0-9 ]*//' | grep "$@"
}
@ -51,6 +47,12 @@ function ww {
ws $(rg --no-line-number --no-filename . ~/wiki | sed 's/[^a-zA-Z0-9]\+/\n/g' | grep -v "^$" | sort -f | uniq -ci | sort -hr | fzf -i | cut -c 9-)
}
<<<<<<< HEAD
=======
if command -v bat; then
alias cat="bat -p"
fi
>>>>>>> 12ed01fb9697f14a24fde45d561a42e4b71d3cf1
export FZF_DEFAULT_COMMAND='fd --type f'
alias fzf="fzf --preview 'bat --style=numbers --color=always {}'"

58
fake_home/.sofi-preview.sh Executable file
View File

@ -0,0 +1,58 @@
#!/bin/bash
choice="$1"
query_string="$2"
arg="$(echo "$choice" | cut -c 5-)"
arg="${arg/#\~/$HOME}"
case $choice in
git*)
tree -L 1 $arg
exit 0
;;
win*)
echo $choice
exit 0
;;
app*)
echo $choice
exit 0
;;
emj*)
echo $choice
exit 0
;;
fil*)
echo $choice
exit 0
;;
mvr*)
groupId="$(echo "$arg" | sed 's/\(.*\):.*/\1/')"
artifactId="$(echo "$arg" | sed 's/.*:\(.*\) .*/\1/')"
latestVersion="$(echo "$arg" | sed 's/.* \(.*\)/\1/')"
echo "<dependency>"
echo " <groupId>$groupId</groupId>"
echo " <artifactId>$artifactId</artifactId>"
echo " <version>$latestVersion</version>"
echo "</dependency>"
exit 0
;;
*)
qarg="$(echo "$query_string" | cut -c 5-)"
qarg="${qarg/#\~/$HOME}"
case $query_string in
mvn*)
curl -s "https://search.maven.org/solrsearch/select?q=$qarg&rows=5&wt=json" | jq '[.response.docs[] | { g, a, latestVersion, timestamp } ]' 2>/dev/null
;;
npm*)
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
npm search $qarg | tail -n +2
;;
esac
;;
esac

View File

@ -48,7 +48,9 @@ windows() {
sed 's/, /\n/g' |
xargs -I {} -n1 xprop -id {} _NET_WM_NAME |
grep -v '"Desktop"\|"xfce4-panel"' |
sed 's/_NET_WM_NAME(UTF8_STRING) = "/win /' | sed 's/"$//'
sed 's/_NET_WM_NAME(UTF8_STRING) = "/win /' |
sed 's/"$//' |
grep -v 'not found'
fi
}

View File

@ -36,7 +36,7 @@ if [ -x /usr/bin/dircolors ]; then
alias egrep='egrep --color=auto'
fi
export PATH=~/.bin:$HOME/.dotnet:~/.local/bin:$HOME/.platformio/penv/bin:/usr/local/go/bin:$PATH
export PATH=~/.bin:$HOME/.dotnet:~/.local/bin:/usr/local/go/bin:$PATH
fignore=(o)
@ -95,5 +95,5 @@ 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
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
test -f /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh && source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
test -f "$HOME/.asdf/asdf.sh" && . "$HOME/.asdf/asdf.sh"