summaryrefslogtreecommitdiff
path: root/.config/fish
diff options
context:
space:
mode:
Diffstat (limited to '.config/fish')
-rw-r--r--.config/fish/config.fish36
-rw-r--r--.config/fish/functions/dotfiles.fish2
-rw-r--r--.config/fish/functions/ls.fish2
3 files changed, 20 insertions, 20 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
index c727a72..3a4367f 100644
--- a/.config/fish/config.fish
+++ b/.config/fish/config.fish
@@ -3,32 +3,32 @@
#
function set_envvars
- # source bash profile
- bash2env source "$HOME/.config/shell/profile"
+ # source bash profile
+ bash2env source "$HOME/.config/shell/profile"
- # add user bin directory to path
- if test -d "$HOME/.local/bin"
- fish_add_path "$HOME/.local/bin"
- end
+ # add user bin directory to path
+ if test -d "$HOME/.local/bin"
+ fish_add_path "$HOME/.local/bin"
+ end
end
function load_plugins
- if not functions -q fisher
- echo 'bootstrapping fisher'
- curl -sL https://git.io/fisher | source && fisher update
- end
+ if not functions -q fisher
+ echo 'bootstrapping fisher'
+ curl -sL https://git.io/fisher | source && fisher update
+ end
- if command -q zoxide
- zoxide init fish | source
- end
+ if command -q zoxide
+ zoxide init fish | source
+ end
- if command -q starship
- starship init fish | source
- end
+ if command -q starship
+ starship init fish | source
+ end
end
if status is-interactive
- load_plugins
+ load_plugins
else
- set_envvars
+ set_envvars
end
diff --git a/.config/fish/functions/dotfiles.fish b/.config/fish/functions/dotfiles.fish
index 8873743..e0857de 100644
--- a/.config/fish/functions/dotfiles.fish
+++ b/.config/fish/functions/dotfiles.fish
@@ -1,3 +1,3 @@
function dotfiles
- git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $argv
+ git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $argv
end
diff --git a/.config/fish/functions/ls.fish b/.config/fish/functions/ls.fish
index 988d2dc..d11bb64 100644
--- a/.config/fish/functions/ls.fish
+++ b/.config/fish/functions/ls.fish
@@ -1,3 +1,3 @@
function ls
- exa --icons $argv
+ exa --icons $argv
end