Merge branch 'main' of https://git.sagev.space/sage/dotfiles
This commit is contained in:
commit
c0463de046
|
@ -99,10 +99,10 @@ discharging_symbol = " "
|
||||||
[directory.substitutions]
|
[directory.substitutions]
|
||||||
'~/git/' = ''
|
'~/git/' = ''
|
||||||
|
|
||||||
[custom.in-project-dir]
|
# [custom.in-project-dir]
|
||||||
command = '/home/sagevaillancourt/.in_project_dir.sh'
|
# command = '/home/sagevaillancourt/.in_project_dir.sh'
|
||||||
when = true
|
# when = true
|
||||||
style = 'bold red'
|
# style = 'bold red'
|
||||||
|
|
||||||
[dotnet]
|
[dotnet]
|
||||||
format = 'via [$symbol($version) (◎ $tfm )]($style)'
|
format = 'via [$symbol($version) (◎ $tfm )]($style)'
|
||||||
|
|
|
@ -33,7 +33,7 @@ ScrollingBar=TERMINAL_SCROLLBAR_NONE
|
||||||
BackgroundImageFile=/home/sage/Pictures/ballpapers/wallhaven-r7vxk1.jpg
|
BackgroundImageFile=/home/sage/Pictures/ballpapers/wallhaven-r7vxk1.jpg
|
||||||
BackgroundImageShading=0.790000
|
BackgroundImageShading=0.790000
|
||||||
BackgroundImageStyle=TERMINAL_BACKGROUND_STYLE_CENTERED
|
BackgroundImageStyle=TERMINAL_BACKGROUND_STYLE_CENTERED
|
||||||
FontName=FiraCode Nerd Font weight=453 10
|
FontName=FiraCode Nerd Font 11
|
||||||
ColorCursor=#f8f8f2
|
ColorCursor=#f8f8f2
|
||||||
ColorBold=#f8f8f2
|
ColorBold=#f8f8f2
|
||||||
ColorBoldUseDefault=FALSE
|
ColorBoldUseDefault=FALSE
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[user]
|
[user]
|
||||||
name = Sage Vaillancourt
|
name = Sage Vaillancourt
|
||||||
email = sagev9000@tutanota.com
|
email = sage@sagev.space
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
autocrlf = input
|
autocrlf = input
|
||||||
|
|
|
@ -76,7 +76,6 @@ def print_project_message(project: str) -> ():
|
||||||
|
|
||||||
project = project.replace(home, "~")
|
project = project.replace(home, "~")
|
||||||
print(f'git {project}')
|
print(f'git {project}')
|
||||||
# print(f'{project}\0icon\x1f{icon}')
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function uvim {
|
|
||||||
vim "scp://undercover.cafe:64522//data/data/com.termux/files/home/$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
function hearch {
|
function hearch {
|
||||||
history 0 | sed 's/[0-9 ]*//' | grep "$@"
|
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-)
|
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'
|
export FZF_DEFAULT_COMMAND='fd --type f'
|
||||||
alias fzf="fzf --preview 'bat --style=numbers --color=always {}'"
|
alias fzf="fzf --preview 'bat --style=numbers --color=always {}'"
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,9 @@ windows() {
|
||||||
sed 's/, /\n/g' |
|
sed 's/, /\n/g' |
|
||||||
xargs -I {} -n1 xprop -id {} _NET_WM_NAME |
|
xargs -I {} -n1 xprop -id {} _NET_WM_NAME |
|
||||||
grep -v '"Desktop"\|"xfce4-panel"' |
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ if [ -x /usr/bin/dircolors ]; then
|
||||||
alias egrep='egrep --color=auto'
|
alias egrep='egrep --color=auto'
|
||||||
fi
|
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)
|
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/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
[ -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"
|
test -f "$HOME/.asdf/asdf.sh" && . "$HOME/.asdf/asdf.sh"
|
||||||
|
|
Loading…
Reference in New Issue