diff options
| author | 2026-03-07 20:20:14 +0000 | |
|---|---|---|
| committer | 2026-03-21 23:36:53 +0000 | |
| commit | 03485bd0ac00c582e0dccb9187866420666a2f42 (patch) | |
| tree | 5c68d70c04404ee6c87530d99187fa14f9e32dcc /fish | |
| parent | 171ffed14d6796513e972829a378d723137b517b (diff) | |
adicionado ashell, ajustes
Diffstat (limited to 'fish')
| -rw-r--r-- | fish/conf.d/eza.fish | 6 | ||||
| -rw-r--r-- | fish/config.fish | 9 | ||||
| -rw-r--r-- | fish/functions/cp.fish | 3 | ||||
| -rw-r--r-- | fish/functions/eza.fish | 4 | ||||
| -rw-r--r-- | fish/functions/mv.fish | 3 | ||||
| -rw-r--r-- | fish/functions/rm.fish | 3 |
6 files changed, 19 insertions, 9 deletions
diff --git a/fish/conf.d/eza.fish b/fish/conf.d/eza.fish new file mode 100644 index 0000000..63d8296 --- /dev/null +++ b/fish/conf.d/eza.fish @@ -0,0 +1,6 @@ +if command --query eza + abbr --add -- la 'eza -a' + abbr --add -- ll 'eza -l' + abbr --add -- lla 'eza -la' + abbr --add -- lt 'eza --tree' +end diff --git a/fish/config.fish b/fish/config.fish index 2a3b984..d970f12 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -3,12 +3,6 @@ status is-login; and begin end status is-interactive; and begin - # Abbreviations - abbr --add -- la 'eza -a' - abbr --add -- ll 'eza -l' - abbr --add -- lla 'eza -la' - abbr --add -- lt 'eza --tree' - fish_config theme choose modus_vivendi # Interactive shell initialisation @@ -17,8 +11,9 @@ status is-interactive; and begin set --global hydro_color_git red set --global hydro_cmd_duration_threshold 30000 - set --global LEDGER_FILE $HOME/finanças/dindin.journal + set --global --export LEDGER_FILE "$HOME/finanças/dindin.journal" + set --global --export PASSWORD_STORE_DIR "$HOME/.local/share/pass " set --global --export GPG_TTY (tty) gpg-connect-agent --quiet updatestartuptty /bye >/dev/null diff --git a/fish/functions/cp.fish b/fish/functions/cp.fish new file mode 100644 index 0000000..c1e199d --- /dev/null +++ b/fish/functions/cp.fish @@ -0,0 +1,3 @@ +function cp --description 'cp(1) mais seguro' + command cp --interactive $argv +end diff --git a/fish/functions/eza.fish b/fish/functions/eza.fish index e9a7395..5a8a0e6 100644 --- a/fish/functions/eza.fish +++ b/fish/functions/eza.fish @@ -1,8 +1,8 @@ function eza --wraps eza --description "A modern alternative to ls" - if ! command -q eza + if ! command --query eza echo "`eza` is not installed" exit end - command eza --group-directories-first --header --icons=always $argv + command eza --group-directories-first --header --icons=auto --color=auto $argv end diff --git a/fish/functions/mv.fish b/fish/functions/mv.fish new file mode 100644 index 0000000..ae46ed9 --- /dev/null +++ b/fish/functions/mv.fish @@ -0,0 +1,3 @@ +function mv --description 'mv(1) mais seguro' + command mv --interactive $argv +end diff --git a/fish/functions/rm.fish b/fish/functions/rm.fish new file mode 100644 index 0000000..c0dcc8c --- /dev/null +++ b/fish/functions/rm.fish @@ -0,0 +1,3 @@ +function rm --description 'rm(1) mais seguro' + command rm --interactive=once --verbose $argv +end |
