commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
ecdeaea6b0db9074b8444a50a7087df8e24eb9e7 | functions/z.fish | functions/z.fish | function z -d "jump around"
set -lx Z_SCRIPT_PATH (dirname (status -f))/../z/z.sh
# Start a Bash process, source z, run the _z function, and capture the working directory and exit status.
bash -c '
source $Z_SCRIPT_PATH
_z "$@" 2>&1
Z_STATUS=$?
echo "$PWD" >&2
exit $Z_STATUS
' bash $argv ^|... | function z -d "jump around"
set -lx Z_SCRIPT_PATH (dirname (status -f))/../z/z.sh
# Start a Bash process, source z, run the _z function, and capture the working directory and exit status.
bash -c '
source $Z_SCRIPT_PATH
_z "$@" 2>&1
Z_STATUS=$?
echo "$PWD" >&2
exit $Z_STATUS
' bash $argv 2>... | Make stderr redirection compatible with Fish 3.0. | Make stderr redirection compatible with Fish 3.0.
| fish | mit | oh-my-fish/plugin-z,oh-my-fish/pkg-z |
6d7f33fdaf5f85967416515a420900baedb5aae0 | fish/config.fish | fish/config.fish | # Turn off greeting on start
set -g -x fish_greeting ''
# Environment Variables
set -x EDITOR nvim
set -x NVIM_TUI_ENABLE_TRUE_COLOR 1
set -x GOPATH "$HOME/gocode"
# Aliases
alias rdp "xfreerdp +compression +clipboard +fonts /home-drive /cert-ignore /size:1400x1050"
source ~/.config/fish/fish_prompt.fish
# Allow ex... | # Turn off greeting on start
set -g -x fish_greeting ''
# Environment Variables
set -x EDITOR nvim
set -x NVIM_TUI_ENABLE_TRUE_COLOR 1
set -x GOPATH "$HOME/gocode"
# Aliases
alias rdp "xfreerdp +compression +clipboard +fonts /home-drive /cert-ignore /size:1400x1050"
alias rsyncg "rsync -a --exclude='.git/' --exclude-... | Add alias to sync a git project | Add alias to sync a git project
It ignores anything the .git folder and anything in .gitignore.
| fish | unlicense | KibaFox/dotfiles,KibaFox/dotfiles,KibaFox/dotfiles,KibaFox/dotfiles,KibaFox/dotfiles |
97b30dc97f05101b4a7bb7a59a6e9a04fc7d50bd | functions/__fisher_path_make.fish | functions/__fisher_path_make.fish | function __fisher_path_make -a path
if test ! -s $path/Makefile -o ! -s $path/makefile
return
end
pushd $path
set -e argv[1]
if not make $argv
popd
return 1
end
popd
end
| function __fisher_path_make -a path
if test ! -s $path/Makefile -a ! -s $path/makefile
return
end
pushd $path
set -e argv[1]
if not make $argv
popd
return 1
end
popd
end
| Fix bug introduced in 83b84b causing make to not get called. | Fix bug introduced in 83b84b causing make to not get called.
| fish | mit | fisherman/fisherman |
24d8976e1d90ed54cca6a863a830c6a54294a68c | fish/modules/node/init.fish | fish/modules/node/init.fish | #
# Loads the Node Version Manager
#
# Return if requirements are not found.
if not type -q node
exit
end
# Load package manager installed NVM into the shell session.
if type -q brew; and test -f (brew --prefix nvm)/nvm.sh
mkdir -p "$HOME/.nvm"
and set -x NVM_DIR "$HOME/.nvm"
function nvm
bass source (b... | #
# Loads the Node Version Manager
#
# Return if requirements are not found.
if not type -q node; and not brew list | grep -q "nvm"
exit
end
# Load package manager installed NVM into the shell session.
if type -q brew; and test -f (brew --prefix nvm)/nvm.sh
mkdir -p "$HOME/.nvm"
and set -x NVM_DIR "$HOME/.nvm"... | Change node setup script requirements | Change node setup script requirements
| fish | unlicense | guerrero/dotfiles |
9c92fb0701246b5be7f2206b5a6817389eb8bdcd | fish/functions/fish_right_prompt.fish | fish/functions/fish_right_prompt.fish | function fish_right_prompt
echo -n -s (set_color $fish_color_autosuggestion) (date +"%Y-%m-%d %I:%M:%S%p") (set_color reset)
end
| function fish_right_prompt
end
| Remove date from right prompt | Remove date from right prompt
| fish | mit | aphistic/dotfiles,aphistic/dotfiles |
db5bf4398205b11c58fc3bb062720f66bbbb49b8 | test/helper.fish | test/helper.fish | function context
echo " $argv"
end
function it
echo -n " $argv..."
end
function pass
set_color green
echo PASS
set_color normal
end
function fail
set_color red
echo FAIL
set_color normal
end
function stub
set -l out $argv
set -l cmd $argv[1]
set -e out[1]
eval "function $cmd; echo $out; en... | function context
echo " $argv"
end
function it
echo -n " $argv..."
end
function pass
set_color green
echo PASS
set_color normal
end
function fail
set_color red
echo FAIL
set_color normal
end
function stub
set -l out $argv
set -l cmd $argv[1]
set -e out[1]
eval "function $cmd; echo $out; en... | Use $PWD instead of (pwd) | Use $PWD instead of (pwd)
| fish | mit | terlar/fry |
f07d855227f9df6531bf74c992edc48c6abf65bf | src/install.fish | src/install.fish | set source_dir $argv[1]
if not contains $source_dir $fish_function_path
set --universal fish_function_path $fish_function_path $source_dir
printf "+ %s\n" $source_dir
else
printf "- %s (already installed)\n" $source_dir
end
| set source_dir $argv[1]
if not contains $source_dir $fish_function_path
set --universal fish_function_path $source_dir $fish_function_path
printf "+ %s\n" $source_dir
else
printf "- %s (already installed)\n" $source_dir
end
| Add new directories to the top of the list | Add new directories to the top of the list
| fish | mit | eush77/fish-install,eush77/fish-install |
f71fe142c3ef1c9447b70fc80f4375eb942b941d | functions/print.fish | functions/print.fish | function print
trace (status --current-filename) $argv
for arg in $argv
if echo $arg | grep -qE '^-+'
set opts $opts (echo $arg | sed -E 's/^-+//')
else
set args $args $arg
end
end
set color normal
for opt in $opts
switch $opt
ca... | function print
trace (status --current-filename) $argv
for arg in $argv
if echo $arg | grep -qE '^-+'
set opts $opts (echo $arg | sed -E 's/^-+//')
else
set args $args $arg
end
end
set color normal
for opt in $opts
switch $opt
ca... | Print shoud return non-zero on failure | Print shoud return non-zero on failure
| fish | mit | colstrom/shellops-aws,colstrom/piranha |
77c2367720d8f1d15edbe206a3d196b8a519f538 | fish/conf.d/01-config.fish | fish/conf.d/01-config.fish | if not status --is-interactive
exit
end
# Ensure directories exist
if not test -d "$XDG_CONFIG_HOME"
mkdir -p "$XDG_CONFIG_HOME"
end
if not test -d "$XDG_DATA_HOME"
mkdir -p "$XDG_DATA_HOME"
end
# colours
set -gx fish_color_autosuggestion "brblack"
set -gx fish_color_command "purple"
set -gx fish_color_co... | if not status --is-interactive
exit
end
# colours
set -gx fish_color_autosuggestion brblack
set -gx fish_color_command purple
set -gx fish_color_comment yellow
set -gx fish_color_end purple
set -gx fish_color_error red
set -gx fish_color_param blue
set -gx fish_color_quote green
set -gx fish_color_redirection cyan... | Remove unused mkdir from config | Remove unused mkdir from config
| fish | mit | Rypac/dotfiles,Rypac/dotfiles,Rypac/dotfiles |
0c3569683df887c8a11752884ae83d657d57392c | fish/functions/fish_prompt.fish | fish/functions/fish_prompt.fish | function fish_prompt --description 'Write out the prompt'
set -l last_status $status
# User
set_color $fish_color_user
echo -n (whoami)
set_color normal
echo -n ' in '
# PWD
set_color $fish_color_cwd
# echo -n (prompt_pwd)
echo -n (pwd)
set_color normal
__terlar_git_prompt
echo
if not te... | function fish_prompt --description 'Write out the prompt'
set -l last_status $status
# User
set_color $fish_color_user
echo -n (whoami)
set_color normal
echo -n ' in '
# PWD
set_color $fish_color_cwd
# echo -n (prompt_pwd)
echo -n (pwd | sed -e "s|$HOME|~|")
set_color normal
__terlar_git_prom... | Use tilde for home directory in fish prompt | Use tilde for home directory in fish prompt
| fish | mit | spinningarrow/.files,spinningarrow/.files |
1c83bb39d76e52f8a713bc4ea66cf6267f75019d | key_bindings.fish | key_bindings.fish | set -q FZF_LEGACY_KEYBINDINGS
or set -l FZF_LEGACY_KEYBINDINGS 1
if test "$FZF_LEGACY_KEYBINDINGS" -eq 1
bind \ct '__fzf_find_file'
bind \cr '__fzf_reverse_isearch'
bind \cx '__fzf_find_and_execute'
bind \ec '__fzf_cd'
bind \eC '__fzf_cd_with_hidden'
if bind -M insert >/dev/null ^/dev/null
... | set -q FZF_LEGACY_KEYBINDINGS
or set -l FZF_LEGACY_KEYBINDINGS 1
if test "$FZF_LEGACY_KEYBINDINGS" -eq 1
bind \ct '__fzf_find_file'
bind \cr '__fzf_reverse_isearch'
bind \cx '__fzf_find_and_execute'
bind \ec '__fzf_cd'
bind \eC '__fzf_cd_with_hidden'
if bind -M insert >/dev/null ^/dev/null
... | Remove __fzf_cd bind conflict with forward-delete | Remove __fzf_cd bind conflict with forward-delete
Alt-d is used by fish's 'kill-word' in fish_default_key_bindings and
fish_hybrid_key_bindings. This changes __fzf_cd and __fzf_cd_with_hidden
to use Alt-o and Alt-O (o for Open) instead.
| fish | mit | fisherman/fzf |
7cbc68261e80e7353cd01a3b51749e5908b00ba9 | fish/.config/fish/functions/maintenance.fish | fish/.config/fish/functions/maintenance.fish | function maintenance
echo "Failed systemd services..."
sudo systemctl --failed
echo "Errors in logfiles..."
sudo journalctl -p 3 -xb --no-pager
echo "Removing orphan packages..."
sudo pacman -Rns (pacman -Qtdq)
echo "Clear pacman cache..."
sudo paccache -r
sudo paccache -ruk0
end
| function maintenance
echo "Failed systemd services..."
sudo systemctl --failed
echo "Recent errors in logfiles (journalctl -p 3 -xb)..."
sudo journalctl -p 3 -xb --no-pager | tail -15
echo "Removing orphan packages..."
sudo pacman -Rns (pacman -Qtdq)
echo "Clear pacman cache..."
sudo paccache -r
su... | Cut down the journal error lines | Cut down the journal error lines
| fish | unlicense | Olical/dotfiles |
c95b8953f3400d8d87bcdd3e93d672732242e539 | fish/config.fish | fish/config.fish | set -x TERM screen-256color
set -x EDITOR nano
set PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1
alias p project
| set -x TERM screen-256color
set -x EDITOR nano
set PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1
set PATH /usr/local/share/npm/bin $PATH
alias p project
| Set fish PATH to include NPM binaries | Set fish PATH to include NPM binaries | fish | mit | andrewgarner/config,andrewgarner/dotfiles |
13dd5104b88038f6ffffc0c520aec26e2365eb5f | conf.d/__fasd_run.fish | conf.d/__fasd_run.fish | function __fasd_run -e fish_preexec -d "fasd takes record of the directories changed into"
command fasd --proc (command fasd --sanitize "$argv") > "/dev/null" 2>&1 &
end
| function __fasd_run -e fish_preexec -d "fasd takes record of the directories changed into"
command fasd --proc (command fasd --sanitize "$argv" | tr -s ' ' \n) > "/dev/null" 2>&1 &
end
| Add argument separation for fasd preexec event | Add argument separation for fasd preexec event
Stolen from https://github.com/oh-my-fish/plugin-fasd/pull/10
| fish | mit | fishgretel/fasd |
bc4fc5f6899c86937c9d7d9a9446732c5c19db9f | init.fish | init.fish | function init --on-event init_gem
if test -n "$GEM_ROOT"
set -gx GEM_HOME $GEM_ROOT
if not contains $GEM_ROOT/bin $PATH
set -x PATH $GEM_ROOT/bin $PATH
end
end
end
| if test -n "$GEM_ROOT"
set -gx GEM_HOME $GEM_ROOT
if not contains $GEM_ROOT/bin $PATH
set -x PATH $GEM_ROOT/bin $PATH
end
end
| Initialize immediately, rather than waiting for an event. | Initialize immediately, rather than waiting for an event.
| fish | mit | oh-my-fish/plugin-gem |
026ad31cd27521e53485a2888be7e0bbffcb5864 | fish/functions/__fish_prompt_timing.fish | fish/functions/__fish_prompt_timing.fish | function __fish_prompt_timing
if set -q CMD_DURATION
set -l seconds ''
set -l minutes ''
set -l hours ''
set -l days ''
set -l cmd_duration (math $CMD_DURATION/1000)
if test $cmd_duration -gt 0
set seconds (math $cmd_duration%68400%3600%60)'s'
... | function __fish_prompt_timing
if set -q CMD_DURATION
set -l seconds ''
set -l minutes ''
set -l hours ''
set -l days ''
set -l cmd_duration (math $CMD_DURATION/1000)
if test $cmd_duration -gt 0
set seconds (math $cmd_duration%68400%3600%60)'s'
... | Remove whitespace from timing display | fish: Remove whitespace from timing display
| fish | mit | sebastianmarkow/dotfiles |
dab4224c63ce6d3237e7071d5c172127949ac847 | .config/fish/conf.d/02-env.fish | .config/fish/conf.d/02-env.fish | # Set environment variables.
set -x GOPATH "$XDG_DATA_HOME/go"
set -x GOROOT "/usr/lib/go"
set -x EDITOR "nvim"
set -x BROWSER "firefox"
set -x STEAM_RUNTIME 1
# Japanese keyboard.
set -x XMODIFIERS @im=fcitx
set -x GTK_IM_MODULE fcitx
set -x QT_IM_MODULE fcitx
#... | # Set environment variables.
set -x GOPATH "$XDG_DATA_HOME/go"
set -x GOROOT "/usr/lib/go"
set -x EDITOR "nvim"
set -x BROWSER "firefox"
set -x STEAM_RUNTIME 1
set -x MANPAGER 'nvim +Man!'
# Japanese keyboard.
set -x XMODIFIERS @im=fcitx
set -x GTK_IM_MODULE fcitx
s... | Use nvim as default MANPAGER | fish: Use nvim as default MANPAGER
| fish | unlicense | karlek/dotfiles,karlek/dotfiles |
93d40db2b62c59753c4e08f64e6efa3e2bde2585 | functions/fonts.install.fish | functions/fonts.install.fish | function fonts.install -a name
if not contains $name (__fonts.repo.list)
echo "Font $name not available for installing"
return 1
end
if set tmpdir (mktemp -d "/tmp/font-$name.XXXXXX" ^&-)
if wget -P $tmpdir -q --show-progress -- (__fonts.repo.urls "$name")
echo 'Fonts downloaded with success'
... | function fonts.install -a name
if not contains $name (__fonts.repo.list)
echo "Font $name not available for installing"
return 1
end
if set tmpdir (mktemp -d "/tmp/font-$name.XXXXXX" ^&-)
if wget -P $tmpdir -q --show-progress -- (__fonts.repo.urls "$name")
echo 'Fonts downloaded with success'
... | Remove font config file on error | Remove font config file on error
| fish | mit | derekstavis/plugin-fonts |
5c12a8cfebc49363fe34e2879cc0410e618aebe1 | fish/.config/fish/functions/toggle-screen.fish | fish/.config/fish/functions/toggle-screen.fish | function toggle-screen
set -l IN "eDP1"
set -l EXT "DP1"
if xrandr | grep "$EXT disconnected"
xrandr --output $IN --auto --output $EXT --off
else
xrandr --output $IN --auto --primary --output $EXT --auto --above $IN
end
end
| function toggle-screen
set -l IN "eDP1"
set -l EXT "DP1"
if xrandr | grep "$EXT disconnected"
xrandr --output $IN --primary --auto --output $EXT --off
else
xrandr --output $IN --auto --output $EXT --primary --auto --above $IN
end
end
| Make big screen primary if plugged in | Make big screen primary if plugged in
| fish | unlicense | Wolfy87/dotfiles,Wolfy87/dotfiles,Olical/dotfiles |
99268f8d7a6d476874a7a50840c6675d83753ac3 | test/vimcolor.fish | test/vimcolor.fish | test "description"
-n "expression"
end
| set -l old_fish_color_end $fish_color_end
set -l old_fish_color_match $fish_color_match
set -l old_fish_color_escape $fish_color_escape
set -l old_fish_color_selection $fish_color_selection
vimcolor default >/dev/null ^/dev/null
test "fish_color_end"
"$old_fish_color_end" = "$fish_color_end"
end
test "fish_color... | Add tests for the default colorscheme | Add tests for the default colorscheme
| fish | mit | ryotako/fish-vimcolor |
1e8e70977fa0e3cd2786b93365a42a84ebd95cdf | config/fish/config.fish | config/fish/config.fish | fish_vi_key_bindings
for word in "$HOME/"{bin,.local/bin,go/bin,node_modules/.bin}
if not contains $word $PATH
set PATH $word $PATH
end
end
set -x GOPATH "$HOME/go"
set fish_complete_path "$HOME/git/github.fish-pip-completion" $fish_complete_path
switch (uname)
case Linux
source /usr/sha... | fish_vi_key_bindings
for word in "$HOME/"{bin,.local/bin,go/bin,node_modules/.bin,.gem/ruby/*/bin}
if not contains $word $PATH
set PATH $word $PATH
end
end
set -x GOPATH "$HOME/go"
set fish_complete_path "$HOME/git/github.fish-pip-completion" $fish_complete_path
switch (uname)
case Linux
... | Add ruby user gem bin | feat: Add ruby user gem bin
| fish | mit | e4r7hbug/dotfiles,e4r7hbug/dotfiles |
72fadb6cce64e688c9dcaa378659fb13b5513ca2 | fish/functions/ip.fish | fish/functions/ip.fish | function ip
set wan (curl -s http://ipecho.net/plain)
set lan (ipconfig getifaddr en0)
printf '%sLAN : %s%s%s\n' (set_color red) (set_color cyan) $lan (set_color normal)
printf '%sWAN : %s%s%s\n' (set_color red) (set_color green) $wan (set_color normal)
end
| Add fish function to list IP addresses | Add fish function to list IP addresses | fish | mit | andrewgarner/dotfiles,andrewgarner/config | |
1137ba1aab90c7b000a87979adb2b3e407979e5f | fish/functions/osx-update.fish | fish/functions/osx-update.fish | function osx-update --description "Update Homebrew, vim plugins, tmux plugins, rvm, npm, OSX"
# homebrew
/usr/local/dotfiles/brew.sh
# Oh my fish! update
omf update
# vim plugins
vim +PluginClean +qall
vim +PluginUpdate +qall
# tmux plugin manager
~/.tmux/plugins/tpm/bin/clean_plugins
~/.tmux/plu... | function osx-update --description "Update Homebrew, vim plugins, tmux plugins, rvm, npm, OSX"
# homebrew
/usr/local/dotfiles/brew.sh
# Oh my fish! update
omf update
# vim plugins
vim +PluginClean +qall
vim +PluginUpdate +qall
vim +GoInstallBinaries +qall
# tmux plugin manager
~/.tmux/plugins/tpm/... | Install golang binaries for vim-go | Install golang binaries for vim-go
| fish | mit | barrettclark/dotfiles,barrettclark/dotfiles |
19166d02484b25270720da1fec13fdfa524ee73a | fish/.config/fish/functions/fzf_configure_bindings.fish | fish/.config/fish/functions/fzf_configure_bindings.fish | # Always installs bindings for insert and default mode for simplicity and b/c it has almost no side-effect
# https://gitter.im/fish-shell/fish-shell?at=60a55915ee77a74d685fa6b1
function fzf_configure_bindings --description "Installs the default key bindings for fzf.fish with user overrides passed as options."
# no ... | Add fish shell key bindings for fzf | Add fish shell key bindings for fzf
| fish | mit | nitul1991/dotfiles,nitul1991/dotfiles | |
9eae1630a6a2fa873f2ebce4c4620842521c5677 | fish/.config/fish/config.fish | fish/.config/fish/config.fish | # Set path
set -x PATH $HOME/bin $PATH
# Include abbreviations
source $HOME/.config/fish/abbreviations.fish
# Initialise autojump
[ -f /usr/local/share/autojump/autojump.fish ]; and . /usr/local/share/autojump/autojump.fish
# Initialize commajump
source ~/.config/fish/functions/__commajump_add.fish
# Activate chrub... | # Set path
set -x PATH $HOME/bin $PATH
# Include abbreviations
source $HOME/.config/fish/abbreviations.fish
# Initialise autojump
[ -f /usr/local/share/autojump/autojump.fish ]; and source /usr/local/share/autojump/autojump.fish
# Initialize commajump
source ~/.config/fish/functions/__commajump_add.fish
# Activate ... | Check if chruby is installed befoure sourcing | [fish] Check if chruby is installed befoure sourcing
| fish | mit | spinningarrow/.files,spinningarrow/.files |
25d45b29c55458305a79425bb5cba4d33f31eeed | oh-my-fish.fish | oh-my-fish.fish | # Set fish_custom to the path where your custom config files
# and plugins exist, or use the default custom instead.
if not set -q fish_custom
set -g fish_custom $fish_path/custom
end
# Extract user defined functions from path and prepend later to
# avoid collisions with oh-my-fish internal functions and allow
# use... | # Set fish_custom to the path where your custom config files
# and plugins exist, or use the default custom instead.
if not set -q fish_custom
set -g fish_custom $fish_path/custom
end
# Extract user defined functions from path and prepend later to
# avoid collisions with oh-my-fish internal functions and allow
# use... | Make sure to exit with 0 of 1 when reloading the framework | Make sure to exit with 0 of 1 when reloading the framework
| fish | mit | scorphus/oh-my-fish,chgu82837/oh-my-fish,scorphus/oh-my-fish-screwed,hfs/oh-my-fish,jeremiejig/oh-my-fish,wfscheper/oh-my-fish,bsott/oh-my-fish,scorphus/oh-my-fish,lfiolhais/oh-my-fish,l371559739/oh-my-fish,cap10morgan/oh-my-fish,lfiolhais/oh-my-fish,MaicoTimmerman/oh-my-fish,bbatsche/oh-my-fish,jeremiejig/oh-my-fish,o... |
05e8b8ba0e6395af13a9eef65fd84865622f59be | .config/fish/abbrs.fish | .config/fish/abbrs.fish | abbr -a g 'git'
abbr -a gd 'git diff'
abbr -a gco 'git checkout'
abbr -a vv 'git branches -vv'
abbr -a chex 'chmod +x'
abbr -a md 'mkdir -p'
abbr -a rf 'rm -rfIv'
abbr -a rl 'source ~/.config/fish/config.fish'
abbr -a s 'ls'
abbr -a cinnamon-restart='cinnamon –replace -d :0.0> /dev/null 2>&1 &'
abbr -a unset 'set --er... | # git
abbr -a g 'git'
abbr -a gd 'git diff'
abbr -a gco 'git checkout'
abbr -a vv 'git branches -vv'
abbr -a chex 'chmod +x'
abbr -a md 'mkdir -p'
abbr -a n 'nvim'
abbr -a rf 'rm -rfv'
abbr -a rl 'source ~/.config/fish/config.fish'
abbr -a s 'ls'
abbr -a cinnamon-restart='cinnamon –replace -d :0.0> /dev/null 2>&1 &'
a... | Add abbr for nvim in fish | Add abbr for nvim in fish
| fish | mit | aawc/dotfiles,aawc/dotfiles |
8d71a923aa15c30322479263f930dedc440b0bad | .config/fish/abbrs.fish | .config/fish/abbrs.fish | abbr -a g 'git'
abbr -a gco 'git checkout'
abbr -a rf 'rm -rfI'
abbr -a s 'ls'
abbr -a vv 'git branches -vv'
| abbr -a g 'git'
abbr -a gco 'git checkout'
abbr -a rf 'rm -rfIv'
abbr -a rl 'source ~/.config/fish/config.fish'
abbr -a s 'ls'
abbr -a vv 'git branches -vv'
| Add abbr for reloading config and verbose rf | Add abbr for reloading config and verbose rf
| fish | mit | aawc/dotfiles,aawc/dotfiles |
9e6689ab821ddec3f6fc74b21451802b254ee66a | .config/fish/functions/verifySHA256.fish | .config/fish/functions/verifySHA256.fish | function verifySHA256 --argument-names $shafile --description "Verify a SHA256 checksum from file"
echo (cat $shafile.sha256)" $shafile" | shasum -a 256 -c
end
| Add fish function to verify a sha256 sum | Add fish function to verify a sha256 sum
| fish | mit | brentbrownfield/dotfiles | |
3b3035acd8f6fa3f393ce63998c4c9aa2b1a0620 | fish/config.fish | fish/config.fish | #!/usr/bin/env fish
set -x DOTROOT "$HOME/.dotfiles"
for file in (find $DOTROOT -maxdepth 2 -name "*.fish" -not -path "$DOTROOT/fish/*.fish")
source $file
end
| #!/usr/bin/env fish
set -x DOTROOT "$HOME/.dotfiles"
for file in (find $DOTROOT -maxdepth 2 -name "*.fish" -not -path "$DOTROOT/fish/*.fish")
source $file
end
# Append bin to the path list.
set PATH $PATH $DOTROOT/bin
| Add DOTROOT/bin to the path list | Add DOTROOT/bin to the path list
| fish | mit | buo/dotfiles,buo/dotfiles |
7a86af4d642b30753606604676810afdac04ef4a | config/fish/aliases.fish | config/fish/aliases.fish | set LS_COLORS dxfxcxdxbxegedabagacad
function serve
if test (count $argv) -ge 1
if python -c 'import sys; sys.exit(sys.version_info[0] != 3)'
/bin/sh -c "(cd $argv[1] && python -m http.server)"
else
/bin/sh -c "(cd $argv[1] && python -m SimpleHTTPServer)"
e... | set LS_COLORS dxfxcxdxbxegedabagacad
function serve
if test (count $argv) -ge 1
if python -c 'import sys; sys.exit(sys.version_info[0] != 3)'
/bin/sh -c "(cd $argv[1] && python -m http.server)"
else
/bin/sh -c "(cd $argv[1] && python -m SimpleHTTPServer)"
e... | Add alias for IPython notebook. | Add alias for IPython notebook.
| fish | bsd-3-clause | jonathanchu/dotfiles,jonathanchu/dotfiles,jonathanchu/dotfiles |
2a3c2014dc0d409d8d5ae0f1be073cb512ef942e | config.fish | config.fish | function __sk_history
history | sk --tiebreak index -q (commandline) | read -l command
if test -n "$command"
commandline -rb (printf $command)
end
commandline -f repaint
end
set fish_user_paths ~/.cargo/bin /usr/local/bin
function fish_user_key_bindings
command --search sk >/dev/null; an... | function __sk_history
set -l query (commandline)
set -l command
if test -n $query
history --search $query | sk --exact --tiebreak index -q $query | read command
else
history | sk --exact --tiebreak index | read command
end
if test -n "$command"
commandline -rb (printf $... | Use --exact for skim reverse search integration | Use --exact for skim reverse search integration
| fish | mit | lnicola/dotfiles,lnicola/dotfiles,GrayShade/dotfiles |
3804b6af007c64d30a3e6b7056672964410d37b3 | functions/svn/vcs.touched.fish | functions/svn/vcs.touched.fish | function vcs.touched
count (command svn status 2>/dev/null | grep -Ev 'Performing|$\s*^' | cut -c1) >/dev/null ^&1
end
| function vcs.touched
count (command svn status 2>/dev/null | grep -Ev 'Performing|$\s*^' | cut -c1) >/dev/null 2>&1
end
| Replace remaining ^ stderr redirection with 2> | Replace remaining ^ stderr redirection with 2>
Ref.: 5c17aaf
| fish | mit | oh-my-fish/plugin-vcs |
0f1679a11d4dd82a51aefcc0f56dcd19d9f4f05d | fish/functions/rclone-install-latest.fish | fish/functions/rclone-install-latest.fish | function rclone-install-latest -d "Install latest version of rclone"
unzip -oj (curl -s https://downloads.rclone.org/rclone-current-osx-amd64.zip | psub) -d $HOME/local/bin '*/rclone'
unzip -oj (curl -s https://downloads.rclone.org/rclone-current-osx-amd64.zip | psub) -d $HOME/local/share/man/man1 '*/rclone.1'
en... | Add script to install latest version of rclone | Add script to install latest version of rclone
| fish | apache-2.0 | ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles | |
7c2b6120b9d6283397ae0cdde5be0a712024cdf9 | functions/app-update.fish | functions/app-update.fish | function app-update --description 'Update with Homebrew and Nodejs'
set os (uname)
if test $os = 'Linux'
if type -q apt
log info 'Updating Advanced Package Tool (APT) packages...'
sudo apt update
sudo apt dist-upgrade -y
sudo apt upgrade -y
sudo apt autoremove -y
end
end
... | function app-update --description 'Update with Homebrew and Nodejs'
set os (uname)
if test $os = 'Linux'
if type -q apt
log info 'Updating Advanced Package Tool (APT) packages...'
sudo apt update
sudo apt dist-upgrade -y
sudo apt upgrade -y
sudo apt autoremove -y
end
end
... | Remove deprecate parameter `--cleanup` for `brew upgrade` | Remove deprecate parameter `--cleanup` for `brew upgrade`
| fish | mit | masonwan/fish-config,masonwan/fish-config |
60d91b4df9ffcbffd5b2b8b5bc1ec42b8bea1bfb | .config/fish/functions/apv.fish | .config/fish/functions/apv.fish | function apv \
--description='Quick nav to ApplePlatformVersions dir.'
nav ~/dev/markdown/ApplePlatformVersions
pull
lg10
end
| function apv \
--description='Quick nav to ApplePlatformVersions dir.'
set -l apv_dir ~/dev/ApplePlatformVersions
if not test -d $apv_dir
nav ~/dev
clone git@github.com:phatblat/ApplePlatformVersions.git
else
nav $apv_dir
pull
end
lg10
end
| Clone APV when not present. Moved to ~/dev | Clone APV when not present. Moved to ~/dev
| fish | mit | phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles |
0447aba73d1c90015431fc646d655f17b99d6346 | fish/functions/postprocess-torrent.fish | fish/functions/postprocess-torrent.fish | function postprocess-torrent
set -l tordir $argv[1]
set -l heredir (pwd)
printf "Post-Processing: %s\n" $tordir
if not test -d "$tordir"
printf "Unable to find torrent directory: %s\n" $tordir
return 1
end
filebot \
-script fn:amc \
--output "/Volumes/estore1/Media Drive/Sorted" \
--a... | Add a function for post-processing stuff | Add a function for post-processing stuff
| fish | apache-2.0 | ianchesal/dotfiles,ianchesal/dotfiles,ianchesal/dotfiles,ianchesal/dotfiles | |
f404a095a5a3edb6fe7eb2e87f6775a6e6eaf960 | fish/config.fish | fish/config.fish |
set --global --export PROFILE (status --current-filename)
set --global --export SCRIPT_DIR (dirname (dirname $PROFILE))
set --global --export SOURCE_DIR (dirname $SCRIPT_DIR)
if not contains $SCRIPT_DIR/fish/functions $fish_function_path
set fish_function_path $SCRIPT_DIR/fish/functions $fish_function_path
end
i... |
set --global --export PROFILE (status --current-filename)
set --global --export SCRIPT_DIR (dirname (dirname $PROFILE))
set --global --export SOURCE_DIR (dirname $SCRIPT_DIR)
if not contains $SCRIPT_DIR/fish/functions $fish_function_path
set fish_function_path $SCRIPT_DIR/fish/functions $fish_function_path
end
i... | Standardize on long option names and clean up debug variable name | Standardize on long option names and clean up debug variable name
| fish | mit | lee-dohm/environment,lee-dohm/environment,lee-dohm/environment |
b31827b7d4127d181d107bbb86ee49d73606d928 | .config/fish/functions/ffind.fish | .config/fish/functions/ffind.fish | # Note: If query contains spaces, make sure to escape them manually.
function ffind -d "Searches recursively from cwd for files containing the query"
find . -iname "*"$argv"*" ^/dev/null
end
| Add function for easily finding files | Add function for easily finding files
| fish | mit | dideler/dotfiles,dideler/dotfiles | |
924ddfef684e5102c700964be3e9d76119b7488b | config/fish/init.fish | config/fish/init.fish | # search vendored functions last
set fish_function_path $fish_function_path ~/.config/fish/vendor/functions
# shell init (core environmental variables)
if status --is-login
# load system profile
test -f /etc/profile
and bass source /etc/profile
# build our personal path
path_prepend /usr/local/opt/coreuti... | # search vendored functions last
set fish_function_path $fish_function_path ~/.config/fish/vendor/functions
# shell init (core environmental variables)
if status --is-login
# load system profile
test -f /etc/profile
and bass source /etc/profile
# build our personal path
path_prepend /usr/local/opt/coreuti... | Remove explicit /usr/local/bin in path | Remove explicit /usr/local/bin in path
| fish | mit | neersighted/dotfiles,neersighted/dotfiles,neersighted/dotfiles |
3f5cd05043e3dc276a2580751fcfad68f1bf69cd | home/.config/fish/conf.d/00_command.fish | home/.config/fish/conf.d/00_command.fish | # fzf : exact match, custom layout
set --export FZF_DEFAULT_OPTS '--exact --inline-info --reverse --height=10'
# ls : show all, colorize, sort by version number
if command -sq gls
alias ls 'gls -A --sort=version'
else
alias ls 'ls -A'
end
# cp : show files
alias cp 'cp -v'
# mv : show files
alias mv 'mv -v'
... | # fzf : exact match, custom layout
set --export FZF_DEFAULT_OPTS '--exact --inline-info --reverse --height=10'
# ls : show all, colorize, sort by version number
if command -sq gls
alias ls 'gls -A --sort=version'
else
alias ls 'ls -A'
end
# cp : show files
alias cp 'cp -v'
# mv : show files
alias mv 'mv -v'
... | Use code command for EDITOR | Use code command for EDITOR
| fish | apache-2.0 | usami-k/dotfiles,usami-k/dotfiles |
ed304711a895fec5fb46e5fbdc98bdd59399c409 | fish/.config/fish/conf.d/aliases.fish | fish/.config/fish/conf.d/aliases.fish | # thefuck
if type -q thefuck
thefuck --alias | source
end
# allows sudo to use aliases
function sudo
command sudo -sE $argv
end
# better ls
function ls
command ls -hF --color=auto $argv
end
function la
ls -A $argv
end
# because I like pain
function yay
command yay --noconfirm $argv
end
# symlink by defau... | # thefuck
if type -q thefuck
thefuck --alias | source
end
# allows sudo to use aliases
function sudo
command sudo -sE $argv
end
# better ls
function ls
command ls -hF --color=auto $argv
end
function la
ls -A $argv
end
# because I like pain
function yay
command yay --noconfirm $argv
end
# symlink by defau... | Remove unnecessary 'command' from mkcd | Remove unnecessary 'command' from mkcd
| fish | bsd-3-clause | mpcsh/dotfiles |
3c02e17c7ad8ef561cf19f6e9326aedc4c359a38 | configs/config/fish/config.fish | configs/config/fish/config.fish | set -x PATH $PATH $HOME/.dotfiles/scripts
# tmux
if status --is-interactive
if test -z (echo $TMUX)
tmux-status
if test $status -eq 0
exec tmux
end
end
end
# aliases
alias vim 'nvim'
alias tmux-reload 'tmux source-file ~/.tmux.conf'
alias git 'hub'
alias bnode 'babel-node'
# settings
set -x EDIT... | set -x PATH $PATH $HOME/.dotfiles/scripts
# tmux
if status --is-interactive
if test -z (echo $TMUX)
tmux-status
if test $status -eq 0
exec tmux
end
end
end
# aliases
alias vim 'nvim'
alias tmux-reload 'tmux source-file ~/.tmux.conf'
alias git 'hub'
alias bnode 'babel-node'
# settings
set -x EDIT... | Add language setting for fish shell | Add language setting for fish shell
| fish | mit | noraesae/dotfiles,noraesae/dotfiles,noraesae/dotfiles |
05a86f0b1ddbc6570fa4842fa83dc1836fed44a0 | functions/apply-security-group-rules.fish | functions/apply-security-group-rules.fish | function apply-security-group-rules --argument vpc name
trace (status --current-filename) $argv
if empty "$vpc" "$name"
usage apply-security-group-rules '<vpc>' '<name>'
return (false)
end
set group "vpcs/$vpc/security-groups/$name"
if has group-id $group
set group_id (get... | Add function to apply security group rules | Add function to apply security group rules
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
092a13c22390157c726fd77408e32ecba11b59c5 | init.fish | init.fish | # SYNOPSIS
# rbenv plugin for oh my fish
function init --on-event init_rbenv
if not type -f -q rbenv; and set -q RBENV_ROOT; and not contains "$RBENV_ROOT/bin" $PATH
set PATH $RBENV_ROOT/bin $PATH
end
if not type -q rbenv
echo "Please install 'rbenv' first, or set \$RBENV_ROOT!"; return 1
end
if ... | # SYNOPSIS
# rbenv plugin for oh my fish
if not type -fq rbenv; and set -q RBENV_ROOT; and not contains "$RBENV_ROOT/bin" $PATH
set PATH $RBENV_ROOT/bin $PATH
end
if type -q rbenv
if command rbenv init - | grep --quiet "function"
set -gx __RBENV_SUPPORTS_FISH true
source (rbenv init - | psub)
else
... | Initialize immediately, rather than waiting for an event. | Initialize immediately, rather than waiting for an event.
| fish | mit | oh-my-fish/plugin-rbenv |
07c46c8dee9dec7cf098d0436fa087794e15489e | Linux/fish/config.symlink/fish/config.fish | Linux/fish/config.symlink/fish/config.fish | set -x $PATH PATH ~/.local/bin
alias tcli "truecrypt-cli"
alias dlc "deluge-console"
eval (dircolors -c $HOME/.dircolors/256dark)
set -l MY_JAVA_HOME "/usr/lib/jvm/java-1.7.0-openjdk-amd64"
if test -d $MY_JAVA_HOME
set -x JAVA_HOME $MY_JAVA_HOME
else
echo "WARNING: invalid JAVA_HOME: $MY_JAVA_HOME"
end
# go
... | set -x PATH $PATH ~/.local/bin
alias tcli "truecrypt-cli"
alias dlc "deluge-console"
eval (dircolors -c $HOME/.dircolors/256dark)
set -l MY_JAVA_HOME "/usr/lib/jvm/java-1.7.0-openjdk-amd64"
if test -d $MY_JAVA_HOME
set -x JAVA_HOME $MY_JAVA_HOME
else
echo "WARNING: invalid JAVA_HOME: $MY_JAVA_HOME"
end
# go
... | Fix path setup for linux | Fix path setup for linux
| fish | mit | whwright/dotfiles,whwright/dotfiles,whwright/dotfiles,wright8191/dotfiles |
876ca6a9a22d7f135501dcbde5924755d383301b | fish/config.fish | fish/config.fish |
set --global --export PROFILE (status --current-filename)
set --global --export SCRIPT_DIR (dirname (dirname $PROFILE))
set --global --export SOURCE_DIR (dirname $SCRIPT_DIR)
if not contains $SCRIPT_DIR/fish/functions $fish_function_path
set fish_function_path $SCRIPT_DIR/fish/functions $fish_function_path
end
f... |
set --global --export PROFILE (status --current-filename)
set --global --export SCRIPT_DIR (dirname (dirname $PROFILE))
set --global --export SOURCE_DIR (dirname $SCRIPT_DIR)
if not contains $SCRIPT_DIR/fish/functions $fish_function_path
set fish_function_path $SCRIPT_DIR/fish/functions $fish_function_path
end
i... | Add check to ensure fish_greeting is zeroed out | Add check to ensure fish_greeting is zeroed out
| fish | mit | lee-dohm/environment,lee-dohm/environment,lee-dohm/environment |
4847e06cd1b01c03e45de4f8116373e0e1411dad | fish/config.fish | fish/config.fish | # A workaround for Fish re-reading config for non-interactive execution:
# https://git.io/yj4KoA
if not status --is-interactive
exit
end
# fundle
fundle plugin 'edc/bass'
fundle plugin 'brgmnn/fish-docker-compose'
fundle init
if which rbenv > /dev/null
source (rbenv init -|psub)
end
if which pyenv > /dev/null
... | # A workaround for Fish re-reading config for non-interactive execution:
# https://git.io/yj4KoA
if not status --is-interactive
exit
end
# fundle
fundle plugin 'edc/bass'
fundle plugin 'brgmnn/fish-docker-compose'
fundle init
if which rbenv > /dev/null
source (rbenv init -|psub)
end
if which pyenv > /dev/null
... | Add Rust binaries to $PATH | Add Rust binaries to $PATH
| fish | mit | toddmazierski/dotfiles,toddmazierski/dotfiles |
b28afced32a278e9e2937ac4beb6effa1d1f9dc0 | key_bindings.fish | key_bindings.fish | if test "$FZF_LEGACY_KEYBINDINGS" -eq 1
bind \ct '__fzf_find_file'
bind \cr '__fzf_reverse_isearch'
bind \ec '__fzf_cd'
bind \eC '__fzf_cd_with_hidden'
if bind -M insert >/dev/null 2>/dev/null
bind -M insert \ct '__fzf_find_file'
bind -M insert \cr '__fzf_reverse_isearch'
bi... | if test "$FZF_LEGACY_KEYBINDINGS" -eq 1
bind \ct '__fzf_find_file'
bind \cr '__fzf_reverse_isearch'
bind \ec '__fzf_cd'
bind \eC '__fzf_cd --hidden'
if bind -M insert >/dev/null 2>/dev/null
bind -M insert \ct '__fzf_find_file'
bind -M insert \cr '__fzf_reverse_isearch'
bind ... | Fix keybindings for fzf_cd with hidden directories | Fix keybindings for fzf_cd with hidden directories
| fish | mit | fisherman/fzf |
be7f63fc7866b392a189c7f4ebebe17753d697b0 | fish/functions/fish_user_key_bindings.fish | fish/functions/fish_user_key_bindings.fish | function fish_user_key_bindings
# Git key bindings
bind --key f1 "eval_and_redisplay_prompt git status"
bind --key f2 "eval_and_redisplay_prompt git diff"
bind --key f3 "eval_and_redisplay_prompt git diff --staged"
bind --key f4 "eval_and_redisplay_prompt tig status"
bind --key f6 "eval_and_redisplay_prompt... | function fish_user_key_bindings
# Git key bindings
bind --key f1 "eval_and_redisplay_prompt git status"
bind --key f2 "eval_and_redisplay_prompt git diff"
bind --key f3 "eval_and_redisplay_prompt git diff --staged"
bind --key f4 "eval_and_redisplay_prompt tig"
bind --key f5 "eval_and_redisplay_prompt git pu... | Revert F4 shortcut yet again, add `git pull` shortcut | Revert F4 shortcut yet again, add `git pull` shortcut
| fish | mit | toddmazierski/dotfiles,toddmazierski/dotfiles |
1c922e2ba088862a3d6ed500e4ea1d9976a707a0 | fish/functions/fish_user_key_bindings.fish | fish/functions/fish_user_key_bindings.fish | function fish_user_key_bindings
# Git key bindings
bind --key f1 "eval_and_redisplay_prompt git status"
bind --key f2 "eval_and_redisplay_prompt git diff"
bind --key f3 "eval_and_redisplay_prompt git diff --staged"
bind --key f4 "eval_and_redisplay_prompt tig"
bind --key f6 "eval_and_redisplay_prompt git lo... | function fish_user_key_bindings
# Git key bindings
bind --key f1 "eval_and_redisplay_prompt git status"
bind --key f2 "eval_and_redisplay_prompt git diff"
bind --key f3 "eval_and_redisplay_prompt git diff --staged"
bind --key f4 "eval_and_redisplay_prompt tig status"
bind --key f6 "eval_and_redisplay_prompt... | Revert F4 shortcut to open `tig status` | Revert F4 shortcut to open `tig status`
| fish | mit | toddmazierski/dotfiles,toddmazierski/dotfiles |
36cf1c6ab0be0a17b75bc32c97db86cbd9730924 | config/fish/aliases.fish | config/fish/aliases.fish | set LS_COLORS dxfxcxdxbxegedabagacad
function serve
if test (count $argv) -ge 1
if python -c 'import sys; sys.exit(sys.version_info[0] != 3)'
/bin/sh -c "(cd $argv[1] && python -m http.server)"
else
/bin/sh -c "(cd $argv[1] && python -m SimpleHTTPServer)"... | set LS_COLORS dxfxcxdxbxegedabagacad
function serve
if test (count $argv) -ge 1
if python -c 'import sys; sys.exit(sys.version_info[0] != 3)'
/bin/sh -c "(cd $argv[1] && python -m http.server)"
else
/bin/sh -c "(cd $argv[1] && python -m SimpleHTTPServer)"... | Add alias for cd'ing into the GitPrime directory | Add alias for cd'ing into the GitPrime directory
| fish | bsd-3-clause | jonathanchu/dotfiles,jonathanchu/dotfiles,jonathanchu/dotfiles |
cd8a64e2f0320cae99023475123b35f784bc41ee | functions/managed-policy.fish | functions/managed-policy.fish | function managed-policy --argument document
if test -z "$document"
stderr "usage: managed-policy <document>"
return (false)
end
not inline-policy "$document"
and contains (basename "$document") (list-managed-policies)
end
| Add function to check if a policy is a managed policy | Add function to check if a policy is a managed policy
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
3b6cc11334e033ac0151e6c8a5ed7b6396cab064 | Darwin/fish/config.symlink/fish/config.fish | Darwin/fish/config.symlink/fish/config.fish | #!/usr/bin/env fish
# fish config for OSX
# setup local python PATH before calling common config
set -x PATH ~/Library/Python/2.7/bin $PATH
. ~/.config/fish/common.fish
. ~/.config/fish/bl.fish
. ~/.config/fish/private.fish
# nvm
if type bass > /dev/null
if test -e ~/.nvm/nvm.sh
bass source ~/.nvm/nvm.sh... | #!/usr/bin/env fish
# fish config for OSX
# setup local python PATH before calling common config
set -x PATH ~/Library/Python/2.7/bin $PATH
set -x PATH ~/go/bin $PATH
. ~/.config/fish/common.fish
. ~/.config/fish/bl.fish
. ~/.config/fish/private.fish
# nvm
if type bass > /dev/null
if test -e ~/.nvm/nvm.sh
... | Add go bin to path | Add go bin to path
| fish | mit | whwright/dotfiles,whwright/dotfiles,wright8191/dotfiles,whwright/dotfiles |
b24bd46fc4ea2bf816beb28a2572d0ffaa84d6c3 | functions/_pure_string_width.fish | functions/_pure_string_width.fish | function _pure_string_width \
--description 'returns raw string length, i.e. ignore ANSI-color' \
--argument-names prompt
set --local empty ''
set --local raw_prompt (string replace --all --regex '\e\[[^m]*m' $empty $prompt)
string length $raw_prompt
end
| function _pure_string_width \
--description 'returns raw string length, i.e. ignore ANSI-color' \
--argument-names prompt
set --local empty ''
set --local raw_prompt (string replace --all --regex '\e\[[^m]*m' $empty $prompt)
string length -- $raw_prompt
end
| Handle virtualenvs that look like flags | Handle virtualenvs that look like flags | fish | mit | rafaelrinaldi/pure |
1dcfe85cfede778b9f74f4ef103a79181af220b3 | conf/config/fish/config.fish | conf/config/fish/config.fish | # Turn off fish greeting
set -e fish_greeting
# Solarized colours
. $HOME/.config/fish/solarized.fish
# load solarized colors
set -g theme_color_scheme solarized-dark
set -g __fish_git_prompt_show_informative_status 1
# Set path
set PATH ~/.dotfiles/bin $PATH
if test -d ~/.fzf/bin
set PATH ~/.fzf/bin $PATH
end
#... | # Turn off fish greeting
set -e fish_greeting
# Solarized colours
. $HOME/.config/fish/solarized.fish
# load solarized colors
set -g theme_color_scheme solarized-dark
set -g __fish_git_prompt_show_informative_status 1
# Set path
set PATH ~/.dotfiles/bin $PATH
if test -d ~/.fzf/bin
set PATH ~/.fzf/bin $PATH
end
#... | Add alias for git checkout in fish | Add alias for git checkout in fish
| fish | mit | dueyfinster/dotfiles |
3a5ab931c26938476ff1b092cb16081f70ae4219 | shell-completions/gibo.fish | shell-completions/gibo.fish | # Fish completion for gibo
#
# INSTALLATION
#
# First install gibo from
# https://github.com/simonwhitaker/gitignore-boilerplates
#
# Then copy this file to ~/.config/fish/completions
#
# CREDITS
#
# Written by Sebastian Schulz <https://github.com/yilazius>
function gibocompletionlist
set gitignores (ls ~/.gitignore... | # Fish completion for gibo
#
# INSTALLATION
#
# First install gibo from
# https://github.com/simonwhitaker/gitignore-boilerplates
#
# Then copy this file to ~/.config/fish/completions
#
# CREDITS
#
# Written by Sebastian Schulz <https://github.com/yilazius>
function __fish_using_command
set cmd (commandline -opc)
... | Update fish tab completion script | [v2] Update fish tab completion script
Closes #29
| fish | unlicense | kodybrown/gibo,simonwhitaker/gibo |
9dbb388703bebdba2a3ecd7890b4eb38d9c1d378 | functions/fish_right_prompt.fish | functions/fish_right_prompt.fish | function fish_right_prompt
end
| function fish_right_prompt
set -l last_command_status $status
if test $last_command_status != 0
set_color red
printf "$last_command_status ↵ "
set_color normal
end
printf (date "+%H:%M:%S")
end
| Add date and last command status | Add date and last command status
| fish | mit | tricoder42/fish-theme-tricoder |
0f92751ee3e52999f81956e5aebae61adef81710 | functions/__fisher_plugin_validate.fish | functions/__fisher_plugin_validate.fish | function __fisher_plugin_validate -a plugin
switch "$plugin"
case . /\* ./\* ../\*
if test ! -e $plugin
return 1
end
switch "$plugin"
case /\*
printf "%s\n" $plugin
case \*
printf "... | function __fisher_plugin_validate -a plugin
switch "$plugin"
case . /\* ./\* ../\*
if test ! -e $plugin
return 1
end
switch "$plugin"
case /\*
printf "%s\n" $plugin
case \*
printf "... | Tweak validate regex to correctly handle plugins named bb, gh, gl or omf. | Tweak validate regex to correctly handle plugins named bb, gh, gl or omf.
| fish | mit | fisherman/fisherman |
a288a39548637cb0d59f14f0c486c65e64106cfd | .config/fish/functions/sw.fish | .config/fish/functions/sw.fish | function sw --description 'Connects to an OFS switch'
set -l arg (echo $argv | grep -o '[0-9a-zA-Z]' | tr 'A-Z' 'a-z' | tr -d '\n')
set -lx num (echo $argv | grep -oE '^[0-9]+')
set -lx blk (echo $argv | sed -E 's|^[0-9]+([^0-9]+).*$|\1|')
tmux -f ~/.sw.tmux.conf new-session -s "sw$num-pat$blk" "switch-ssh sw$num.p... | function sw --description 'Connects to an OFS switch'
set -l arg (echo $argv | sgrep -o '[0-9a-zA-Z]' | tr 'A-Z' 'a-z' | tr -d '\n')
set -lx num (echo $argv | sgrep -oE '^[0-9]+')
set -lx blk (echo $argv | sed -E 's|^[0-9]+([^0-9]+).*$|\1|')
tmux -f ~/.sw.tmux.conf new-session -s "sw$num-pat$blk" "switch-ssh sw$num... | Use sgrep instead of grep. | Use sgrep instead of grep.
| fish | bsd-3-clause | rahulg/dotfiles,rahulg/dotfiles |
06c714baf3e437f3e4287c635ac81a60065a4912 | config/dotfile/init.fish | config/dotfile/init.fish | function dotfile::set_env
set --export --global $argv[1] $argv[2]
end
function dotfile::load_if_exists
if test -f $argv[1]
source $argv[1]
end
end
function dotfile::path_prepend
set args
for arg in $argv
set args $arg $args
end
for arg in $args
if not string match --quiet $arg $PATH
... | Implement dotfile functions for fish. | Implement dotfile functions for fish.
| fish | mit | charlesbjohnson/dotfiles,charlesbjohnson/dotfiles | |
2076aa1ff0a59378bafe8b965cf1151fac9a0401 | fish/.config/fish/config.fish | fish/.config/fish/config.fish | # Set path
set -g fish_user_paths $fish_user_paths $HOME/bin $HOME/go/bin
# Include abbreviations
source $HOME/.config/fish/abbreviations.fish
# Initialize special functions
source $HOME/.config/fish/functions/__commajump_add.fish
source $HOME/.config/fish/functions/tmux_rename_window.fish
# Git prompt options
set _... | # Set path
set -g fish_user_paths $fish_user_paths /opt/homebrew/bin $HOME/bin $HOME/go/bin
# Include abbreviations
source $HOME/.config/fish/abbreviations.fish
# Initialize special functions
source $HOME/.config/fish/functions/__commajump_add.fish
source $HOME/.config/fish/functions/tmux_rename_window.fish
# Git pr... | Add Homebrew ARM path to PATH | Add Homebrew ARM path to PATH
| fish | mit | spinningarrow/.files,spinningarrow/.files |
d59b12d87b06f12ded31bef200e253e6c98f70b4 | .config/fish/functions/fish_prompt.fish | .config/fish/functions/fish_prompt.fish | function fish_prompt
# Just calculate this once, to save a few cycles when displaying the prompt
if not set -q __fish_prompt_hostname
set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
end
echo -n -s (set_color --bold green) "$__fish_prompt_hostname" ":" (set_color --bold white) (prompt_pwd... | function fish_prompt
# Just calculate this once, to save a few cycles when displaying the prompt
if not set -q __fish_prompt_hostname
set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
end
echo -n (set_color --bold green)"$__fish_prompt_hostname"":"(set_color --bold white)(prompt_pwd) (set_... | Support of Debian prompt with specific 'echo' behavior | feat(fish): Support of Debian prompt with specific 'echo' behavior
| fish | apache-2.0 | davinkevin/.myDotFiles |
61255e1bb2abeefc4919a2e5e621ee780f50ca2a | fish/.config/fish/functions/toggle-screen.fish | fish/.config/fish/functions/toggle-screen.fish | function toggle-screen
set -l IN "eDP1"
set -l EXT "DP1"
if xrandr | grep "$EXT disconnected"
xrandr --output $IN --auto --output $EXT --off
else
xrandr --output $IN --auto --primary --output $EXT --auto --below $IN
end
end
| function toggle-screen
set -l IN "eDP1"
set -l EXT "DP1"
if xrandr | grep "$EXT disconnected"
xrandr --output $IN --auto --output $EXT --off
else
xrandr --output $IN --auto --primary --output $EXT --auto --above $IN
end
end
| Move external monitor to above | Move external monitor to above
| fish | unlicense | Olical/dotfiles,Wolfy87/dotfiles,Wolfy87/dotfiles |
be7142fb3623aa00693fd5cc02a85903b4c4122d | fish/conf.d/20-rust.fish | fish/conf.d/20-rust.fish | set -gx CARGO_HOME "$XDG_DATA_HOME/cargo"
set -gx RUSTUP_HOME "$XDG_DATA_HOME/rustup"
| set -gx CARGO_HOME "$XDG_DATA_HOME/cargo"
set -gx RUSTUP_HOME "$XDG_DATA_HOME/rustup"
fish_add_path "$CARGO_HOME/bin"
| Include cargo bin in PATH | Include cargo bin in PATH
| fish | mit | Rypac/dotfiles,Rypac/dotfiles,Rypac/dotfiles |
9c8ed7fa95b6814a15aa35a60390da64b86d8011 | fish/functions/fish_prompt.fish | fish/functions/fish_prompt.fish | function fish_prompt
echo
switch $IN_NIX_SHELL
case pure
set_color green
echo -n ">>> "
case impure
set_color yellow
echo -n ">> "
case '*'
set_color cyan
echo -n "> "
end
set_color normal
end
| function fish_prompt
echo
switch $IN_NIX_SHELL
case pure
echo -n "🐡 "
case impure
echo -n "🐠 "
case '*'
echo -n "🐟 "
end
end
| Use fish emojis as prompt | Fish: Use fish emojis as prompt
| fish | unlicense | tssm/.config,tssm/.config,tssm/.config,tssm/.config |
be2f766dc53de76b68ebc69a1dc22d6ba1029afe | Library/Contributions/brew_fish_completion.fish | Library/Contributions/brew_fish_completion.fish | # This script contains basic completion of brew commands for
# fish (http://fishshell.org). To install it either put it
# in <your-fish-install-location>/share/fish/completions
# or ~/.config/fish/completions - and name it 'brew.fish'
# e.g.:
# mkdir -p ~/.config/fish/completions
# cp brew_fish_completion.fish ~/.c... | Add fish completions for the brew binary | Add fish completions for the brew binary
See Library/Contributions
| fish | bsd-2-clause | CNA-Bld/homebrew,packetcollision/homebrew,mndrix/homebrew,idolize/homebrew,yangj1e/homebrew,eighthave/homebrew,bmroberts1987/homebrew,hongkongkiwi/homebrew,barn/homebrew,kwilczynski/homebrew,otaran/homebrew,theckman/homebrew,muellermartin/homebrew,jonafato/homebrew,eugenesan/homebrew,exicon/homebrew,zoltansx/homebrew,m... | |
2d7d3937cab46583b37f69188eecd391f82f2358 | functions/go_tools.fish | functions/go_tools.fish | # SYNOPSIS
# go_update_tools [options]
#
# USAGE
# Options
#
function go_tools -d "install or update go tools"
for i in "josharian/impl" "nishanths/license" "nsf/gocode" "rogpeppe/godef" "golang/lint/golint" "golang/dep/cmd/dep" "nishanths/go-hgconfig"
go get -u -x github.com/$i
end
for i in "cmd/gorenam... | # SYNOPSIS
# go_update_tools [options]
#
# USAGE
# Options
#
function go_tools -d "install or update go tools"
for i in "josharian/impl" "nishanths/license" "nsf/gocode" "rogpeppe/godef" "golang/lint/golint" "golang/dep/cmd/dep" "nishanths/go-hgconfig"
go get -u -x github.com/$i
end
for i in "cmd/gorenam... | Update honnef.co go tools installation link | Update honnef.co go tools installation link
| fish | mit | douglarek/fish |
6e4d66646459a9cf54a9dceaff941cae9fffa0e3 | functions/ssh.fish | functions/ssh.fish | # SYNOPSIS
# ssh [arguments]
#
# USAGE
# ssh-term-helper overloads the 'ssh' command and changes the
# value of $TERM to a conservative setting present in most
# termcap files. Any arguments are passed directly to the ssh
# command.
#
function ssh -d "OpenSSH SSH client (remote login program) with a conserv... | # SYNOPSIS
# ssh [arguments]
#
# USAGE
# ssh-term-helper overloads the 'ssh' command and changes the
# value of $TERM to a conservative setting present in most
# termcap files. Any arguments are passed directly to the ssh
# command.
#
function ssh -d "OpenSSH SSH client (remote login program) with a conserv... | Correct typo that prevented $TERM from being set correctly | Correct typo that prevented $TERM from being set correctly
| fish | mit | wk/pkg-ssh-term-helper |
1af3f64d4ca61b0f9036fd9121ada827b9a4378d | .config/fish/config.fish | .config/fish/config.fish | # Set the prompt.
function fish_prompt --description "Write out the prompt"
echo -n "$USER:"
set_color $fish_color_cwd
echo -n (prompt_pwd)
set_color normal
echo -n '> '
end
# Shortcuts
function sz --description "Calculate the size of a directory"
du -sh $argv
end
function upd --description "Updates homebrew pac... | # Set the prompt.
function fish_prompt --description "Write out the prompt"
echo -n "$USER:"
set_color $fish_color_cwd
echo -n (prompt_pwd)
set_color normal
echo -n '> '
end
# Shortcuts
function sz --description "Calculate the size of a directory"
du -sh $argv
end
function upd --description "Updates homebrew pac... | Check for go binary before calling go env | Check for go binary before calling go env
| fish | mit | mk12/dotfiles |
d0096a5f6d425af7ff74d4dda44d2c2c9d0c3faf | omf/init.fish | omf/init.fish | ## SETTINGS
# editors, pagers
set -gx BROWSER open
set -gx EDITOR vim
set -gx PAGER less
set -gx MANPAGER $PAGER
# fish greeting
set -gx fish_greeting ""
## LOCALE
set -gx LC_ALL en_US.UTF-8
set -gx LANG en_US.UTF-8
## ALIASES
# navigation
alias .. "cd .."
alias ... "cd ../.."
alias .... "cd ../../.."
# ls
al... | ## SETTINGS
# editors, pagers
set -gx BROWSER open
set -gx EDITOR vim
set -gx PAGER less
set -gx MANPAGER $PAGER
# fish greeting
set -gx fish_greeting ""
# thefuck
thefuck --alias | source
## LOCALE
set -gx LC_ALL en_US.UTF-8
set -gx LANG en_US.UTF-8
## ALIASES
# navigation
alias .. "cd .."
alias ... "cd ../.... | Add missing paths and thefuck | Add missing paths and thefuck
| fish | mit | chuckeles/dotfiles |
6d1b39acbc439ab38e6a9e18603b5303bcf5d07b | functions/man.fish | functions/man.fish | function man --description 'Format and display manual pages'
set -lx MANPATH $__fish_datadir/man $MANPATH ""
set -q man_blink; and set blink (set_color $man_blink); or set blink (set_color -o red)
set -q man_bold; and set bold (set_color $man_bold); or set bold (set_color -o 5fafd7)
set -q man_standout... | function man --description 'Format and display manual pages'
set -lx MANPATH $__fish_datadir/man $MANPATH ""
set -q man_blink; and set -l blink (set_color $man_blink); or set -l blink (set_color -o red)
set -q man_bold; and set -l bold (set_color $man_bold); or set -l bold (set_color -o 5fafd7)
set -q ... | Add `-l` option to `set` | Add `-l` option to `set`
| fish | mit | decors/fish-colored-man-pages |
26aa656b6909cdf9240a22625710f89fe04eee2e | config/fish/config.fish | config/fish/config.fish | # Turn off the default greeting
set fish_greeting
# Add Postgres.app tools to path, but before asdf inits, so asdf's shims end up first
set -gx PATH /Applications/Postgres.app/Contents/Versions/latest/bin $PATH
status --is-interactive; and . (rbenv init -|psub)
status --is-interactive; and . (nodenv init -|psub)
stat... | # Turn off the default greeting
set fish_greeting
# Add Postgres.app tools to path, but before asdf inits, so asdf's shims end up first
set -gx PATH /Applications/Postgres.app/Contents/Versions/latest/bin $PATH
status --is-interactive; and source ~/.config/fish/integrations/iterm2.fish
status --is-interactive; and so... | Switch to asdf full time | Switch to asdf full time
| fish | mit | timriley/dotfiles,timriley/dotfiles |
7e125180a372da3dcc043c8ab695b603c5398da8 | fish/.config/fish/config.fish | fish/.config/fish/config.fish | # Set path
set --universal fish_user_paths $fish_user_paths $HOME/bin
# Include abbreviations
source $HOME/.config/fish/abbreviations.fish
# Initialize commajump
source $HOME/.config/fish/functions/__commajump_add.fish
# Activate chruby
[ -f /usr/local/share/chruby/chruby.fish ]; and source /usr/local/share/chruby/c... | # Set path
set -g fish_user_paths $fish_user_paths $HOME/bin
# Include abbreviations
source $HOME/.config/fish/abbreviations.fish
# Initialize commajump
source $HOME/.config/fish/functions/__commajump_add.fish
# Activate chruby
[ -f /usr/local/share/chruby/chruby.fish ]; and source /usr/local/share/chruby/chruby.fis... | Set fish_user_paths globally instead of universally | [fish] Set fish_user_paths globally instead of universally
This is confusing. Setting it universally causes it to be appended to
all the time, which is not good. Setting globally seems to fix it
though. (suggestion from #fish on IRC)
| fish | mit | spinningarrow/.files,spinningarrow/.files |
935419d495b1ecaf769159008c2c076626c88bba | fish/functions/historyf.fish | fish/functions/historyf.fish | function historyf --description 'Filter history interactively'
if not command -s fzf >/dev/null
echo 'historyf: fzf not found'
exit 1
end
history | fzf --tiebreak=begin,index --header="history" -q (commandline -b) | read -l fzf_last_select
if [ $fzf_last_select ]
commandline -rb ... | function historyf --description 'Filter history interactively'
if not command -s fzf >/dev/null
echo 'historyf: fzf not found'
exit 1
end
history | fzf --tiebreak=index --header="history" -q (commandline -b) | read -l fzf_last_select
if [ $fzf_last_select ]
commandline -rb $fzf_l... | Use only index on interactive history | fish: Use only index on interactive history
| fish | mit | sebastianmarkow/dotfiles |
7fb5f9b610f1edd3559521b159c24c3cc65ea04d | fish/functions/punch.fish | fish/functions/punch.fish | function punch --description "Creates directories leading up to and including the file"
set -l path (dirname $argv[1])
mkdir -p $path
touch $argv[1]
end | function punch --description "Creates directories leading up to and including the file"
for file in $argv
set -l path (dirname $file)
mkdir -p $path
touch $file
end
end | Extend to work with multiple arguments | Extend to work with multiple arguments
| fish | mit | adrianObel/dotfiles |
fcd174faf24d923805348f2e48492d13e42baf3d | fish_right_prompt.fish | fish_right_prompt.fish | set __fish_status_prompt_char_failed '✘'
function fish_right_prompt
set -l code $status
if test $code -eq 127
set_color red
printf '%s' $__fish_status_prompt_char_failed
end
end
| set __fish_status_prompt_char_failed '✘'
function fish_right_prompt
set -l code $status
if test $code -eq 127
set_color red
printf '%s' $__fish_status_prompt_char_failed
end
set_color normal
end
| Reset color when command fails | Reset color when command fails
| fish | mit | lfiolhais/theme-simple-ass-prompt |
0c61c37cce2b30db53a73458407f613f3d09c892 | init.fish | init.fish | function init -a path --on-event init_local-config
# Load custom settings for current hostname
set -l host (hostname | sed -E 's/(-[0-9]+)?(\.(local|home))?$//')
set -l host_specific_file $OMF_CONFIG/hosts/$host.fish
if test -f $host_specific_file
source $host_specific_file
else
echo Creating host spe... | # Load custom settings for current hostname
set -l host (hostname | sed -E 's/(-[0-9]+)?(\.(local|home))?$//')
set -l host_specific_file $OMF_CONFIG/hosts/$host.fish
if test -f $host_specific_file
source $host_specific_file
else
echo Creating host specific config file: $host_specific_file
mkdir -p (dirname $host_... | Initialize immediately, rather than waiting for an event. | Initialize immediately, rather than waiting for an event.
| fish | mit | oh-my-fish/plugin-local-config |
721dbc3786ffefaba26f64f1a7e6189ad475fd45 | fish/.config/fish/config.fish | fish/.config/fish/config.fish | #!/usr/bin/env fish
# PATH
if test -d /usr/local/sbin
set PATH /usr/local/sbin $PATH
end
if test -x /usr/local/bin/cargo
set PATH ~/.cargo/bin $PATH
end
if test -x /usr/local/bin/yarn
set PATH ~/.yarn/bin ~/.config/yarn/global/node_modules/.bin $PATH
end
if test -e $NVIM_LISTEN_ADDRESS
if test -x /usr/loca... | #!/usr/bin/env fish
# PATH
if test -d /usr/local/sbin
set PATH /usr/local/sbin $PATH
end
if test -x /usr/local/bin/cargo
set PATH ~/.cargo/bin $PATH
end
if test -x /usr/local/bin/yarn
set PATH ~/.yarn/bin ~/.config/yarn/global/node_modules/.bin $PATH
end
set EDITOR nvim
set VISUAL nvim
if test -n "$NVIM_LIS... | Add EDITOR variables outside neovim | Add EDITOR variables outside neovim
| fish | mit | bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles |
8399be50c64a423ecb185c545f64d0b36a7697ff | fish/.config/fish/config.fish | fish/.config/fish/config.fish | # Initializes sharship prompt
if command -v starship > /dev/null
starship init fish | source
end
# Initializes asdf
if test -f ~/.asdf/asdf.fish > /dev/null
source ~/.asdf/asdf.fish
end
# Abbreviations
abbr --add be bundle exec
abbr --add dc docker-compose
abbr --add g git
abbr --add gd git diff
abbr --add gd... | # Initializes sharship prompt
if command -v starship > /dev/null
starship init fish | source
end
# Initializes asdf
if test -f ~/.asdf/asdf.fish > /dev/null
source ~/.asdf/asdf.fish
end
# Abbreviations
abbr --add be bundle exec
abbr --add dc docker-compose
abbr --add g git
abbr --add gd git diff
abbr --add gd... | Remove auto-start of tmux at the end of fish shell, makes projectile error with open terminal failed: not a terminal | Remove auto-start of tmux at the end of fish shell, makes projectile error with open terminal failed: not a terminal
| fish | mit | nTraum/dotfiles,nTraum/dotfiles |
64a0e43a3197492b8d0d19e0902b400ca72b19fb | fish/functions/absolute_path.fish | fish/functions/absolute_path.fish |
function absolute_path --description 'Converts a relative path into an absolute path'
set --local target $argv[1]
set --local curdir (pwd)
builtin cd (dirname $target) > /dev/null; and echo (pwd)/(basename $target); and builtin cd $curdir
end
|
function absolute_path --description 'Converts a relative path into an absolute path'
set --local target $argv[1]
set --local curdir (pwd)
builtin cd (dirname $target) > /dev/null; and echo (pwd)/(basename $target)
builtin cd $curdir
end
| Change to always change back to original directory | Change to always change back to original directory
| fish | mit | lee-dohm/environment,lee-dohm/environment,lee-dohm/environment |
7c241bc234e535f49cd3357deadbff3705f2fe2c | fish/alias_vars_yoshi.fish | fish/alias_vars_yoshi.fish | # Set some environment variables
set -gx CUDA_HOME /usr/local/cuda-8.0
set -gx PATH $CUDA_HOME/bin/ $PATH
set -gx LD_LIBRARY_PATH "$LD_LIBRARY_PATH:$CUDA_HOME/lib64:$CUDA_HOME/extras/CUPTI/lib64:$HOME/code/cuda8.0/cuda/lib64"
| # Set some environment variables
set -gx HOME "/scratch/fbc23"
set -gx PYENV_ROOT "$HOME/.pyenv"
set -gx CUDA_HOME /usr/local/cuda-8.0
set -gx PATH $PYENV_ROOT/bin $CUDA_HOME/bin/ $PATH
set -gx LD_LIBRARY_PATH "$LD_LIBRARY_PATH:$CUDA_HOME/lib64:$CUDA_HOME/extras/CUPTI/lib64:$HOME/code/cuda8.0/cudnn5.1/lib64"
status --i... | Update alias variables - add in pyenv and CUDA | Yoshi: Update alias variables - add in pyenv and CUDA
| fish | mit | fbcotter/dotfiles |
6313be77f5843c08196b9652b3b10562730effd3 | functions/create-role.fish | functions/create-role.fish | function create-role --argument-names name
print-status iam/create-role $name
if test -z "$name"
print-status usage 'create-role <name>'
return -1
end
set --local role iam/roles/$name
set --local policy assume-role-policy.json
if has $policy $role
aws iam create-role -... | Add function to create role | Add function to create role
| fish | mit | colstrom/shellops-aws,colstrom/piranha | |
17b5b4bb3505143943c3a649ee2e27aa5c9078bd | share/gist.fish | share/gist.fish | complete -c gist -f -a "create" -d "Creates a new gist"
complete -c gist -f -a "edit" -d "Edit the files in your gist"
complete -c gist -f -a "list" -d "Prints a list of your gists"
complete -c gist -f -a "clone" -d "Clones a gist"
complete -c gist -f -a "delete" -d "Deletes a gist from github"
complete -c gist -f -a "... | complete -c gist -f -a "create" -d "Creates a new gist"
complete -c gist -f -a "edit" -d "Edit the files in your gist"
complete -c gist -f -a "list" -d "Prints a list of your gists"
complete -c gist -f -a "clone" -d "Clones a gist"
complete -c gist -f -a "delete" -d "Deletes a gist from GitHub"
complete -c gi... | Fix typos for the Fish completion file | Fix typos for the Fish completion file
This patch also aligns the file in a more readable way.
| fish | mit | jdowner/gist,jdowner/gist |
641dafdef81831b934de0ca8f0701d3b68f4af9e | fish/functions/getbench.fish | fish/functions/getbench.fish | function gettime -d "How long does it take to retrieve a URL?"
curl -kso /dev/null -w "dns: %{time_namelookup} tcp:%{time_connect} ssl:%{time_appconnect}\n" $argv
end
| function getbench -d "How long does it take to retrieve a URL?"
curl -kso /dev/null -w "dns: %{time_namelookup} tcp:%{time_connect} ssl:%{time_appconnect}\n" $argv
end
| Make command name match filename | Make command name match filename | fish | apache-2.0 | ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles |
613ec06afba5d969edec13d5b98cd24f434cee14 | functions/lookup-policy.fish | functions/lookup-policy.fish | function lookup-policy --argument name
if test -z "$name"
stderr "usage: lookup-policy <name>"
return (false)
end
aws iam list-policies | jq --raw-output ".Policies[] | select(.PolicyName == \"$name\") .Arn"
end
| Add function to look up the ARN for a managed policy | Add function to look up the ARN for a managed policy
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
7c8c920d92f0ea830411450e5cf3b58d23931ef6 | .config/fish/functions/🗒__vundle.fish | .config/fish/functions/🗒__vundle.fish | # Installs and updates Vundle, plugin manager for Vim.
# https://github.com/VundleVim/Vundle.vim#about
#
# Sequencing
# - After: brew (installed with node)
function 🗒__vundle
echo "🗒 Vundle"
echo
set -l vim_bundle_dir ~/.vim/bundle
set -l vundle_dir $vim_bundle_dir/Vundle.vim
if not test -e $vu... | # Installs and updates Vundle, plugin manager for Vim.
# https://github.com/VundleVim/Vundle.vim#about
#
# Compatible with Pathogen plugin bundles
# http://lepture.com/en/2012/vundle-vs-pathogen
#
# Sequencing
# - After: brew (installed with node)
function 🗒__vundle
echo "🗒 Vundle"
echo
set -l vim_bundl... | Add notes about Pathogen compatibility | [vundle] Add notes about Pathogen compatibility
| fish | mit | phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles |
cf762e19b379df761fc56107a28038caf285aa41 | .config/fish/functions/🐍__pip.fish | .config/fish/functions/🐍__pip.fish | # Manages python packages using pip (https://pip.pypa.io/en/stable/).
# Python Package Index (PyPI) https://pypi.python.org/pypi
#
# Installs Powerline for Vim
# https://powerline.readthedocs.io/en/latest/
#
# Sequencing
# - After: brew (installed with python)
function 🐍__pip
echo "🐍 PIP"
echo
# Ensure ... | # Manages python packages using pip (https://pip.pypa.io/en/stable/).
# Python Package Index (PyPI) https://pypi.python.org/pypi
#
# Installs Powerline for Vim
# https://powerline.readthedocs.io/en/latest/
#
# Sequencing
# - After: brew (installed with python)
function 🐍__pip
echo "🐍 PIP"
echo
# Ensure ... | Install packages to site-packages instead of --user | [pip] Install packages to site-packages instead of --user
| fish | mit | phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles |
879684fe8bb47047aff9ed4fb98968ff899ee33a | config.fish | config.fish | # My default fish config that just loads tacklebox.
set tacklebox_path ~/src/config/tackle
set tacklebox_modules virtualfish virtualhooks
set tacklebox_plugins python extract find-in colors
set tacklebox_theme simotek
#initialise tacklebox
source ~/src/config/tacklebox/tacklebox.fish
set PYTHONPATH $PYTHONPATH:/opt/p... | # My default fish config that just loads tacklebox.
set tacklebox_path ~/src/config/tackle
set tacklebox_modules virtualfish virtualhooks
set tacklebox_plugins python extract find-in colors grc devel
set tacklebox_theme simotek
#initialise tacklebox
source ~/src/config/tacklebox/tacklebox.fish
| Update for my latest changes to tackle | Update for my latest changes to tackle
* Environment is now handled by tackle
* grc and devel plugins should be enabled
* no need to call colors command
| fish | bsd-2-clause | simotek/scripts-config,simotek/scripts-config |
e0e29b1487efe04ab0a41908445433e7588474df | fish/.config/fish/config.fish | fish/.config/fish/config.fish | # Copyright 2017 Renato Utsch
#
# This project is released under the Apache 2 license.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | # Copyright 2017 Renato Utsch
#
# This project is released under the Apache 2 license.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | Fix bug with tmux highlighting. | Fix bug with tmux highlighting.
Now the proper $TERM environment variable is set.
| fish | apache-2.0 | RenatoUtsch/dotfiles |
c2fc3c6613fe5e21c9ad211512635b893170d00a | fish/config.fish | fish/config.fish | set EDITOR vim
set -x GOPATH $HOME/Developer/go
set -U fish_user_paths $GOPATH/bin/ $fish_user_paths
| set EDITOR vim
set -x GOPATH $HOME/Developer/go
set PATH $HOME/bin $GOPATH/bin $PATH
alias :q=exit
| Fix path nonsense. Alias :q=exit | Fix path nonsense. Alias :q=exit
| fish | mit | vmagro/dotfiles,vmagro/dotfiles |
4bfb27abdf865f3701a05b3e9bf40cd35cc63836 | home/.config/fish/functions/fish_prompt.fish | home/.config/fish/functions/fish_prompt.fish | function fish_prompt --description 'Write out the prompt'
set -l home_escaped (echo -n $HOME | sed 's/\//\\\\\//g')
set -l pwd (echo -n $PWD | sed "s/^$home_escaped/~/" | sed 's/ /%20/g')
# SSH
test $SSH_TTY
and printf (set_color red)$USER(set_color brwhite)'@'(set_color yellow)(prompt_hostname)' '
test "$... | function fish_prompt --description 'Write out the prompt'
set -l last_status $status
set -l home_escaped (echo -n $HOME | sed 's/\//\\\\\//g')
set -l pwd (echo -n $PWD | sed "s/^$home_escaped/~/" | sed 's/ /%20/g')
# SSH
test $SSH_TTY
and printf (set_color red)$USER(set_color brwhite)'@'(set_color yellow)(... | Change prompt color by latest exit code | Change prompt color by latest exit code
| fish | mit | s-osa/dotfiles |
45b652f24756a859d3f4f4aa97fa70720b330493 | functions/user-in-groups.fish | functions/user-in-groups.fish | function user-in-groups --argument user
if empty "$user"
usage user-in-groups '<user>'
return (false)
end
aws iam list-groups-for-user --user-name "$user" ^ /dev/null | jq --raw-output .Groups[].GroupName
end
| Add function to find groups a user is in | Add function to find groups a user is in
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
ab556922870357fd69e92f4778541b6e4d589832 | roles/fish/files/config.fish | roles/fish/files/config.fish | alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
xcape -e 'Caps_Lock=Escape' # Map Caps-Lock to Escape
setxkbmap -option 'caps:ctrl_modifier' # Map Caps-Lock-modifier to Ctrl
| alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
fish_vi_key_bindings
xcape -e 'Caps_Lock=Escape' # Map Caps-Lock to Escape
setxkbmap -option 'caps:ctrl_modifier' # Map Caps-Lock-modifier to Ctrl
| Use vi keybindings in fish | Use vi keybindings in fish
| fish | mit | JohnAZoidberg/dotfiles,JohnAZoidberg/dotfiles |
726ba1761edf9d4d1ab350d4c01ef09432ec02a7 | themes/simotek/fish_greeting.fish | themes/simotek/fish_greeting.fish | # urdh prompt theme, by Simon Sigurdhsson <http://github.com/urdh/>
function fish_greeting --description 'Print the shell greeting'
set -l c_n (set_color normal)
set -l c_w (set_color cyan)
set -l location (printf "%sWelcome to %s%s%s" $c_n $c_w (hostname) $c_n)
set -l system (printf "%sRunning %s%s%s ... | # urdh prompt theme, by Simon Sigurdhsson <http://github.com/urdh/>
function fish_greeting --description 'Print the shell greeting'
set -l c_n (set_color af0087)
set -l c_w (set_color green)
set -l location (printf "%sWelcome to %s%s%s" $c_n $c_w (hostname) $c_n)
set -l system (printf "%sRunning %s%s%s... | Update the greeting to have colors that better match the rest of the theme | Update the greeting to have colors that better match the rest of the theme
| fish | mit | simotek/tackle,simotek/tackle |
578d1bc681c3b89df49923f7424ee5f4b71246b5 | functions/check_system.fish | functions/check_system.fish | function check_system -d 'Display short system name (OSX, Linux, Win, NA)'
set -l osname (uname | tr '[:upper:]' '[:lower:]' 2>/dev/null); or set -l osname (fish -c "uname | tr '[:upper:]' '[:lower:]'"); or set -l osname (/usr/bin/uname | tr '[:upper:]' '[:lower:]' 2>/dev/null)
# fix for lacking MSYS2 path; 2nd nee... | function check_system -d 'Display short system name (OSX, Linux, Win, NA)'
set -l osname (uname | tr '[:upper:]' '[:lower:]' 2>/dev/null); or set -l osname (fish -c "uname | tr '[:upper:]' '[:lower:]'"); or set -l osname (/usr/bin/uname | tr '[:upper:]' '[:lower:]' 2>/dev/null)
# fix for lacking MSYS2 path; 2nd nee... | Add Windows Subsystem for Linux separately as WinLinux | Add Windows Subsystem for Linux separately as WinLinux
| fish | mit | eugenesvk/Settings-Fish |
604579ee6268813c2d570f00e122e72f93b77559 | .config/fish/functions/setup-mac.fish | .config/fish/functions/setup-mac.fish | function setup-mac --description "Setup script for OS X"
function _setup_homebrew
echo "Setting up homebrew"
if not type brew >/dev/null
ruby -e (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)
brew update
end
end
function _setup_rbenv
echo "Setting up r... | function setup-mac --description "Setup script for OS X"
function _setup_homebrew
echo "Setting up homebrew"
if not type brew >/dev/null
ruby -e (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)
brew update
end
end
function _setup_rbenv
echo "Setting up r... | Use bash instead of fish to execute .osx script | Use bash instead of fish to execute .osx script
Using source seemed to override the shebang.
| fish | mit | dideler/dotfiles,dideler/dotfiles |
26781a470fce22d89c0c45c9188193c20af1629d | init.fish | init.fish | function init -a path --on-event init_homebrew-command-not-found
if not available brew
echo "Please install 'brew' first"
return 1
end
set -l brew_cmd (command brew command command-not-found-init 2> /dev/null)
if test -eq status 1
echo "Please install 'hombrew-command-not-found' first."
echo "... | function init -a path --on-event init_homebrew-command-not-found
if not available brew
echo "Please install 'brew' first"
return 1
end
set -l brew_cmd (command brew command command-not-found-init 2> /dev/null)
if [ -n "$brew_cmd" ]
brew command command-not-found-init > /dev/null; and . (brew comma... | Check if brew_cmd is set and run command | Check if brew_cmd is set and run command
| fish | mit | lfiolhais/plugin-homebrew-command-not-found |
9e10e1c0b275a76db9dd54ba9d3378d3f748c344 | fish/functions/getmd.fish | fish/functions/getmd.fish | function getmd -d "Retrieve single URL, convert to markdown"
if test -z $MERCURY_API_KEY
echo "error: MERCURY_API_KEY not set"
return 1
end
if test -z $argv[1]
echo "usage: $_ url"
return 1
end
curl -s -H "x-api-key: $MERCURY_API_KEY" 'https://mercury.postlight.com/parser?url='$argv[1] | jq -r... | function getmd -d "Retrieve single URL, convert to markdown"
if test -z $MERCURY_API_KEY
echo "error: MERCURY_API_KEY not set"
return 1
end
if test -z $argv[1]
echo "usage: $_ url"
return 1
end
curl -s -G --data-urlencode (printf "url=%s" $argv[1]) -H "x-api-key: $MERCURY_API_KEY" https://merc... | Handle URLs with ? and & | Handle URLs with ? and &
| fish | apache-2.0 | ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles |
abe32ec497d58f4c13199bde6661b8bfa745bb05 | .config/fish/functions/fn.fish | .config/fish/functions/fn.fish | # Create a new function.
function fn --argument-names function_name
if functions --query $function_name
yn $function_name" already exists. Edit?"
and fe $function_name
return
end
set -l file ~/.config/fish/functions/$function_name.fish
# Function template
echo \
"# $fun... | # Create a new function.
function fn --argument-names function_name
if functions --query $function_name
yn $function_name" already exists. Edit?"
and fe $function_name
return
end
set -l file ~/.config/fish/functions/$function_name.fish
# Function template
echo \
"# $fun... | Remove quotes from empty arg test | Remove quotes from empty arg test
| fish | mit | phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.