1
0
Fork 0

feat(fish): migrate some utils to fish functions

This commit is contained in:
cătălin 2023-04-24 18:22:15 +02:00
commit 999805f16e
Signed by: catalin
GPG key ID: 0178DF42F43E5FD2
5 changed files with 22 additions and 5 deletions

View file

@ -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))'

View file

@ -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

View file

@ -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

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
xclip -selection clipboard

View file

@ -1,2 +0,0 @@
#!/usr/bin/env sh
openssl rand -hex ${1:-64}