feat(fish): add fish-shell
This commit is contained in:
7
fish/config-linux.fish
Normal file
7
fish/config-linux.fish
Normal file
@@ -0,0 +1,7 @@
|
||||
if type -q exa
|
||||
alias ls "exa -g --icons --classify"
|
||||
alias lsa "ls -a"
|
||||
alias ll "exa -l -g --icons --classify"
|
||||
alias lla "ll -a"
|
||||
end
|
||||
|
||||
21
fish/config-osx.fish
Normal file
21
fish/config-osx.fish
Normal file
@@ -0,0 +1,21 @@
|
||||
if type -q exa
|
||||
alias ls "exa -g --icons --classify"
|
||||
alias lsa "ls -a"
|
||||
alias ll "exa -l -g --icons --classify"
|
||||
alias lla "ll -a"
|
||||
end
|
||||
|
||||
if type -q ghq
|
||||
alias ghqcd="cd \$(ghq list --full-path | fzf)"
|
||||
end
|
||||
|
||||
if type -q docker
|
||||
|
||||
# PHP in container
|
||||
alias dcomposer="docker run --rm --interactive --tty --volume \$PWD:/app --volume \$HOME/.composer:/tmp composer:latest composer"
|
||||
alias dphp="docker run --rm --interactive --tty --volume \$PWD:/app --volume /Users:/Users composer:latest php"
|
||||
alias dphp8="docker run --rm --interactive --tty --volume \$PWD:/app composer:latest php"
|
||||
alias dphp7="docker run --rm --interactive --tty --volume \$PWD:/app --workdir /app php:7.4-cli php"
|
||||
alias dlaravel="docker run --rm --interactive --tty --volume \$PWD:/app --volume \$HOME/.composer:/tmp composer:latest /tmp/vendor/bin/laravel"
|
||||
|
||||
end
|
||||
0
fish/config-windows.fish
Normal file
0
fish/config-windows.fish
Normal file
43
fish/config.fish
Normal file
43
fish/config.fish
Normal file
@@ -0,0 +1,43 @@
|
||||
if status is-interactive
|
||||
# Commands to run in interactive sessions can go here
|
||||
set fish_greeting ""
|
||||
set -gx TERM xterm-256color
|
||||
|
||||
# theme
|
||||
set -g theme_color_scheme dracula
|
||||
set -g fish_prompt_pwd_dir_length 1
|
||||
set -g theme_display_user yes
|
||||
set -g theme_hide_hostname no
|
||||
set -g theme_hostname always
|
||||
|
||||
# set default editor to nvim
|
||||
set -gx EDITOR nvim
|
||||
|
||||
fzf_configure_bindings
|
||||
|
||||
# starship prompt
|
||||
switch (uname)
|
||||
case Darwin
|
||||
if test -x /opt/homebrew/bin/starship;
|
||||
/opt/homebrew/bin/starship init fish | source
|
||||
end
|
||||
case Linux
|
||||
case '*'
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# set PATH and load os-specify config
|
||||
switch (uname)
|
||||
case Darwin
|
||||
if test -x /opt/homebrew/bin/brew;
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
set -gx PATH ~/bin $PATH
|
||||
source (dirname (status --current-filename))/config-osx.fish
|
||||
end
|
||||
case Linux
|
||||
source (dirname (status --current-filename))/config-linux.fish
|
||||
case '*'
|
||||
source (dirname (status --current-filename))/config-windows.fish
|
||||
end
|
||||
|
||||
4
fish/fish_plugins
Normal file
4
fish/fish_plugins
Normal file
@@ -0,0 +1,4 @@
|
||||
PatrickF1/fzf.fish
|
||||
jethrokuan/z
|
||||
jorgebucaran/autopair.fish
|
||||
dracula/fish
|
||||
Reference in New Issue
Block a user