This commit is contained in:
Sage Vaillancourt 2023-12-13 13:42:44 -05:00
parent 8449e511d1
commit a2117e97be
5 changed files with 18 additions and 5 deletions

View File

@ -28,3 +28,5 @@
rebase = false rebase = false
[protocol "file"] [protocol "file"]
allow = always allow = always
[safe]
directory = /var/lib/gitea/custom

View File

@ -80,13 +80,17 @@ def print_project_message(project: str) -> ():
if __name__ == '__main__': if __name__ == '__main__':
if len(sys.argv) == 1: include_icon = sys.argv[1] != "--no-icon" if len(sys.argv) > 1 else True
if len(sys.argv) == 1 or not include_icon:
for git_dir in git_dirs: for git_dir in git_dirs:
if not os.path.isdir(git_dir): if not os.path.isdir(git_dir):
continue continue
for project in os.listdir(git_dir): for project in os.listdir(git_dir):
project = f'{git_dir}/{project}' project = f'{git_dir}/{project}'
if os.path.isdir(project): if os.path.isdir(project):
if include_icon:
print_project_message(project) print_project_message(project)
else:
print(f'git {project}')
else: else:
open_project(sys.argv[1][4:]) open_project(sys.argv[1][4:])

View File

@ -10,6 +10,13 @@ function hearch {
alias hsearch='hearch' alias hsearch='hearch'
alias caddyfile="sudo vim /etc/caddy/Caddyfile"
alias cf="sudo vim /etc/caddy/Caddyfile"
function download-channel {
~/Downloads/yt-dlp "$1" --format 'bestvideo[height=1080]+bestaudio/best' --download-archive archive.txt --output '%(uploader)s/%(upload_date)s.%(title)s.%(id)s.%(ext)s' --restrict-filenames --merge-output-format mkv --ignore-errors
}
function fin { function fin {
find -iname "*$@*" find -iname "*$@*"
} }

View File

@ -11,7 +11,7 @@ set tags=./tags;/ " Search up to / for tags file
set updatetime=100 set updatetime=100
set clipboard=unnamedplus " Use system clipboard set clipboard=unnamedplus " Use system clipboard
if empty($DISPLAY) if empty($DISPLAY) && empty($SSH_CONNECTION)
colorscheme elflord colorscheme elflord
else else
set termguicolors set termguicolors

View File

@ -3,8 +3,7 @@ if test -f /usr/share/doc/fzf/examples/completion.zsh &> /dev/null; then
fi fi
HISTFILE=~/.histfile HISTFILE=~/.histfile
HISTSIZE=10000 HISTSIZE=SAVEHIST=100000
SAVEHIST=10000
setopt appendhistory autocd notify setopt appendhistory autocd notify
setopt menu_complete setopt menu_complete
unsetopt beep unsetopt beep
@ -97,3 +96,4 @@ export NVM_DIR="$HOME/.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 source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
test -f "$HOME/.asdf/asdf.sh" && . "$HOME/.asdf/asdf.sh"