Added many different things
This commit is contained in:
@@ -208,3 +208,18 @@ end
|
||||
if test -e /usr/bin/sudo-rs
|
||||
alias sudo=sudo-rs
|
||||
end
|
||||
|
||||
#### SOURCE of bash
|
||||
|
||||
function smart_source
|
||||
set file $argv[1]
|
||||
|
||||
if string match -q "*.bash" -- $file
|
||||
bass source $file
|
||||
else if string match -q "*.fish" -- $file
|
||||
builtin source $file
|
||||
else
|
||||
# fallback: try fish source by default
|
||||
builtin source $file
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user