feat(fish): migrate some utils to fish functions
This commit is contained in:
parent
5a73a7a9a2
commit
999805f16e
5 changed files with 22 additions and 5 deletions
|
|
@ -1,7 +1,12 @@
|
||||||
alias ls 'exa -alh'
|
alias ls 'exa'
|
||||||
|
alias l 'exa -ah'
|
||||||
|
alias ll 'exa -alh'
|
||||||
alias g 'git'
|
alias g 'git'
|
||||||
alias copy 'xclip -selection clipboard'
|
alias copy 'xclip -selection clipboard'
|
||||||
alias cat 'bat --theme Catppuccin-frappe'
|
alias cat 'bat --theme Catppuccin-frappe'
|
||||||
alias k 'kubectl'
|
alias k 'kubectl'
|
||||||
alias rm 'trash'
|
alias rm 'trash'
|
||||||
|
alias v 'vim'
|
||||||
|
alias nv 'nvim'
|
||||||
|
alias m 'make'
|
||||||
alias future-commit 'git commit --date (echo (date -d +7hours))'
|
alias future-commit 'git commit --date (echo (date -d +7hours))'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
set -gx EDITOR nvim
|
set -gx EDITOR nvim
|
||||||
set -gx BAT_THEME "Catppuccin-frappe"
|
set -gx BAT_THEME "Catppuccin-frappe"
|
||||||
|
set -gx DOCKER_BUILDKIT 1
|
||||||
|
set -gx COMPOSE_DOCKER_CLI_BUILD 1
|
||||||
pyenv init - | source
|
pyenv init - | source
|
||||||
fish_vi_key_bindings
|
fish_vi_key_bindings
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
function cleanpycs
|
||||||
|
find . -name '.git' -o -name __pycache__ -delete
|
||||||
|
find . -name '.git' -o -name '*.py[co]' -delete
|
||||||
|
end
|
||||||
|
|
||||||
function envsource
|
function envsource
|
||||||
if not set -q argv[1]
|
if not set -q argv[1]
|
||||||
set argv[1] ".env"
|
set argv[1] ".env"
|
||||||
|
|
@ -11,3 +16,12 @@ function envsource
|
||||||
echo "Exported key $item[1]"
|
echo "Exported key $item[1]"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function gen-secret
|
||||||
|
if not set -q argv[1]
|
||||||
|
set argv[1] 64
|
||||||
|
end
|
||||||
|
|
||||||
|
openssl rand -hex $argv[1]
|
||||||
|
end
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
xclip -selection clipboard
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
openssl rand -hex ${1:-64}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue