diff --git a/fish/conf.d/aliases.fish b/fish/conf.d/aliases.fish index e7e523f..722b9b5 100644 --- a/fish/conf.d/aliases.fish +++ b/fish/conf.d/aliases.fish @@ -1,7 +1,12 @@ -alias ls 'exa -alh' +alias ls 'exa' +alias l 'exa -ah' +alias ll 'exa -alh' alias g 'git' alias copy 'xclip -selection clipboard' alias cat 'bat --theme Catppuccin-frappe' alias k 'kubectl' alias rm 'trash' +alias v 'vim' +alias nv 'nvim' +alias m 'make' alias future-commit 'git commit --date (echo (date -d +7hours))' diff --git a/fish/conf.d/common.fish b/fish/conf.d/common.fish index 342d544..44224a6 100644 --- a/fish/conf.d/common.fish +++ b/fish/conf.d/common.fish @@ -1,4 +1,6 @@ set -gx EDITOR nvim set -gx BAT_THEME "Catppuccin-frappe" +set -gx DOCKER_BUILDKIT 1 +set -gx COMPOSE_DOCKER_CLI_BUILD 1 pyenv init - | source fish_vi_key_bindings diff --git a/fish/conf.d/envsource.fish b/fish/conf.d/functions.fish similarity index 55% rename from fish/conf.d/envsource.fish rename to fish/conf.d/functions.fish index cd98370..faf21ab 100644 --- a/fish/conf.d/envsource.fish +++ b/fish/conf.d/functions.fish @@ -1,3 +1,8 @@ +function cleanpycs + find . -name '.git' -o -name __pycache__ -delete + find . -name '.git' -o -name '*.py[co]' -delete +end + function envsource if not set -q argv[1] set argv[1] ".env" @@ -11,3 +16,12 @@ function envsource echo "Exported key $item[1]" end end + + +function gen-secret + if not set -q argv[1] + set argv[1] 64 + end + + openssl rand -hex $argv[1] +end diff --git a/utils/copy.sh b/utils/copy.sh deleted file mode 100755 index 1c1c1d0..0000000 --- a/utils/copy.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -xclip -selection clipboard diff --git a/utils/gen-secret.sh b/utils/gen-secret.sh deleted file mode 100755 index 8dc3742..0000000 --- a/utils/gen-secret.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -openssl rand -hex ${1:-64}