bis updates
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
dl ~/Downloads
|
dl ~/Downloads
|
||||||
dotfiles ~/dotfiles
|
dotfiles ~/dotfiles
|
||||||
Downloads ~/Downloads
|
Downloads ~/Downloads
|
||||||
root ~
|
root ~/
|
||||||
tm ~/Documents/workspace_tm
|
tm ~/Documents/workspace_tm
|
||||||
obc ~/Documents/workspace_tm/obc
|
obc ~/Documents/workspace_tm/obc
|
||||||
tix ~/Documents/workspace_tm/amadeus_api
|
|
||||||
private ~/Documents/workspace_private
|
private ~/Documents/workspace_private
|
||||||
|
|
||||||
|
tix ~/Documents/workspace_tm/amadeus_api
|
||||||
dropbox ~/Dropbox
|
dropbox ~/Dropbox
|
||||||
active ~/Documents/workspace_active
|
active ~/Documents/workspace_active
|
||||||
archive ~/Documents/workspace_archive
|
archive ~/Documents/workspace_archive
|
||||||
|
|||||||
@@ -30,3 +30,6 @@ zlorfi's dotfiles
|
|||||||
* [TablePlus](https://tableplus.com/download)
|
* [TablePlus](https://tableplus.com/download)
|
||||||
* Tunnelblick
|
* Tunnelblick
|
||||||
* Visual Studio Code
|
* Visual Studio Code
|
||||||
|
* install fish extension manager `curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher`
|
||||||
|
* add bass `fisher add edc/bass`
|
||||||
|
* install nvm `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash`
|
||||||
|
|||||||
4
config/configstore/update-notifier-cordova.json
Normal file
4
config/configstore/update-notifier-cordova.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"optOut": false,
|
||||||
|
"lastUpdateCheck": 1634293619280
|
||||||
|
}
|
||||||
4
config/configstore/update-notifier-json-server.json
Normal file
4
config/configstore/update-notifier-json-server.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"optOut": false,
|
||||||
|
"lastUpdateCheck": 1619531588150
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"optOut": false,
|
"optOut": false,
|
||||||
"lastUpdateCheck": 1601886383398
|
"lastUpdateCheck": 1634547408915
|
||||||
}
|
}
|
||||||
7
config/fish/completions/fisher.fish
Normal file
7
config/fish/completions/fisher.fish
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
complete --command fisher --exclusive --long help --description "Print help"
|
||||||
|
complete --command fisher --exclusive --long version --description "Print version"
|
||||||
|
complete --command fisher --exclusive --condition __fish_use_subcommand --arguments install --description "Install plugins"
|
||||||
|
complete --command fisher --exclusive --condition __fish_use_subcommand --arguments update --description "Update installed plugins"
|
||||||
|
complete --command fisher --exclusive --condition __fish_use_subcommand --arguments remove --description "Remove installed plugins"
|
||||||
|
complete --command fisher --exclusive --condition __fish_use_subcommand --arguments list --description "List installed plugins matching regex"
|
||||||
|
complete --command fisher --exclusive --condition "__fish_seen_subcommand_from update remove" --arguments "(fisher list)"
|
||||||
7
config/fish/conf.d/omf.fish
Normal file
7
config/fish/conf.d/omf.fish
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Path to Oh My Fish install.
|
||||||
|
set -q XDG_DATA_HOME
|
||||||
|
and set -gx OMF_PATH "$XDG_DATA_HOME/omf"
|
||||||
|
or set -gx OMF_PATH "$HOME/.local/share/omf"
|
||||||
|
|
||||||
|
# Load Oh My Fish configuration.
|
||||||
|
source $OMF_PATH/init.fish
|
||||||
@@ -28,6 +28,11 @@ set -x LANG 'en_US.UTF-8'
|
|||||||
# define GOPATH
|
# define GOPATH
|
||||||
set -x -U GOPATH $HOME/Documents/workspace_go
|
set -x -U GOPATH $HOME/Documents/workspace_go
|
||||||
|
|
||||||
|
# definde Android SDK
|
||||||
|
set -x -U ANDROID_SDK_ROOT $HOME/Library/Android/sdk
|
||||||
|
# set -x -U JAVA_HOME /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
|
||||||
|
# set -x -U JAVA_HOME /Applications/Android\ Studio.app/Contents/jre/jdk/Contents/Home
|
||||||
|
|
||||||
# setting GPG
|
# setting GPG
|
||||||
set GPG_TTY /dev/ttys001
|
set GPG_TTY /dev/ttys001
|
||||||
|
|
||||||
@@ -58,18 +63,18 @@ if status --is-interactive
|
|||||||
abbr --add bxrc 'bundle exec rails c'
|
abbr --add bxrc 'bundle exec rails c'
|
||||||
abbr --add bxrs 'bundle exec rails s'
|
abbr --add bxrs 'bundle exec rails s'
|
||||||
abbr --add cloud 'cd ~/Library/Mobile\ Documents/com~apple~CloudDocs'
|
abbr --add cloud 'cd ~/Library/Mobile\ Documents/com~apple~CloudDocs'
|
||||||
abbr --add pg_start 'pg_ctl -D /usr/local/var/postgresql@9.5 start'
|
abbr --add pg_start 'pg_ctl -D /usr/local/var/postgresql@11 start'
|
||||||
abbr --add pg_stop 'pg_ctl -D /usr/local/var/postgresql@9.5 stop'
|
abbr --add pg_stop 'pg_ctl -D /usr/local/var/postgresql@11 stop'
|
||||||
abbr --add k 'kubectl'
|
abbr --add k 'kubectl'
|
||||||
end
|
end
|
||||||
|
|
||||||
# disable login greeting
|
# disable login greeting
|
||||||
set fish_greeting ''
|
set fish_greeting ''
|
||||||
|
|
||||||
# set -g fish_user_paths "/usr/local/opt/node@10/bin" $fish_user_paths
|
# set -g fish_user_paths "/usr/local/opt/node@14/bin" $fish_user_paths
|
||||||
set -g fish_user_paths "/usr/local/sbin" $fish_user_paths
|
set -g fish_user_paths "/usr/local/sbin" $fish_user_paths
|
||||||
|
|
||||||
# add kitty support
|
# add kitty support
|
||||||
# kitty + complete setup fish | source
|
# kitty + complete setup fish | source
|
||||||
set -g fish_user_paths "/usr/local/opt/postgresql@9.5/bin" $fish_user_paths
|
set -g fish_user_paths "/usr/local/opt/postgresql@11/bin" $fish_user_paths
|
||||||
set -g fish_user_paths "/usr/local/opt/imagemagick@6/bin" $fish_user_paths
|
set -g fish_user_paths "/usr/local/opt/imagemagick@6/bin" $fish_user_paths
|
||||||
|
|||||||
1
config/fish/fish_plugins
Normal file
1
config/fish/fish_plugins
Normal file
@@ -0,0 +1 @@
|
|||||||
|
jorgebucaran/fisher
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
# This file contains fish universal variable definitions.
|
# This file contains fish universal variable definitions.
|
||||||
# VERSION: 3.0
|
# VERSION: 3.0
|
||||||
|
SETUVAR --export ANDROID_SDK_ROOT:/Users/michi/Library/Android/sdk
|
||||||
SETUVAR EDITOR:vim
|
SETUVAR EDITOR:vim
|
||||||
SETUVAR --export --path GOPATH:/Users/michi/Documents/workspace_go
|
SETUVAR --export --path GOPATH:/Users/michi/Documents/workspace_go
|
||||||
|
SETUVAR --export JAVA_HOME:/Library/Internet\x20Plug\x2dIns/JavaAppletPlugin\x2eplugin/Contents/Home
|
||||||
SETUVAR --export LANG:en_US\x2eUTF\x2d8
|
SETUVAR --export LANG:en_US\x2eUTF\x2d8
|
||||||
SETUVAR --export LC_ALL:en_US\x2eUTF\x2d8
|
SETUVAR --export LC_ALL:en_US\x2eUTF\x2d8
|
||||||
SETUVAR __fish_classic_git_prompt_initialized:\x1d
|
SETUVAR __fish_classic_git_prompt_initialized:\x1d
|
||||||
@@ -31,11 +33,13 @@ SETUVAR _fish_abbr_gst:git\x20status
|
|||||||
SETUVAR _fish_abbr_gup:git\x20fetch\x20\x26\x26\x20git\x20rebase
|
SETUVAR _fish_abbr_gup:git\x20fetch\x20\x26\x26\x20git\x20rebase
|
||||||
SETUVAR _fish_abbr_k:kubectl
|
SETUVAR _fish_abbr_k:kubectl
|
||||||
SETUVAR _fish_abbr_obc:cd\x20\x7e/Documents/workspace_tm/obc
|
SETUVAR _fish_abbr_obc:cd\x20\x7e/Documents/workspace_tm/obc
|
||||||
SETUVAR _fish_abbr_pg__start:pg_ctl\x20\x2dD\x20/usr/local/var/postgresql\x409\x2e5\x20start
|
SETUVAR _fish_abbr_pg__start:pg_ctl\x20\x2dD\x20/usr/local/var/postgresql\x4011\x20start
|
||||||
SETUVAR _fish_abbr_pg__stop:pg_ctl\x20\x2dD\x20/usr/local/var/postgresql\x409\x2e5\x20stop
|
SETUVAR _fish_abbr_pg__stop:pg_ctl\x20\x2dD\x20/usr/local/var/postgresql\x4011\x20stop
|
||||||
SETUVAR _fish_abbr_tix:cd\x20\x7e/Documents/workspace_tm/amadeus_api/
|
SETUVAR _fish_abbr_tix:cd\x20\x7e/Documents/workspace_tm/amadeus_api/
|
||||||
SETUVAR _fish_abbr_wgo:cd\x20\x7e/Documents/workspace_go/src
|
SETUVAR _fish_abbr_wgo:cd\x20\x7e/Documents/workspace_go/src
|
||||||
SETUVAR _fish_abbr_wtm:cd\x20\x7e/Documents/workspace_tm
|
SETUVAR _fish_abbr_wtm:cd\x20\x7e/Documents/workspace_tm
|
||||||
|
SETUVAR _fisher_jorgebucaran_2F_fisher_files:/Users/michi/\x2econfig/fish/functions/fisher\x2efish\x1e/Users/michi/\x2econfig/fish/completions/fisher\x2efish
|
||||||
|
SETUVAR _fisher_plugins:jorgebucaran/fisher
|
||||||
SETUVAR fish_color_autosuggestion:93a1a1
|
SETUVAR fish_color_autosuggestion:93a1a1
|
||||||
SETUVAR fish_color_cancel:\x2dr
|
SETUVAR fish_color_cancel:\x2dr
|
||||||
SETUVAR fish_color_command:586e75
|
SETUVAR fish_color_command:586e75
|
||||||
|
|||||||
52
config/fish/functions/fish_prompt.1633071929.copy
Normal file
52
config/fish/functions/fish_prompt.1633071929.copy
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
function _git_branch_name
|
||||||
|
echo (git symbolic-ref HEAD 2> /dev/null | sed -e 's|^refs/heads/||')
|
||||||
|
end
|
||||||
|
|
||||||
|
function _is_git_dirty
|
||||||
|
echo (git status -s --ignore-submodules=dirty 2> /dev/null)
|
||||||
|
end
|
||||||
|
|
||||||
|
function _rb_prompt
|
||||||
|
echo (rbenv version | awk '{print $1}')
|
||||||
|
end
|
||||||
|
|
||||||
|
function _kb_context
|
||||||
|
kubectl config current-context 2> /dev/null
|
||||||
|
if [ (test $status -eq 0) ]
|
||||||
|
echo (kubectl config current-context | awk '{print $1}')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function fish_prompt
|
||||||
|
set -l cyan (set_color -o cyan)
|
||||||
|
set -l magenta (set_color -o magenta)
|
||||||
|
set -l yellow (set_color -o yellow)
|
||||||
|
set -l red (set_color -o red)
|
||||||
|
set -l blue (set_color -o blue)
|
||||||
|
set -l normal (set_color normal)
|
||||||
|
|
||||||
|
set -l arrow "$magenta↪ $normal"
|
||||||
|
# set -l arrow "$red↪ $normal"
|
||||||
|
set -l cwd $cyan(pwd|sed "s=$HOME=~=")
|
||||||
|
|
||||||
|
if [ (_kb_context) ]
|
||||||
|
set -l kb_context $yellow(_kb_context)
|
||||||
|
set kube_context "|$kb_context"
|
||||||
|
end
|
||||||
|
|
||||||
|
set -l ruby_version $magenta(_rb_prompt)
|
||||||
|
set -l ruby_version "[$ruby_version$normal$kube_context$normal] in "
|
||||||
|
|
||||||
|
if [ (_git_branch_name) ]
|
||||||
|
set -l git_branch $red(_git_branch_name)
|
||||||
|
set git_info "$normal on $blue$git_branch$blue"
|
||||||
|
|
||||||
|
if [ (_is_git_dirty) ]
|
||||||
|
set -l dirty "$yellow ✗"
|
||||||
|
set git_info "$git_info$dirty"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
echo -s $ruby_version $cwd $git_info $normal \n $arrow " "
|
||||||
|
end
|
||||||
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
function _git_branch_name
|
function _git_branch_name
|
||||||
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
|
echo (git symbolic-ref HEAD 2> /dev/null | sed -e 's|^refs/heads/||')
|
||||||
end
|
end
|
||||||
|
|
||||||
function _is_git_dirty
|
function _is_git_dirty
|
||||||
echo (git status -s --ignore-submodules=dirty ^/dev/null)
|
echo (git status -s --ignore-submodules=dirty 2> /dev/null)
|
||||||
end
|
end
|
||||||
|
|
||||||
function _rb_prompt
|
function _rb_prompt
|
||||||
|
|||||||
209
config/fish/functions/fisher.fish
Normal file
209
config/fish/functions/fisher.fish
Normal file
@@ -0,0 +1,209 @@
|
|||||||
|
function fisher --argument-names cmd --description "A plugin manager for Fish"
|
||||||
|
set --query fisher_path || set --local fisher_path $__fish_config_dir
|
||||||
|
set --local fisher_version 4.3.0
|
||||||
|
set --local fish_plugins $__fish_config_dir/fish_plugins
|
||||||
|
|
||||||
|
switch "$cmd"
|
||||||
|
case -v --version
|
||||||
|
echo "fisher, version $fisher_version"
|
||||||
|
case "" -h --help
|
||||||
|
echo "Usage: fisher install <plugins...> Install plugins"
|
||||||
|
echo " fisher remove <plugins...> Remove installed plugins"
|
||||||
|
echo " fisher update <plugins...> Update installed plugins"
|
||||||
|
echo " fisher update Update all installed plugins"
|
||||||
|
echo " fisher list [<regex>] List installed plugins matching regex"
|
||||||
|
echo "Options:"
|
||||||
|
echo " -v or --version Print version"
|
||||||
|
echo " -h or --help Print this help message"
|
||||||
|
case ls list
|
||||||
|
string match --entire --regex -- "$argv[2]" $_fisher_plugins
|
||||||
|
case install update remove
|
||||||
|
isatty || read --local --null --array stdin && set --append argv $stdin
|
||||||
|
|
||||||
|
set --local install_plugins
|
||||||
|
set --local update_plugins
|
||||||
|
set --local remove_plugins
|
||||||
|
set --local arg_plugins $argv[2..-1]
|
||||||
|
set --local old_plugins $_fisher_plugins
|
||||||
|
set --local new_plugins
|
||||||
|
|
||||||
|
if ! set --query argv[2]
|
||||||
|
if test "$cmd" != update
|
||||||
|
echo "fisher: Not enough arguments for command: \"$cmd\"" >&2 && return 1
|
||||||
|
else if test ! -e $fish_plugins
|
||||||
|
echo "fisher: \"$fish_plugins\" file not found: \"$cmd\"" >&2 && return 1
|
||||||
|
end
|
||||||
|
set arg_plugins (string match --regex -- '^[^\s]+$' <$fish_plugins)
|
||||||
|
end
|
||||||
|
|
||||||
|
for plugin in $arg_plugins
|
||||||
|
test -e "$plugin" && set plugin (realpath $plugin)
|
||||||
|
contains -- "$plugin" $new_plugins || set --append new_plugins $plugin
|
||||||
|
end
|
||||||
|
|
||||||
|
if set --query argv[2]
|
||||||
|
for plugin in $new_plugins
|
||||||
|
if contains -- "$plugin" $old_plugins
|
||||||
|
test "$cmd" = remove &&
|
||||||
|
set --append remove_plugins $plugin ||
|
||||||
|
set --append update_plugins $plugin
|
||||||
|
else if test "$cmd" = install
|
||||||
|
set --append install_plugins $plugin
|
||||||
|
else
|
||||||
|
echo "fisher: Plugin not installed: \"$plugin\"" >&2 && return 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
else
|
||||||
|
for plugin in $new_plugins
|
||||||
|
contains -- "$plugin" $old_plugins &&
|
||||||
|
set --append update_plugins $plugin ||
|
||||||
|
set --append install_plugins $plugin
|
||||||
|
end
|
||||||
|
|
||||||
|
for plugin in $old_plugins
|
||||||
|
contains -- "$plugin" $new_plugins || set --append remove_plugins $plugin
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
set --local pid_list
|
||||||
|
set --local source_plugins
|
||||||
|
set --local fetch_plugins $update_plugins $install_plugins
|
||||||
|
echo (set_color --bold)fisher $cmd version $fisher_version(set_color normal)
|
||||||
|
|
||||||
|
for plugin in $fetch_plugins
|
||||||
|
set --local source (command mktemp -d)
|
||||||
|
set --append source_plugins $source
|
||||||
|
|
||||||
|
command mkdir -p $source/{completions,conf.d,functions}
|
||||||
|
|
||||||
|
fish --command "
|
||||||
|
if test -e $plugin
|
||||||
|
command cp -Rf $plugin/* $source
|
||||||
|
else
|
||||||
|
set temp (command mktemp -d)
|
||||||
|
set name (string split \@ $plugin) || set name[2] HEAD
|
||||||
|
set url https://codeload.github.com/\$name[1]/tar.gz/\$name[2]
|
||||||
|
|
||||||
|
echo Fetching (set_color --underline)\$url(set_color normal)
|
||||||
|
|
||||||
|
if curl --silent \$url | tar -xzC \$temp -f - 2>/dev/null
|
||||||
|
command cp -Rf \$temp/*/* $source
|
||||||
|
else
|
||||||
|
echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2
|
||||||
|
command rm -rf $source
|
||||||
|
end
|
||||||
|
command rm -rf \$temp
|
||||||
|
end
|
||||||
|
|
||||||
|
set files $source/* && string match --quiet --regex -- .+\.fish\\\$ \$files
|
||||||
|
" &
|
||||||
|
|
||||||
|
set --append pid_list (jobs --last --pid)
|
||||||
|
end
|
||||||
|
|
||||||
|
wait $pid_list 2>/dev/null
|
||||||
|
|
||||||
|
for plugin in $fetch_plugins
|
||||||
|
if set --local source $source_plugins[(contains --index -- "$plugin" $fetch_plugins)] && test ! -e $source
|
||||||
|
if set --local index (contains --index -- "$plugin" $install_plugins)
|
||||||
|
set --erase install_plugins[$index]
|
||||||
|
else
|
||||||
|
set --erase update_plugins[(contains --index -- "$plugin" $update_plugins)]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for plugin in $update_plugins $remove_plugins
|
||||||
|
if set --local index (contains --index -- "$plugin" $_fisher_plugins)
|
||||||
|
set --local plugin_files_var _fisher_(string escape --style=var -- $plugin)_files
|
||||||
|
|
||||||
|
if contains -- "$plugin" $remove_plugins
|
||||||
|
for name in (string replace --filter --regex -- '.+/conf\.d/([^/]+)\.fish$' '$1' $$plugin_files_var)
|
||||||
|
emit {$name}_uninstall
|
||||||
|
end
|
||||||
|
printf "%s\n" Removing\ (set_color red --bold)$plugin(set_color normal) " "$$plugin_files_var
|
||||||
|
end
|
||||||
|
|
||||||
|
command rm -rf $$plugin_files_var
|
||||||
|
functions --erase (string replace --filter --regex -- '.+/functions/([^/]+)\.fish$' '$1' $$plugin_files_var)
|
||||||
|
|
||||||
|
for name in (string replace --filter --regex -- '.+/completions/([^/]+)\.fish$' '$1' $$plugin_files_var)
|
||||||
|
complete --erase --command $name
|
||||||
|
end
|
||||||
|
|
||||||
|
set --erase _fisher_plugins[$index]
|
||||||
|
set --erase $plugin_files_var
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if set --query update_plugins[1] || set --query install_plugins[1]
|
||||||
|
command mkdir -p $fisher_path/{functions,conf.d,completions}
|
||||||
|
end
|
||||||
|
|
||||||
|
for plugin in $update_plugins $install_plugins
|
||||||
|
set --local source $source_plugins[(contains --index -- "$plugin" $fetch_plugins)]
|
||||||
|
set --local files $source/{functions,conf.d,completions}/*
|
||||||
|
|
||||||
|
if set --local index (contains --index -- $plugin $install_plugins)
|
||||||
|
set --local user_files $fisher_path/{functions,conf.d,completions}/*
|
||||||
|
set --local conflict_files
|
||||||
|
|
||||||
|
for file in (string replace -- $source/ $fisher_path/ $files)
|
||||||
|
contains -- $file $user_files && set --append conflict_files $file
|
||||||
|
end
|
||||||
|
|
||||||
|
if set --query conflict_files[1] && set --erase install_plugins[$index]
|
||||||
|
echo -s "fisher: Cannot install \"$plugin\": please remove or move conflicting files first:" \n" "$conflict_files >&2
|
||||||
|
continue
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for file in (string replace -- $source/ "" $files)
|
||||||
|
command cp -Rf $source/$file $fisher_path/$file
|
||||||
|
end
|
||||||
|
|
||||||
|
set --local plugin_files_var _fisher_(string escape --style=var -- $plugin)_files
|
||||||
|
set --query files[1] && set --universal $plugin_files_var (string replace -- $source $fisher_path $files)
|
||||||
|
|
||||||
|
contains -- $plugin $_fisher_plugins || set --universal --append _fisher_plugins $plugin
|
||||||
|
contains -- $plugin $install_plugins && set --local event install || set --local event update
|
||||||
|
|
||||||
|
printf "%s\n" Installing\ (set_color --bold)$plugin(set_color normal) " "$$plugin_files_var
|
||||||
|
|
||||||
|
for file in (string match --regex -- '.+/[^/]+\.fish$' $$plugin_files_var)
|
||||||
|
source $file
|
||||||
|
if set --local name (string replace --regex -- '.+conf\.d/([^/]+)\.fish$' '$1' $file)
|
||||||
|
emit {$name}_$event
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
command rm -rf $source_plugins
|
||||||
|
|
||||||
|
set --query _fisher_plugins[1] || set --erase _fisher_plugins
|
||||||
|
set --query _fisher_plugins &&
|
||||||
|
printf "%s\n" $_fisher_plugins >$fish_plugins ||
|
||||||
|
command rm -f $fish_plugins
|
||||||
|
|
||||||
|
set --local total (count $install_plugins) (count $update_plugins) (count $remove_plugins)
|
||||||
|
test "$total" != "0 0 0" && echo (string join ", " (
|
||||||
|
test $total[1] = 0 || echo "Installed $total[1]") (
|
||||||
|
test $total[2] = 0 || echo "Updated $total[2]") (
|
||||||
|
test $total[3] = 0 || echo "Removed $total[3]")
|
||||||
|
) plugin/s
|
||||||
|
case \*
|
||||||
|
echo "fisher: Unknown command: \"$cmd\"" >&2 && return 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
## Migrations ##
|
||||||
|
function _fisher_fish_postexec --on-event fish_postexec
|
||||||
|
if functions --query _fisher_list
|
||||||
|
fisher update >/dev/null 2>/dev/null
|
||||||
|
set --query XDG_DATA_HOME || set --local XDG_DATA_HOME ~/.local/share
|
||||||
|
test -e $XDG_DATA_HOME/fisher && command rm -rf $XDG_DATA_HOME/fisher
|
||||||
|
functions --erase _fisher_list _fisher_plugin_parse
|
||||||
|
set --erase fisher_data
|
||||||
|
end
|
||||||
|
functions --erase _fisher_fish_postexec
|
||||||
|
end
|
||||||
3
config/fish/functions/nvm.fish
Normal file
3
config/fish/functions/nvm.fish
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
function nvm
|
||||||
|
bass source ~/.nvm/nvm.sh --no-use ';' nvm $argv
|
||||||
|
end
|
||||||
3
config/nvim/init.vim
Normal file
3
config/nvim/init.vim
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
||||||
|
let &packpath = &runtimepath
|
||||||
|
source ~/.vimrc
|
||||||
2
config/omf/bundle
Normal file
2
config/omf/bundle
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
package bass
|
||||||
|
theme default
|
||||||
1
config/omf/channel
Normal file
1
config/omf/channel
Normal file
@@ -0,0 +1 @@
|
|||||||
|
stable
|
||||||
1
config/omf/theme
Normal file
1
config/omf/theme
Normal file
@@ -0,0 +1 @@
|
|||||||
|
default
|
||||||
@@ -18,10 +18,10 @@
|
|||||||
[gpg]
|
[gpg]
|
||||||
program = gpg2
|
program = gpg2
|
||||||
[difftool "sourcetree"]
|
[difftool "sourcetree"]
|
||||||
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
|
cmd = /usr/local/bin/ksdiff -w \"$LOCAL\" \"$REMOTE\"
|
||||||
path =
|
path =
|
||||||
[mergetool "sourcetree"]
|
[mergetool "sourcetree"]
|
||||||
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
|
cmd = /usr/local/bin/ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
|
||||||
trustExitCode = true
|
trustExitCode = true
|
||||||
[commit]
|
[commit]
|
||||||
template = /Users/michi/dotfiles/gitmessage
|
template = /Users/michi/dotfiles/gitmessage
|
||||||
|
|||||||
2
gvimrc
2
gvimrc
@@ -1,7 +1,7 @@
|
|||||||
" Copy to ~/.gvimrc or ~/_gvimrc.
|
" Copy to ~/.gvimrc or ~/_gvimrc.
|
||||||
|
|
||||||
" set guifont=Source\ Code\ Pro\ for\ Powerline:h14 "make sure to escape the spaces in the name properly
|
" set guifont=Source\ Code\ Pro\ for\ Powerline:h14 "make sure to escape the spaces in the name properly
|
||||||
set guifont=SauceCodePro\ Nerd\ Font\ Mono:h14 "make sure to escape the spaces in the name properly
|
set guifont=SauceCodePro\ Nerd\ Font\ Mono:h16 "make sure to escape the spaces in the name properly
|
||||||
set antialias " MacVim: smooth fonts.
|
set antialias " MacVim: smooth fonts.
|
||||||
set encoding=utf-8 " Use UTF-8 everywhere.
|
set encoding=utf-8 " Use UTF-8 everywhere.
|
||||||
set guioptions-=T " Hide toolbar.
|
set guioptions-=T " Hide toolbar.
|
||||||
|
|||||||
@@ -3,12 +3,11 @@
|
|||||||
# some variables
|
# some variables
|
||||||
_fish_shell="/usr/local/bin/fish"
|
_fish_shell="/usr/local/bin/fish"
|
||||||
_homebrew=`which brew`
|
_homebrew=`which brew`
|
||||||
_to_install="the_silver_searcher imagemagick postgresql@9.5 pgcli rbenv redis ruby-build \
|
_to_install="the_silver_searcher imagemagick postgresql pgcli rbenv redis ruby-build tmux yasm youtube-dl elixir \
|
||||||
tmux yasm youtube-dl elixir git git-flow vim fish emacs node yarn \
|
git git-flow vim fish yarn azure-cli lens openssl fzf kubectl"
|
||||||
azure-cli octant openssl fzf kubectl"
|
|
||||||
|
|
||||||
# Generate symlinks for files
|
# Generate symlinks for files
|
||||||
for i in gemrc gitconfig gitmessage gitignore gvimrc irbrc mongorc.js NERDTreeBookmarks rspec screenrc tmux.conf vimrc rubocop.yml spacemacs
|
for i in gemrc gitconfig gitmessage gitignore gvimrc irbrc NERDTreeBookmarks rspec screenrc tmux.conf vimrc rubocop.yml prettierrc
|
||||||
do
|
do
|
||||||
if [ ! -f $HOME/.$i ]
|
if [ ! -f $HOME/.$i ]
|
||||||
then
|
then
|
||||||
|
|||||||
17
mongorc.js
17
mongorc.js
@@ -1,17 +0,0 @@
|
|||||||
replicaset_conf = {
|
|
||||||
_id: 'demo-dev',
|
|
||||||
members: [
|
|
||||||
{
|
|
||||||
_id: 0,
|
|
||||||
host: '127.0.0.1:27001'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
_id: 1,
|
|
||||||
host: '127.0.0.1:27002'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
_id: 2,
|
|
||||||
host: '127.0.0.1:27003'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
5
prettierrc
Normal file
5
prettierrc
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"semi": false,
|
||||||
|
"singleQuote": true,
|
||||||
|
"trailingComma": "none"
|
||||||
|
}
|
||||||
@@ -1,12 +1,8 @@
|
|||||||
{
|
{
|
||||||
"telemetry.enableCrashReporter": false,
|
|
||||||
"telemetry.enableTelemetry": false,
|
|
||||||
"workbench.colorTheme": "Spacemacs - dark",
|
|
||||||
"window.zoomLevel": 0,
|
|
||||||
"go.formatTool": "goimports",
|
"go.formatTool": "goimports",
|
||||||
"go.useLanguageServer": true,
|
"go.useLanguageServer": true,
|
||||||
"editor.fontSize": 16,
|
"editor.fontSize": 16,
|
||||||
"editor.fontFamily": "SauceCodePro Nerd Font Mono",
|
"editor.fontFamily": "\"cascadia code\"",
|
||||||
"git.autofetch": true,
|
"git.autofetch": true,
|
||||||
"git.autofetchPeriod": 3600,
|
"git.autofetchPeriod": 3600,
|
||||||
"git.autoStash": true,
|
"git.autoStash": true,
|
||||||
@@ -17,10 +13,44 @@
|
|||||||
"update.showReleaseNotes": false,
|
"update.showReleaseNotes": false,
|
||||||
"files.trimTrailingWhitespace": true,
|
"files.trimTrailingWhitespace": true,
|
||||||
"extensions.ignoreRecommendations": false,
|
"extensions.ignoreRecommendations": false,
|
||||||
"terminal.integrated.shell.osx": "/usr/local/bin/fish",
|
|
||||||
"editor.minimap.enabled": false,
|
|
||||||
"explorer.confirmDragAndDrop": false,
|
"explorer.confirmDragAndDrop": false,
|
||||||
"editor.tabSize": 2,
|
"editor.tabSize": 2,
|
||||||
"javascript.updateImportsOnFileMove.enabled": "always",
|
"javascript.updateImportsOnFileMove.enabled": "always",
|
||||||
"scm.defaultViewMode": "tree"
|
"scm.defaultViewMode": "tree",
|
||||||
|
"todo-tree.general.tags": [
|
||||||
|
"BUG",
|
||||||
|
"HACK",
|
||||||
|
"FIXME",
|
||||||
|
"TODO",
|
||||||
|
"XXX",
|
||||||
|
"[ ]",
|
||||||
|
"[x]"
|
||||||
|
],
|
||||||
|
"todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^\\s*(-|\\d+.))\\s*($TAGS)",
|
||||||
|
"typescript.updateImportsOnFileMove.enabled": "always",
|
||||||
|
"workbench.editor.untitled.hint": "hidden",
|
||||||
|
"explorer.confirmDelete": false,
|
||||||
|
"editor.suggestSelection": "first",
|
||||||
|
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"auto-close-tag.disableOnLanguage": [
|
||||||
|
"typescript"
|
||||||
|
],
|
||||||
|
"workbench.colorTheme": "One Dark Pro",
|
||||||
|
"editor.fontLigatures": true,
|
||||||
|
"window.title": "${activeEditorMedium}${separator}${rootName}",
|
||||||
|
"editor.minimap.enabled": false,
|
||||||
|
"telemetry.telemetryLevel": "off",
|
||||||
|
"terminal.integrated.defaultProfile.osx": "fish",
|
||||||
|
"breadcrumbs.enabled": false,
|
||||||
|
"workbench.sideBar.location": "right",
|
||||||
|
"prettier.useTabs": true,
|
||||||
|
"editor.scrollBeyondLastLine": false,
|
||||||
|
"editor.smoothScrolling": true,
|
||||||
|
"[typescript]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[json]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
382
spacemacs
382
spacemacs
@@ -1,382 +0,0 @@
|
|||||||
;; -*- mode: emacs-lisp -*-
|
|
||||||
;; This file is loaded by Spacemacs at startup.
|
|
||||||
;; It must be stored in your home directory.
|
|
||||||
|
|
||||||
(defun dotspacemacs/layers ()
|
|
||||||
"Configuration Layers declaration.
|
|
||||||
You should not put any user code in this function besides modifying the variable
|
|
||||||
values."
|
|
||||||
(setq-default
|
|
||||||
;; Base distribution to use. This is a layer contained in the directory
|
|
||||||
;; `+distribution'. For now available distributions are `spacemacs-base'
|
|
||||||
;; or `spacemacs'. (default 'spacemacs)
|
|
||||||
dotspacemacs-distribution 'spacemacs
|
|
||||||
;; Lazy installation of layers (i.e. layers are installed only when a file
|
|
||||||
;; with a supported type is opened). Possible values are `all', `unused'
|
|
||||||
;; and `nil'. `unused' will lazy install only unused layers (i.e. layers
|
|
||||||
;; not listed in variable `dotspacemacs-configuration-layers'), `all' will
|
|
||||||
;; lazy install any layer that support lazy installation even the layers
|
|
||||||
;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy
|
|
||||||
;; installation feature and you have to explicitly list a layer in the
|
|
||||||
;; variable `dotspacemacs-configuration-layers' to install it.
|
|
||||||
;; (default 'unused)
|
|
||||||
dotspacemacs-enable-lazy-installation 'unused
|
|
||||||
;; If non-nil then Spacemacs will ask for confirmation before installing
|
|
||||||
;; a layer lazily. (default t)
|
|
||||||
dotspacemacs-ask-for-lazy-installation t
|
|
||||||
;; If non-nil layers with lazy install support are lazy installed.
|
|
||||||
;; List of additional paths where to look for configuration layers.
|
|
||||||
;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
|
|
||||||
dotspacemacs-configuration-layer-path '()
|
|
||||||
;; List of configuration layers to load.
|
|
||||||
dotspacemacs-configuration-layers
|
|
||||||
'(
|
|
||||||
typescript
|
|
||||||
go
|
|
||||||
;; ----------------------------------------------------------------
|
|
||||||
;; Example of useful layers you may want to use right away.
|
|
||||||
;; Uncomment some layer names and press <SPC f e R> (Vim style) or
|
|
||||||
;; <M-m f e R> (Emacs style) to install them.
|
|
||||||
;; ----------------------------------------------------------------
|
|
||||||
auto-completion
|
|
||||||
better-defaults
|
|
||||||
csv
|
|
||||||
elixir
|
|
||||||
elm
|
|
||||||
emacs-lisp
|
|
||||||
evil-commentary
|
|
||||||
git
|
|
||||||
helm
|
|
||||||
html
|
|
||||||
;; npm install -g tern
|
|
||||||
;; npm install -g js-beautify
|
|
||||||
;; npm install -g eslint
|
|
||||||
javascript
|
|
||||||
latex
|
|
||||||
markdown
|
|
||||||
(osx :variables
|
|
||||||
osx-use-option-as-meta nil
|
|
||||||
mac-right-option-modifier nil)
|
|
||||||
react
|
|
||||||
(ruby :variables
|
|
||||||
ruby-enable-ruby-on-rails-support t
|
|
||||||
ruby-version-manager 'rbenv
|
|
||||||
ruby-test-runner 'rspec)
|
|
||||||
ruby-on-rails
|
|
||||||
(shell :variables
|
|
||||||
shell-default-height 30
|
|
||||||
shell-default-position 'bottom)
|
|
||||||
;; spell-checking
|
|
||||||
shell-scripts
|
|
||||||
sql
|
|
||||||
syntax-checking
|
|
||||||
(version-control :variables
|
|
||||||
version-control-diff-tool 'git-gutter
|
|
||||||
version-control-diff-side 'left)
|
|
||||||
yaml
|
|
||||||
)
|
|
||||||
;; List of additional packages that will be installed without being
|
|
||||||
;; wrapped in a layer. If you need some configuration for these
|
|
||||||
;; packages, then consider creating a layer. You can also put the
|
|
||||||
;; configuration in `dotspacemacs/user-config'.
|
|
||||||
dotspacemacs-additional-packages '()
|
|
||||||
;; A list of packages that cannot be updated.
|
|
||||||
dotspacemacs-frozen-packages '()
|
|
||||||
;; A list of packages that will not be installed and loaded.
|
|
||||||
dotspacemacs-excluded-packages '()
|
|
||||||
;; Defines the behaviour of Spacemacs when installing packages.
|
|
||||||
;; Possible values are `used-only', `used-but-keep-unused' and `all'.
|
|
||||||
;; `used-only' installs only explicitly used packages and uninstall any
|
|
||||||
;; unused packages as well as their unused dependencies.
|
|
||||||
;; `used-but-keep-unused' installs only the used packages but won't uninstall
|
|
||||||
;; them if they become unused. `all' installs *all* packages supported by
|
|
||||||
;; Spacemacs and never uninstall them. (default is `used-only')
|
|
||||||
dotspacemacs-install-packages 'used-only))
|
|
||||||
|
|
||||||
(defun dotspacemacs/init ()
|
|
||||||
"Initialization function.
|
|
||||||
This function is called at the very startup of Spacemacs initialization
|
|
||||||
before layers configuration.
|
|
||||||
You should not put any user code in there besides modifying the variable
|
|
||||||
values."
|
|
||||||
;; This setq-default sexp is an exhaustive list of all the supported
|
|
||||||
;; spacemacs settings.
|
|
||||||
(setq-default
|
|
||||||
;; If non nil ELPA repositories are contacted via HTTPS whenever it's
|
|
||||||
;; possible. Set it to nil if you have no way to use HTTPS in your
|
|
||||||
;; environment, otherwise it is strongly recommended to let it set to t.
|
|
||||||
;; This variable has no effect if Emacs is launched with the parameter
|
|
||||||
;; `--insecure' which forces the value of this variable to nil.
|
|
||||||
;; (default t)
|
|
||||||
dotspacemacs-elpa-https t
|
|
||||||
;; Maximum allowed time in seconds to contact an ELPA repository.
|
|
||||||
dotspacemacs-elpa-timeout 5
|
|
||||||
;; If non nil then spacemacs will check for updates at startup
|
|
||||||
;; when the current branch is not `develop'. Note that checking for
|
|
||||||
;; new versions works via git commands, thus it calls GitHub services
|
|
||||||
;; whenever you start Emacs. (default nil)
|
|
||||||
dotspacemacs-check-for-update nil
|
|
||||||
;; If non-nil, a form that evaluates to a package directory. For example, to
|
|
||||||
;; use different package directories for different Emacs versions, set this
|
|
||||||
;; to `emacs-version'.
|
|
||||||
dotspacemacs-elpa-subdirectory nil
|
|
||||||
;; One of `vim', `emacs' or `hybrid'.
|
|
||||||
;; `hybrid' is like `vim' except that `insert state' is replaced by the
|
|
||||||
;; `hybrid state' with `emacs' key bindings. The value can also be a list
|
|
||||||
;; with `:variables' keyword (similar to layers). Check the editing styles
|
|
||||||
;; section of the documentation for details on available variables.
|
|
||||||
;; (default 'vim)
|
|
||||||
dotspacemacs-editing-style 'vim
|
|
||||||
;; If non nil output loading progress in `*Messages*' buffer. (default nil)
|
|
||||||
dotspacemacs-verbose-loading nil
|
|
||||||
;; Specify the startup banner. Default value is `official', it displays
|
|
||||||
;; the official spacemacs logo. An integer value is the index of text
|
|
||||||
;; banner, `random' chooses a random text banner in `core/banners'
|
|
||||||
;; directory. A string value must be a path to an image format supported
|
|
||||||
;; by your Emacs build.
|
|
||||||
;; If the value is nil then no banner is displayed. (default 'official)
|
|
||||||
dotspacemacs-startup-banner 'official
|
|
||||||
;; List of items to show in startup buffer or an association list of
|
|
||||||
;; the form `(list-type . list-size)`. If nil then it is disabled.
|
|
||||||
;; Possible values for list-type are:
|
|
||||||
;; `recents' `bookmarks' `projects' `agenda' `todos'."
|
|
||||||
;; List sizes may be nil, in which case
|
|
||||||
;; `spacemacs-buffer-startup-lists-length' takes effect.
|
|
||||||
dotspacemacs-startup-lists '((recents . 5)
|
|
||||||
(projects . 7))
|
|
||||||
;; True if the home buffer should respond to resize events.
|
|
||||||
dotspacemacs-startup-buffer-responsive t
|
|
||||||
;; Default major mode of the scratch buffer (default `text-mode')
|
|
||||||
dotspacemacs-scratch-mode 'text-mode
|
|
||||||
;; List of themes, the first of the list is loaded when spacemacs starts.
|
|
||||||
;; Press <SPC> T n to cycle to the next theme in the list (works great
|
|
||||||
;; with 2 themes variants, one dark and one light)
|
|
||||||
dotspacemacs-themes '(spacemacs-dark
|
|
||||||
spacemacs-light)
|
|
||||||
;; If non nil the cursor color matches the state color in GUI Emacs.
|
|
||||||
dotspacemacs-colorize-cursor-according-to-state t
|
|
||||||
;; Default font, or prioritized list of fonts. `powerline-scale' allows to
|
|
||||||
;; quickly tweak the mode-line size to make separators look not too crappy.
|
|
||||||
dotspacemacs-default-font '("SauceCodePro Nerd Font Mono"
|
|
||||||
:size 15
|
|
||||||
:weight normal
|
|
||||||
:width normal
|
|
||||||
:powerline-scale 1.1)
|
|
||||||
;; The leader key
|
|
||||||
dotspacemacs-leader-key "SPC"
|
|
||||||
;; The key used for Emacs commands (M-x) (after pressing on the leader key).
|
|
||||||
;; (default "SPC")
|
|
||||||
dotspacemacs-emacs-command-key "SPC"
|
|
||||||
;; The key used for Vim Ex commands (default ":")
|
|
||||||
dotspacemacs-ex-command-key ":"
|
|
||||||
;; The leader key accessible in `emacs state' and `insert state'
|
|
||||||
;; (default "M-m")
|
|
||||||
dotspacemacs-emacs-leader-key "M-m"
|
|
||||||
;; Major mode leader key is a shortcut key which is the equivalent of
|
|
||||||
;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",")
|
|
||||||
dotspacemacs-major-mode-leader-key ","
|
|
||||||
;; Major mode leader key accessible in `emacs state' and `insert state'.
|
|
||||||
;; (default "C-M-m")
|
|
||||||
dotspacemacs-major-mode-emacs-leader-key "C-M-m"
|
|
||||||
;; These variables control whether separate commands are bound in the GUI to
|
|
||||||
;; the key pairs C-i, TAB and C-m, RET.
|
|
||||||
;; Setting it to a non-nil value, allows for separate commands under <C-i>
|
|
||||||
;; and TAB or <C-m> and RET.
|
|
||||||
;; In the terminal, these pairs are generally indistinguishable, so this only
|
|
||||||
;; works in the GUI. (default nil)
|
|
||||||
dotspacemacs-distinguish-gui-tab nil
|
|
||||||
;; If non nil `Y' is remapped to `y$' in Evil states. (default nil)
|
|
||||||
dotspacemacs-remap-Y-to-y$ nil
|
|
||||||
;; If non-nil, the shift mappings `<' and `>' retain visual state if used
|
|
||||||
;; there. (default t)
|
|
||||||
dotspacemacs-retain-visual-state-on-shift t
|
|
||||||
;; If non-nil, J and K move lines up and down when in visual mode.
|
|
||||||
;; (default nil)
|
|
||||||
dotspacemacs-visual-line-move-text nil
|
|
||||||
;; If non nil, inverse the meaning of `g' in `:substitute' Evil ex-command.
|
|
||||||
;; (default nil)
|
|
||||||
dotspacemacs-ex-substitute-global nil
|
|
||||||
;; Name of the default layout (default "Default")
|
|
||||||
dotspacemacs-default-layout-name "Default"
|
|
||||||
;; If non nil the default layout name is displayed in the mode-line.
|
|
||||||
;; (default nil)
|
|
||||||
dotspacemacs-display-default-layout nil
|
|
||||||
;; If non nil then the last auto saved layouts are resume automatically upon
|
|
||||||
;; start. (default nil)
|
|
||||||
dotspacemacs-auto-resume-layouts nil
|
|
||||||
;; Size (in MB) above which spacemacs will prompt to open the large file
|
|
||||||
;; literally to avoid performance issues. Opening a file literally means that
|
|
||||||
;; no major mode or minor modes are active. (default is 1)
|
|
||||||
dotspacemacs-large-file-size 1
|
|
||||||
;; Location where to auto-save files. Possible values are `original' to
|
|
||||||
;; auto-save the file in-place, `cache' to auto-save the file to another
|
|
||||||
;; file stored in the cache directory and `nil' to disable auto-saving.
|
|
||||||
;; (default 'cache)
|
|
||||||
dotspacemacs-auto-save-file-location 'cache
|
|
||||||
;; Maximum number of rollback slots to keep in the cache. (default 5)
|
|
||||||
dotspacemacs-max-rollback-slots 5
|
|
||||||
;; If non nil, `helm' will try to minimize the space it uses. (default nil)
|
|
||||||
dotspacemacs-helm-resize nil
|
|
||||||
;; if non nil, the helm header is hidden when there is only one source.
|
|
||||||
;; (default nil)
|
|
||||||
dotspacemacs-helm-no-header nil
|
|
||||||
;; define the position to display `helm', options are `bottom', `top',
|
|
||||||
;; `left', or `right'. (default 'bottom)
|
|
||||||
dotspacemacs-helm-position 'bottom
|
|
||||||
;; Controls fuzzy matching in helm. If set to `always', force fuzzy matching
|
|
||||||
;; in all non-asynchronous sources. If set to `source', preserve individual
|
|
||||||
;; source settings. Else, disable fuzzy matching in all sources.
|
|
||||||
;; (default 'always)
|
|
||||||
dotspacemacs-helm-use-fuzzy 'always
|
|
||||||
;; If non nil the paste micro-state is enabled. When enabled pressing `p`
|
|
||||||
;; several times cycle between the kill ring content. (default nil)
|
|
||||||
dotspacemacs-enable-paste-transient-state nil
|
|
||||||
;; Which-key delay in seconds. The which-key buffer is the popup listing
|
|
||||||
;; the commands bound to the current keystroke sequence. (default 0.4)
|
|
||||||
dotspacemacs-which-key-delay 0.4
|
|
||||||
;; Which-key frame position. Possible values are `right', `bottom' and
|
|
||||||
;; `right-then-bottom'. right-then-bottom tries to display the frame to the
|
|
||||||
;; right; if there is insufficient space it displays it at the bottom.
|
|
||||||
;; (default 'bottom)
|
|
||||||
dotspacemacs-which-key-position 'bottom
|
|
||||||
;; If non nil a progress bar is displayed when spacemacs is loading. This
|
|
||||||
;; may increase the boot time on some systems and emacs builds, set it to
|
|
||||||
;; nil to boost the loading time. (default t)
|
|
||||||
dotspacemacs-loading-progress-bar t
|
|
||||||
;; If non nil the frame is fullscreen when Emacs starts up. (default nil)
|
|
||||||
;; (Emacs 24.4+ only)
|
|
||||||
dotspacemacs-fullscreen-at-startup nil
|
|
||||||
;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen.
|
|
||||||
;; Use to disable fullscreen animations in OSX. (default nil)
|
|
||||||
dotspacemacs-fullscreen-use-non-native nil
|
|
||||||
;; If non nil the frame is maximized when Emacs starts up.
|
|
||||||
;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.
|
|
||||||
;; (default nil) (Emacs 24.4+ only)
|
|
||||||
dotspacemacs-maximized-at-startup t
|
|
||||||
;; A value from the range (0..100), in increasing opacity, which describes
|
|
||||||
;; the transparency level of a frame when it's active or selected.
|
|
||||||
;; Transparency can be toggled through `toggle-transparency'. (default 90)
|
|
||||||
dotspacemacs-active-transparency 90
|
|
||||||
;; A value from the range (0..100), in increasing opacity, which describes
|
|
||||||
;; the transparency level of a frame when it's inactive or deselected.
|
|
||||||
;; Transparency can be toggled through `toggle-transparency'. (default 90)
|
|
||||||
dotspacemacs-inactive-transparency 60
|
|
||||||
;; If non nil show the titles of transient states. (default t)
|
|
||||||
dotspacemacs-show-transient-state-title t
|
|
||||||
;; If non nil show the color guide hint for transient state keys. (default t)
|
|
||||||
dotspacemacs-show-transient-state-color-guide t
|
|
||||||
;; If non nil unicode symbols are displayed in the mode line. (default t)
|
|
||||||
dotspacemacs-mode-line-unicode-symbols t
|
|
||||||
;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth
|
|
||||||
;; scrolling overrides the default behavior of Emacs which recenters point
|
|
||||||
;; when it reaches the top or bottom of the screen. (default t)
|
|
||||||
dotspacemacs-smooth-scrolling t
|
|
||||||
;; Control line numbers activation.
|
|
||||||
;; If set to `t' or `relative' line numbers are turned on in all `prog-mode' and
|
|
||||||
;; `text-mode' derivatives. If set to `relative', line numbers are relative.
|
|
||||||
;; This variable can also be set to a property list for finer control:
|
|
||||||
;; '(:relative nil
|
|
||||||
;; :disabled-for-modes dired-mode
|
|
||||||
;; doc-view-mode
|
|
||||||
;; markdown-mode
|
|
||||||
;; org-mode
|
|
||||||
;; pdf-view-mode
|
|
||||||
;; text-mode
|
|
||||||
;; :size-limit-kb 1000)
|
|
||||||
;; (default nil)
|
|
||||||
dotspacemacs-line-numbers nil
|
|
||||||
;; Code folding method. Possible values are `evil' and `origami'.
|
|
||||||
;; (default 'evil)
|
|
||||||
dotspacemacs-folding-method 'evil
|
|
||||||
;; If non-nil smartparens-strict-mode will be enabled in programming modes.
|
|
||||||
;; (default nil)
|
|
||||||
dotspacemacs-smartparens-strict-mode nil
|
|
||||||
;; If non-nil pressing the closing parenthesis `)' key in insert mode passes
|
|
||||||
;; over any automatically added closing parenthesis, bracket, quote, etc…
|
|
||||||
;; This can be temporary disabled by pressing `C-q' before `)'. (default nil)
|
|
||||||
dotspacemacs-smart-closing-parenthesis nil
|
|
||||||
;; Select a scope to highlight delimiters. Possible values are `any',
|
|
||||||
;; `current', `all' or `nil'. Default is `all' (highlight any scope and
|
|
||||||
;; emphasis the current one). (default 'all)
|
|
||||||
dotspacemacs-highlight-delimiters 'all
|
|
||||||
;; If non nil, advise quit functions to keep server open when quitting.
|
|
||||||
;; (default nil)
|
|
||||||
dotspacemacs-persistent-server nil
|
|
||||||
;; List of search tool executable names. Spacemacs uses the first installed
|
|
||||||
;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'.
|
|
||||||
;; (default '("ag" "pt" "ack" "grep"))
|
|
||||||
dotspacemacs-search-tools '("ag" "pt" "ack" "grep")
|
|
||||||
;; The default package repository used if no explicit repository has been
|
|
||||||
;; specified with an installed package.
|
|
||||||
;; Not used for now. (default nil)
|
|
||||||
dotspacemacs-default-package-repository nil
|
|
||||||
;; Delete whitespace while saving buffer. Possible values are `all'
|
|
||||||
;; to aggressively delete empty line and long sequences of whitespace,
|
|
||||||
;; `trailing' to delete only the whitespace at end of lines, `changed'to
|
|
||||||
;; delete only whitespace for changed lines or `nil' to disable cleanup.
|
|
||||||
;; (default nil)
|
|
||||||
dotspacemacs-whitespace-cleanup 'trailing
|
|
||||||
))
|
|
||||||
|
|
||||||
(defun dotspacemacs/user-init ()
|
|
||||||
"Initialization function for user code.
|
|
||||||
It is called immediately after `dotspacemacs/init', before layer configuration
|
|
||||||
executes.
|
|
||||||
This function is mostly useful for variables that need to be set
|
|
||||||
before packages are loaded. If you are unsure, you should try in setting them in
|
|
||||||
`dotspacemacs/user-config' first."
|
|
||||||
;; Disable startup warning
|
|
||||||
(setq exec-path-from-shell-check-startup-files nil)
|
|
||||||
)
|
|
||||||
|
|
||||||
(defun dotspacemacs/user-config ()
|
|
||||||
"Configuration function for user code.
|
|
||||||
This function is called at the very end of Spacemacs initialization after
|
|
||||||
layers configuration.
|
|
||||||
This is the place where most of your configurations should be done. Unless it is
|
|
||||||
explicitly specified that a variable should be set before a package is loaded,
|
|
||||||
you should place your code here."
|
|
||||||
;; Confirm emacs kill
|
|
||||||
(setq confirm-kill-emacs 'y-or-n-p)
|
|
||||||
;; Disable Ruby magic comment
|
|
||||||
(setq-default ruby-insert-encoding-magic-comment nil)
|
|
||||||
;; Better Autocompletion
|
|
||||||
(global-company-mode)
|
|
||||||
;; indent settings for js
|
|
||||||
(setq-default
|
|
||||||
;; js2-mode
|
|
||||||
js2-basic-offset 2
|
|
||||||
;; web-mode
|
|
||||||
css-indent-offset 2
|
|
||||||
web-mode-markup-indent-offset 2
|
|
||||||
web-mode-css-indent-offset 2
|
|
||||||
web-mode-code-indent-offset 2
|
|
||||||
web-mode-attr-indent-offset 2)
|
|
||||||
(setq js-indent-level 2)
|
|
||||||
;; Behaviour when opening emacs. Try to open everything in one window
|
|
||||||
(setq ns-pop-up-frames nil)
|
|
||||||
;; disable lockfiles, see https://github.com/syl20bnr/spacemacs/issues/5554
|
|
||||||
(setq create-lockfiles nil)
|
|
||||||
;; enable projectile
|
|
||||||
(projectile-mode)
|
|
||||||
)
|
|
||||||
|
|
||||||
;; Do not write anything past this comment. This is where Emacs will
|
|
||||||
;; auto-generate custom variable definitions.
|
|
||||||
(custom-set-variables
|
|
||||||
;; custom-set-variables was added by Custom.
|
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
|
||||||
;; Your init file should contain only one such instance.
|
|
||||||
;; If there is more than one, they won't work right.
|
|
||||||
'(custom-safe-themes
|
|
||||||
(quote
|
|
||||||
("fa2b58bb98b62c3b8cf3b6f02f058ef7827a8e497125de0254f56e373abee088" default)))
|
|
||||||
'(package-selected-packages
|
|
||||||
(quote
|
|
||||||
(tide typescript-mode go-guru go-eldoc company-go go-mode lv reformatter transient graphql treepy insert-shebang fish-mode company-shell csv-mode all-the-icons memoize sql-indent company-auctex auctex-latexmk auctex evil-commentary flycheck-elm elm-mode flycheck-pos-tip pos-tip yaml-mode git-gutter-fringe+ git-gutter-fringe fringe-helper git-gutter+ git-gutter diff-hl web-mode web-beautify tagedit slim-mode scss-mode sass-mode rvm ruby-tools ruby-test-mode rubocop rspec-mode robe rbenv pug-mode projectile-rails rake inflections ob-elixir minitest livid-mode skewer-mode simple-httpd less-css-mode json-mode json-snatcher json-reformat js2-refactor multiple-cursors js2-mode js-doc helm-css-scss haml-mode flycheck-mix flycheck-credo flycheck feature-mode emmet-mode company-web web-completion-data company-tern dash-functional tern coffee-mode chruby bundler inf-ruby alchemist elixir-mode xterm-color unfill smeargle shell-pop reveal-in-osx-finder pbcopy osx-trash osx-dictionary orgit org-projectile org-category-capture org-present org-pomodoro alert log4e gntp org-mime org-download mwim multi-term mmm-mode markdown-toc markdown-mode magit-gitflow launchctl htmlize helm-gitignore helm-company helm-c-yasnippet gnuplot gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link gh-md fuzzy flyspell-correct-helm flyspell-correct evil-magit magit magit-popup git-commit ghub let-alist with-editor eshell-z eshell-prompt-extras esh-help company-statistics company auto-yasnippet yasnippet auto-dictionary ac-ispell auto-complete ws-butler winum which-key volatile-highlights vi-tilde-fringe uuidgen use-package toc-org spaceline powerline restart-emacs request rainbow-delimiters popwin persp-mode pcre2el paradox spinner org-plus-contrib org-bullets open-junk-file neotree move-text macrostep lorem-ipsum linum-relative link-hint indent-guide hydra hungry-delete hl-todo highlight-parentheses highlight-numbers parent-mode highlight-indentation helm-themes helm-swoop helm-projectile helm-mode-manager helm-make projectile pkg-info epl helm-flx helm-descbinds helm-ag google-translate golden-ratio flx-ido flx fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state smartparens evil-indent-plus evil-iedit-state iedit evil-exchange evil-escape evil-ediff evil-args evil-anzu anzu evil goto-chg undo-tree eval-sexp-fu highlight elisp-slime-nav dumb-jump f dash s diminish define-word column-enforce-mode clean-aindent-mode bind-map bind-key auto-highlight-symbol auto-compile packed aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line helm avy helm-core popup async))))
|
|
||||||
(custom-set-faces
|
|
||||||
;; custom-set-faces was added by Custom.
|
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
|
||||||
;; Your init file should contain only one such instance.
|
|
||||||
;; If there is more than one, they won't work right.
|
|
||||||
)
|
|
||||||
25
vimrc
25
vimrc
@@ -21,7 +21,7 @@ endif
|
|||||||
call plug#begin('~/.vim/bundle')
|
call plug#begin('~/.vim/bundle')
|
||||||
|
|
||||||
" Show git status in the gutter
|
" Show git status in the gutter
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'mhinz/vim-signify'
|
||||||
" Fuzzy file finder
|
" Fuzzy file finder
|
||||||
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
@@ -60,6 +60,11 @@ Plug 'altercation/vim-colors-solarized'
|
|||||||
Plug 'pangloss/vim-javascript'
|
Plug 'pangloss/vim-javascript'
|
||||||
Plug 'leafgarland/typescript-vim'
|
Plug 'leafgarland/typescript-vim'
|
||||||
Plug 'peitalin/vim-jsx-typescript'
|
Plug 'peitalin/vim-jsx-typescript'
|
||||||
|
" Autocompletion
|
||||||
|
Plug 'Shougo/deoplete.nvim'
|
||||||
|
Plug 'roxma/nvim-yarp'
|
||||||
|
Plug 'roxma/vim-hug-neovim-rpc'
|
||||||
|
let g:deoplete#enable_at_startup = 1
|
||||||
|
|
||||||
" Initialize plugin system
|
" Initialize plugin system
|
||||||
call plug#end()
|
call plug#end()
|
||||||
@@ -113,7 +118,7 @@ set expandtab
|
|||||||
|
|
||||||
" SET Font
|
" SET Font
|
||||||
" set guifont=Menlo\ Regular:h14
|
" set guifont=Menlo\ Regular:h14
|
||||||
set guifont=Source\ Code\ Pro\ for\ Powerline:h14 "make sure to escape the spaces in the name properly
|
set guifont=SauceCodePro\ Nerd\ Font\ Mono:h14 "make sure to escape the spaces in the name properly
|
||||||
|
|
||||||
" Show trailing spaces and highlight hard tabs
|
" Show trailing spaces and highlight hard tabs
|
||||||
set list listchars=tab:»·,trail:·
|
set list listchars=tab:»·,trail:·
|
||||||
@@ -185,6 +190,8 @@ let g:airline#extensions#hunks#non_zero_only = 1 " git gutter
|
|||||||
let g:airline#extensions#bufferline#enabled = 0
|
let g:airline#extensions#bufferline#enabled = 0
|
||||||
let g:airline#extensions#tabline#show_buffers = 0
|
let g:airline#extensions#tabline#show_buffers = 0
|
||||||
let g:airline_section_z = '%3p%% %#__accent_bold#%4l%#__restore__#:%3v'
|
let g:airline_section_z = '%3p%% %#__accent_bold#%4l%#__restore__#:%3v'
|
||||||
|
let g:airline_section_x = ''
|
||||||
|
let g:airline_section_y = ''
|
||||||
" let g:airline#extensions#tabline#fnamemod = ':t'
|
" let g:airline#extensions#tabline#fnamemod = ':t'
|
||||||
|
|
||||||
" NERDTreee show hidden files by default
|
" NERDTreee show hidden files by default
|
||||||
@@ -233,6 +240,7 @@ map <leader>ww :NERDTreeFocus<cr>
|
|||||||
" no <cr> at the end to be able to submit bookmark
|
" no <cr> at the end to be able to submit bookmark
|
||||||
map <leader>lo :NERDTree<SPACE>
|
map <leader>lo :NERDTree<SPACE>
|
||||||
map <leader>_ :UndotreeToggle<cr>
|
map <leader>_ :UndotreeToggle<cr>
|
||||||
|
map <leader>t :GitFiles<cr>
|
||||||
|
|
||||||
" Buffer switching with fzf
|
" Buffer switching with fzf
|
||||||
map <leader>b :Buffer<cr>
|
map <leader>b :Buffer<cr>
|
||||||
@@ -243,6 +251,9 @@ nmap <silent> gw "_yiw:s/\(\%#\w\+\)\(\_W\+\)\(\w\+\)/\3\2\1/<cr><c-o><c-l>
|
|||||||
" bind ag(the_silver_searcher) to ack
|
" bind ag(the_silver_searcher) to ack
|
||||||
let g:ackprg = 'ag --vimgrep'
|
let g:ackprg = 'ag --vimgrep'
|
||||||
|
|
||||||
|
" adjust vim-signify
|
||||||
|
set updatetime=1000
|
||||||
|
|
||||||
" ctrlsf.vim plugin options
|
" ctrlsf.vim plugin options
|
||||||
nmap <leader>f <Plug>CtrlSFPrompt
|
nmap <leader>f <Plug>CtrlSFPrompt
|
||||||
vmap <leader>F <Plug>CtrlSFVwordExec
|
vmap <leader>F <Plug>CtrlSFVwordExec
|
||||||
@@ -254,3 +265,13 @@ let g:ctrlsf_auto_focus = { "at": "done", "duration_less_than": 2000 }
|
|||||||
|
|
||||||
" use fuzzy finder
|
" use fuzzy finder
|
||||||
nnoremap <c-t> :GFiles -co --exclude-standard -- ':!:*.jpeg' ':!:*.jpg' ':!:*.pdf' ':!:*.png' ':!:*.svg' ':!:*.ttf' ':!:.*.woff' ':!:.*.woff2'<CR>
|
nnoremap <c-t> :GFiles -co --exclude-standard -- ':!:*.jpeg' ':!:*.jpg' ':!:*.pdf' ':!:*.png' ':!:*.svg' ':!:*.ttf' ':!:.*.woff' ':!:.*.woff2'<CR>
|
||||||
|
|
||||||
|
" auto complete
|
||||||
|
function! CleverTab()
|
||||||
|
if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$'
|
||||||
|
return "\<Tab>"
|
||||||
|
else
|
||||||
|
return "\<C-N>"
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
inoremap <Tab> <C-R>=CleverTab()<CR>
|
||||||
|
|||||||
Reference in New Issue
Block a user