Update .config/fish/conf.d/20-aliases.fish

This commit is contained in:
punkfairie 2024-04-18 18:07:51 -07:00
parent 403d1b0d17
commit 2494b9b2c0
No known key found for this signature in database
GPG key ID: 284B78B49C058673

View file

@ -8,7 +8,7 @@ abbr -a c --position command clear
abbr -a e --position command "$EDITOR" abbr -a e --position command "$EDITOR"
abbr -a v --position command "$EDITOR" abbr -a v --position command "$EDITOR"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# CD up on steriods. # CD up on steriods.
function _cd_up_func --argument-names dots function _cd_up_func --argument-names dots
@ -25,7 +25,7 @@ end
abbr -a _cd_up --position command --regex "\.{2,}" --function _cd_up_func abbr -a _cd_up --position command --regex "\.{2,}" --function _cd_up_func
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Execute .txt files as a command. # Execute .txt files as a command.
function _edit_txt_func --argument-names file function _edit_txt_func --argument-names file
@ -36,6 +36,10 @@ abbr -a _edit_txt --position command --regex ".+\.txt" --function _edit_txt_func
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
abbr -a L --position anywhere --set-cursor "% | less"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Default command options. # Default command options.
abbr -a cp --position command "cp -iv" abbr -a cp --position command "cp -iv"