diff --git a/fake_home/.gitconfig b/fake_home/.gitconfig index 3515826..16089ec 100644 --- a/fake_home/.gitconfig +++ b/fake_home/.gitconfig @@ -28,3 +28,5 @@ rebase = false [protocol "file"] allow = always +[safe] + directory = /var/lib/gitea/custom diff --git a/fake_home/.rofi-list-git-repos.py b/fake_home/.rofi-list-git-repos.py index bb25b60..fd77977 100755 --- a/fake_home/.rofi-list-git-repos.py +++ b/fake_home/.rofi-list-git-repos.py @@ -80,13 +80,17 @@ def print_project_message(project: str) -> (): 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: if not os.path.isdir(git_dir): continue for project in os.listdir(git_dir): project = f'{git_dir}/{project}' if os.path.isdir(project): - print_project_message(project) + if include_icon: + print_project_message(project) + else: + print(f'git {project}') else: open_project(sys.argv[1][4:]) diff --git a/fake_home/.shell_aliases b/fake_home/.shell_aliases index 8be6707..ec07d22 100755 --- a/fake_home/.shell_aliases +++ b/fake_home/.shell_aliases @@ -10,6 +10,13 @@ function 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 { find -iname "*$@*" } diff --git a/fake_home/.vimrc b/fake_home/.vimrc index e8b69a9..94c76b6 100644 --- a/fake_home/.vimrc +++ b/fake_home/.vimrc @@ -11,7 +11,7 @@ set tags=./tags;/ " Search up to / for tags file set updatetime=100 set clipboard=unnamedplus " Use system clipboard -if empty($DISPLAY) +if empty($DISPLAY) && empty($SSH_CONNECTION) colorscheme elflord else set termguicolors diff --git a/fake_home/.zshrc b/fake_home/.zshrc index a8914cd..9413d13 100644 --- a/fake_home/.zshrc +++ b/fake_home/.zshrc @@ -3,8 +3,7 @@ if test -f /usr/share/doc/fzf/examples/completion.zsh &> /dev/null; then fi HISTFILE=~/.histfile -HISTSIZE=10000 -SAVEHIST=10000 +HISTSIZE=SAVEHIST=100000 setopt appendhistory autocd notify setopt menu_complete 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 source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +test -f "$HOME/.asdf/asdf.sh" && . "$HOME/.asdf/asdf.sh"