Added many different things
This commit is contained in:
1 parent
f4ab71c1fc
commit
95cf86ae5f
7 files changed
+111
-33
No files matched your search
@@ -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