diff --git a/fake_home/.config/starship.toml b/fake_home/.config/starship.toml index 95967c3..6815efa 100644 --- a/fake_home/.config/starship.toml +++ b/fake_home/.config/starship.toml @@ -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)' diff --git a/fake_home/.config/xfce4/terminal/terminalrc b/fake_home/.config/xfce4/terminal/terminalrc index c7ca1a8..e697d7a 100644 --- a/fake_home/.config/xfce4/terminal/terminalrc +++ b/fake_home/.config/xfce4/terminal/terminalrc @@ -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 diff --git a/fake_home/.gitconfig b/fake_home/.gitconfig index 16089ec..715de27 100644 --- a/fake_home/.gitconfig +++ b/fake_home/.gitconfig @@ -1,6 +1,6 @@ [user] name = Sage Vaillancourt - email = sagev9000@tutanota.com + email = sage@sagev.space [core] autocrlf = input diff --git a/fake_home/.rofi-list-git-repos.py b/fake_home/.rofi-list-git-repos.py index fd77977..f94927c 100755 --- a/fake_home/.rofi-list-git-repos.py +++ b/fake_home/.rofi-list-git-repos.py @@ -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__': diff --git a/fake_home/.shell_aliases b/fake_home/.shell_aliases index ec07d22..7abe2fd 100755 --- a/fake_home/.shell_aliases +++ b/fake_home/.shell_aliases @@ -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 {}'" diff --git a/fake_home/.sofi-preview.sh b/fake_home/.sofi-preview.sh new file mode 100755 index 0000000..b26cde4 --- /dev/null +++ b/fake_home/.sofi-preview.sh @@ -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 "" + echo " $groupId" + echo " $artifactId" + echo " $latestVersion" + echo "" + 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 + + diff --git a/fake_home/.sofi.sh b/fake_home/.sofi.sh index b1e09d4..a63923c 100755 --- a/fake_home/.sofi.sh +++ b/fake_home/.sofi.sh @@ -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 } diff --git a/fake_home/.zshrc b/fake_home/.zshrc index 9413d13..38f0111 100644 --- a/fake_home/.zshrc +++ b/fake_home/.zshrc @@ -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"