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 |
|---|---|---|---|---|---|---|---|---|---|
28b048e6a21861585cbf26f7c0018f5c1d6ddc66 | functions/__z_complete.fish | functions/__z_complete.fish | function __z_complete -d "add completions"
function __z_marks
printf "%s\n" (string replace -r '\|.*' '' < $Z_DATA)
end
complete -c $Z_CMD -a "(__z -l | string replace -r '^\\S*\\s*' '')" -f -k
complete -c $ZO_CMD -a "(__z -l | string replace -r '^\\S*\\s*' '')" -f -k
complete -c $Z_CMD -s c -l clean ... | function __z_complete -d "add completions"
function __z_marks
printf "%s\n" (string replace -r '\|.*' '' < $Z_DATA)
end
complete -c $Z_CMD -a "(__z -l | string replace -r '^\\S*\\s*' '')" -f -k
complete -c $ZO_CMD -a "(__z -l | string replace -r '^\\S*\\s*' '')" -f -k
complete -c $Z_CMD -s c -l clean ... | Add argument completion for "-x/--delete" | Add argument completion for "-x/--delete" | fish | mit | fisherman/z |
e03468a41fb6e130f3f3c181aec3d48532849b65 | functions/shorten_path.fish | functions/shorten_path.fish | function shorten_path
set -l prefix $HOME
set -l replacement "~"
if test (count $argv) -gt 2
set prefix $argv[2]
set replacement $argv[3]
end
set -l partial_result (string replace -r "^$prefix(/|\$)" "$replacement\$1" $argv[1])
string replace -ra '(\\.?[^/]{1})[^/]*/' '$1/' $partial_result
end
| function shorten_path
set -l prefix $HOME
set -l replacement "~"
if test (count $argv) -gt 2
set prefix $argv[2]
set replacement $argv[3]
end
set -l partial_result (string replace -r "^$prefix(/|\$)" "$replacement\$1" $argv[1])
string replace -ra '(\\.?[^/])[^/]*/' '$1/' $partial_result
end
| Remove a rather embarrising redundant quantifier | Remove a rather embarrising redundant quantifier
| fish | mit | wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar |
1de5078b9b30f300d31d2770d472e282f1d94b30 | fish/.config/fish/functions/phone_battery_status.fish | fish/.config/fish/functions/phone_battery_status.fish | function phone_battery_status --description='Get battery status and level from KDEConnect to display in i3status-rs'
argparse --name phone_battery_status 'd/device=' -- $argv
or return 1 #error
set path "/modules/kdeconnect/devices/$_flag_device"
set charging (qdbus org.kde.kdeconnect $path org.kde.kdeconnec... | function phone_battery_status --description='Get battery status and level from KDEConnect to display in i3status-rs'
argparse --name phone_battery_status 'd/device=' -- $argv
or return 1 #error
if test -z $_flag_device
# just grab first device found (TODO: see what happens if more than one device is connec... | Add fallack for device ID | Add fallack for device ID
| fish | mit | ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles |
0fd5039cbfa1c1c1eab0909b7631b135d7e626c3 | fish/.config/fish/config.fish | fish/.config/fish/config.fish | set -gx GOROOT /usr/lib/go
set -gx GOPATH $HOME/dev/go
set -gx PATH $PATH $HOME/dev/go/bin
alias blaze "bazel"
| set -gx GOROOT /usr/lib/go
set -gx GOPATH $HOME/dev/go
set -gx PATH $PATH $HOME/dev/go/bin
alias blaze "bazel"
set fish_color_normal c5c8c6
set fish_color_error cc6666
set fish_color_command c5c8c6 --bold
set fish_color_quote b5bd68
set fish_color_end cc6666
set fish_color_redirection b294bb --bold
set fish_color_par... | Set custom color scheme for fish | Set custom color scheme for fish
| fish | mit | lionell/.dotfiles |
b3296c4d630d0776dadfee3ce6ce20fe83fc3b57 | fish/.config/fish/config.fish | fish/.config/fish/config.fish | source ~/.config/fish/variables.fish
source ~/.config/fish/aliases.fish
| source ~/.config/fish/variables.fish
source ~/.config/fish/aliases.fish
set -g fish_user_paths "/usr/local/sbin" $fish_user_paths
| Add `/usr/local/sbin` to user path | :wrench: Add `/usr/local/sbin` to user path
| fish | mit | nickwaelkens/dotfiles,nickwaelkens/dotfiles |
123488b9a6d8a9246becd46b60434882dd7047e2 | misc.fish | misc.fish | alias nvm 'bass source ~/.nvm/nvm.sh --no-use ";" nvm' # Use nvm because it by default doesn't work with fish
alias psf 'pgrep' # Find a running process
alias dit 'docker exec -it'
alias dr 'docker run'
alias db 'docker build'
alias sagi 'sudo apt-get install -y'
alias bi 'brew install'
alias bs 'brew services'
alias e... | alias nvm 'bass source ~/.nvm/nvm.sh --no-use ";" nvm' # Use nvm because it by default doesn't work with fish
alias psf 'pgrep' # Find a running process
alias dit 'docker exec -it'
alias dr 'docker run'
alias db 'docker build'
alias sagi 'sudo apt-get install -y'
alias bi 'brew install'
alias bs 'brew services'
alias e... | Make renv use Sailthru Sandbox example | Make renv use Sailthru Sandbox example
| fish | mit | moskyb/fish-config |
7028bc872e6149a411331edb7ba5432d4128c9ea | misc.fish | misc.fish | alias nvm 'bass source ~/.nvm/nvm.sh --no-use ";" nvm' # Use nvm because it by default doesn't work with fish
alias psf 'pgrep' # Find a running process
alias dit 'docker exec -it'
alias dr 'docker run'
alias db 'docker build'
alias sagi 'sudo apt-get install -y'
alias bi 'brew install'
alias bs 'brew services'
alias c... | alias nvm 'bass source ~/.nvm/nvm.sh --no-use ";" nvm' # Use nvm because it by default doesn't work with fish
alias psf 'pgrep' # Find a running process
alias dit 'docker exec -it'
alias dr 'docker run'
alias db 'docker build'
alias sagi 'sudo apt-get install -y'
alias bi 'brew install'
alias bs 'brew services'
alias c... | Rewrite mkcd as function, add kp | Rewrite mkcd as function, add kp
| fish | mit | moskyb/fish-config |
0e18384d5d0371aab91b64034dda09cc1f570d87 | 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 -... | 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.json
if has $policy $role
aws iam create-role --role-n... | Change expected path for AssumeRole Policy | Change expected path for AssumeRole Policy
This changes create-role to look for the AssumeRole Policy at
`iam/roles/ROLENAME/assume-role.json`.
| fish | mit | colstrom/shellops-aws,colstrom/piranha |
f33cb060be2338af207907c749c003594c5571e8 | .config/fish/config.fish | .config/fish/config.fish | # pyenv fish
set -gx PYENV_ROOT "$HOME/.pyenv"
set -x PATH $PATH "$PYENV_ROOT/bin"
status --is-interactive; and . (pyenv init - | psub)
# emacs alias
alias e="emacs -nw"
# peco
function peco_select_history
if set -q $argv
history | peco | read line; commandline $line
else
history | peco --quer... | # pyenv fish
set -gx PYENV_ROOT "$HOME/.pyenv"
set -x PATH $PATH "$PYENV_ROOT/bin"
status --is-interactive; and . (pyenv init - | psub)
# emacs alias
alias e="emacs -nw"
# peco
function peco_select_history
if set -q $argv
history | peco | read line; commandline $line
else
history | peco --quer... | Fix gacp function with count command | Fix gacp function with count command
| fish | mit | kyon-bll/.dotfiles |
eadc724c8afcb15a9d75b0e79dc844810b731a4e | config/fish/config.fish | config/fish/config.fish | fish_vi_key_bindings
for word in "$HOME/"{bin,.local/bin,go/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/share/autojump/autoju... | fish_vi_key_bindings
for word in "$HOME/"{bin,.local/bin,go/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/share/autojump/autoju... | Switch to Python 3.5 user bins | fix: Switch to Python 3.5 user bins
| fish | mit | e4r7hbug/dotfiles,e4r7hbug/dotfiles |
fb98f61b218a7af80439848537653cfb2e9279b1 | functions/shorten_path.fish | functions/shorten_path.fish | function shorten_path
if test -z $argv[2]
echo $argv[1] | sed -e "s#$HOME#~#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
else
echo $argv[1] | sed -e "s#$argv[2]#$argv[3]#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
end
end
| function shorten_path
if test (count $argv) -lt 3
echo $argv[1] | sed -e "s#$HOME#~#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
else
echo $argv[1] | sed -e "s#$argv[2]#$argv[3]#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
end
end
| Use count to check if enough arguments are given | Use count to check if enough arguments are given
The old method gave errors about expanding arguments
| fish | mit | wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar |
0b1dd017bcfc84d4c39706439caf2ea83c1f51cc | config/fish/config.fish | config/fish/config.fish | # Turn off the default greeting
set fish_greeting
# Specify my preferred path dirs here (in reverse order) and ensure they get
# re-placed at the front of the current $PATH.
#
# Include Postgres.app here, before asdf inits, so asdf's shims end up first
# of all (allowing Postgres.app to be seen by asdf as the "system"... | # Turn off the default greeting
set fish_greeting
# Specify my preferred path dirs here (in reverse order) and ensure they get
# re-placed at the front of the current $PATH.
#
# Include Postgres.app here, before asdf inits, so asdf's shims end up first
# of all (allowing Postgres.app to be seen by asdf as the "system"... | Stop homebrew from auto updating | Stop homebrew from auto updating
| fish | mit | timriley/dotfiles,timriley/dotfiles |
aee4f1950f85f50344d4e37614ad55b3ec93073e | config/fish/config.fish | config/fish/config.fish | ##
# onnimonni preferred aliases and functions
##
##
# Get current conf file directory
# This needs to resolve symlinks from rcm
##
function fish_config_dir
switch (uname)
case Darwin # OS-X
echo ( dirname ( readlink (status --current-filename) ) )
case '*'
echo ( dirname ( readlink -f (... | ##
# onnimonni preferred aliases and functions
##
##
# Get current conf file directory
# This needs to resolve symlinks from rcm
##
function fish_config_dir
switch (uname)
case Darwin # OS-X
echo ( dirname ( readlink (status --current-filename) ) )
case '*'
echo ( dirname ( readlink -f (... | Add npm packages to PATH | Add npm packages to PATH
| fish | unlicense | onnimonni/dotfiles |
df69db74717005172d15f9160aca0e6acef7c716 | .config/fish/functions/📱__xcode.fish | .config/fish/functions/📱__xcode.fish | # Installs and updates Xcode.
#
# Sequencing
# - After: rubygems (uses xcode-install)
function 📱__xcode
echo "📱 Xcode"
echo
if test -z $XCODE_INSTALL_USER; and test -n (user.email)
set --export --universal XCODE_INSTALL_USER (user.email)
end
# Update the list of available versions to in... | # Installs and updates Xcode.
# https://developer.apple.com/downloads/
#
# Sequencing
# - After: rubygems (uses xcode-install)
function 📱__xcode
echo "📱 Xcode"
echo
if test -z $XCODE_INSTALL_USER; and test -n (user.email)
set --export --universal XCODE_INSTALL_USER (user.email)
end
# Cu... | Print current Xcode version before doing anything else | [upstall] Print current Xcode version before doing anything else
| fish | mit | phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles |
fe4a7b0937281fa3efb0d0de844c3288cc0aef3f | functions/user-access-keys.fish | functions/user-access-keys.fish | function user-access-keys --argument user
if empty "$user"
usage user-access-keys '<user>'
return (false)
end
aws iam list-access-keys --user-name "$user" | jq --raw-output .AccessKeyMetadata[].AccessKeyId
end
| Add function to find access keys for a user | Add function to find access keys for a user
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
5fff561cd43d3d1a09de5adbb39a6a4b9fafbcf4 | functions/shorten_path.fish | functions/shorten_path.fish | function shorten_path
if test (count $argv) -lt 3
echo $argv[1] | sed -e "s#$HOME#~#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
else
echo $argv[1] | sed -e "s#$argv[2]#$argv[3]#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
end
end
| function shorten_path
if test (count $argv) -lt 3
echo $argv[1] | sed -e "s#$HOME\\(/\\|\$\\)#~\1#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
else
echo $argv[1] | sed -e "s#$argv[2]\\(/\\|\$\\)#$argv[3]\1#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
end
end
| Fix shorten path incorrectly shortening files in /home | Fix shorten path incorrectly shortening files in /home
| fish | mit | wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar |
d712ae5e8c0d8d353e55f979b9fd4bcf6b72da13 | fish/.config/fish/abbreviations.fish | fish/.config/fish/abbreviations.fish | abbr -a -- - 'cd -'
abbr -a axel 'axel -a'
abbr -a b 'brew'
abbr -a c 'nix-shell -p clojure --command "clojure -A:rebel -A:cheshire"'
abbr -a dl 'wget -r -l 1 -np -nd'
abbr -a fn 'find . -iname'
abbr -a g git
abbr -a ga git add
abbr -a gap git add --patch
abbr -a gb git branch
abbr -a gc git commit --verbose
abbr -a g... | abbr -a -- - 'cd -'
abbr -a axel 'axel -a'
abbr -a b 'brew'
abbr -a c 'nix-shell -p clojure --command "clojure -A:rebel -A:cheshire"'
abbr -a c3 'cal -3'
abbr -a dl 'wget -r -l 1 -np -nd'
abbr -a fn 'find . -iname'
abbr -a g git
abbr -a ga git add
abbr -a gap git add --patch
abbr -a gb git branch
abbr -a gc git commit... | Add `c3` abbreviation for `cal -3` | Add `c3` abbreviation for `cal -3`
I suspect I'll be using this often
| fish | mit | spinningarrow/.files,spinningarrow/.files |
7e61cce0c851d1ec280caab3273ba888b12840cd | stowed/.config/fish/functions/yolo.fish | stowed/.config/fish/functions/yolo.fish | function yolo
# Early sudo because it's needed later.
sudo echo "Updating the entire bloody universe."
cd ~/.config/nixpkgs; git pull --rebase --autostash; cd -
if ! set -q DOTFILES_GUEST
sudo nix-channel --update
sudo nixos-rebuild switch
end
nix-channel --update
home-manager switch
nix-env ... | function yolo
# Early sudo because it's needed later.
sudo echo "Updating the entire bloody universe."
cd ~/.config/nixpkgs; git pull --rebase --autostash; cd -
if ! set -q DOTFILES_GUEST
sudo nix-channel --update
sudo nixos-rebuild switch --upgrade
end
nix-channel --update
home-manager switch
... | Add --upgrade to rebuild switch | Add --upgrade to rebuild switch
| fish | unlicense | Olical/dotfiles |
0f2ba726d899855858f930e154cf42c555f18bfc | functions/fish_right_prompt.fish | functions/fish_right_prompt.fish | function fish_right_prompt
if status --is-interactive
set -l __paradox_date (command date +%I:%M:%S%P ^/dev/null)
if type -q ruby
# have to use the echo inline to prevent obnoxious spaces, i.e. (💎 2.3.0 )
set __paradox_rb_version (echo -s "(💎 " (command ruby -e 'print RUBY_VERSION' ^/dev/null) ... | function fish_right_prompt
if status --is-interactive
set -l __paradox_date (command date +%I:%M:%S%p ^/dev/null)
if type -q ruby
# have to use the echo inline to prevent obnoxious spaces, i.e. (💎 2.3.0 )
set __paradox_rb_version (echo -s "(💎 " (command ruby -e 'print RUBY_VERSION' ^/dev/null) ... | Update timestamp to actually show meridian state | Update timestamp to actually show meridian state
| fish | mit | paradox460/paradox-theme |
70fa4b503a796f8325ed2d28a7ad48129c9bf35e | .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 ... | Change pip3 back to versionless pip | [upstall] Change pip3 back to versionless pip
| fish | mit | phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles |
5e7a012ed9f50dab5332a37a2e200a3adb78ba6e | .config/fish/functions/fish_title.fish | .config/fish/functions/fish_title.fish | function fish_title
set -l process $_
set -l god ""
set -l on_project ""
set -l title ""
if [ (whoami) = "root" -o $process = "sudo" ]
set god "⚡ "
end
if set -q FISH_TITLE
set title $FISH_TITLE
else
if [ $process = "fish" ]
set title (prompt_pwd)
else
if test (git rev-parse --is-inside-work-tr... | function fish_title
set -l process $_
set -l god ""
set -l on_project ""
set -l title ""
if [ (whoami) = "root" -o $process = "sudo" ]
set god "⚡ "
end
if set -q FISH_TITLE
set title $FISH_TITLE
else
if [ $process = "fish" ]
set title (prompt_pwd)
else
if git_is_repo
and test -n git_reposit... | Use git_is_repo instead from fisherman/git_util | Use git_is_repo instead from fisherman/git_util
| fish | mit | stefanmaric/dotfiles,stefanmaric/dotfiles |
b5338fe45de7d630e6cd4cbecd0a9c3380e9c266 | functions/__fresco_remove_plugin.fish | functions/__fresco_remove_plugin.fish | function __fresco_remove_plugin
set -l force_option false
switch "$argv[1]"
case ''
__fresco_log 'ERROR: specify at least one plugin name'
return 1
case -f --force
set force_option true
end
set -l plugins $argv[1..-1]
if eval $force_option
... | function __fresco_remove_plugin
set -l force_option false
switch "$argv[1]"
case ''
__fresco_log 'ERROR: specify at least one plugin name'
return 1
case -f --force
set force_option true
end
set -l plugins $argv[1..-1]
if eval $force_option
... | Use `mktemp` comannd in creating temporary files | Use `mktemp` comannd in creating temporary files
| fish | mit | masa0x80/fresco |
f4592bb4254d17ca8b56d9512e2becb73e66a74e | config/fish/exports.fish | config/fish/exports.fish |
# Make fish the default shell
set -gx SHELL (which fish);
# Make vim the default editor
set -gx EDITOR "vim";
# Prefer US English and use UTF-8
set -gx LANG "en_US.UTF-8";
set -gx LC_ALL "en_US.UTF-8";
set -gx LC_NUMERIC "es_ES.UTF-8";
set -gx LC_MONETARY "es_ES.UTF-8";
set -gx LC_DATE "es_ES.UTF-8"... |
# Make fish the default shell
set -gx SHELL (which fish);
# Make nvim the default editor
set -gx EDITOR "nvim";
set -gx VISUAL "nvim";
# Prefer US English and use UTF-8
set -gx LANG "en_US.UTF-8";
set -gx LC_ALL "en_US.UTF-8";
set -gx LC_NUMERIC "es_ES.UTF-8";
set -gx LC_MONETARY "es_ES.UTF-8";
set -gx... | Make neovim the default editor | Make neovim the default editor
| fish | mit | jacegu/dotfiles,jacegu/dotfiles |
3570c4464bdfd0f312e22a0b407a8c0ba98b7e0d | functions/thefuck-command-line.fish | functions/thefuck-command-line.fish | function thefuck-command-line
env THEFUCK_REQUIRE_CONFIRMATION=0 thefuck $history[1] ^ /dev/null | read fuck
[ -z $fuck ]; and return
commandline -r $fuck
end
| function thefuck-command-line
env THEFUCK_REQUIRE_CONFIRMATION=0 thefuck $history[1] 2> /dev/null | read fuck
[ -z $fuck ]; and return
commandline -r $fuck
end
| Make stderr redirection compatible with Fish 3.0. | Make stderr redirection compatible with Fish 3.0.
| fish | mit | oh-my-fish/plugin-thefuck |
756be5e8a7b564f5f98163314cc072b4ecbfa739 | fish/aliases.fish | fish/aliases.fish | # This file contains aliases which are useful for all instances of fish
alias lsa 'ls -aBhsl'
| # This file contains aliases which are useful for all instances of fish
alias lsa 'ls -aBhsl'
# it's happened enough times
alias :q exit
| Add `:q` as alias for `exit`. | Add `:q` as alias for `exit`.
| fish | mit | deoxys314/deoxys314_dotfiles |
57cd42e61dff4763f62531ee7c7415e7f2fed482 | segments/vfish.fish | segments/vfish.fish | #!/usr/bin/env fish
# -*- mode:fish; tab-width:4 -*-
set FLSYM_VFISH "\u2302"
function FLSEG_VFISH
if set -q VIRTUAL_ENV
FLINT_CLOSE $FLCLR_VFISH_BG $FLCLR_VFISH_FG
printf $FLSYM_VFISH" "$VIRTUAL_ENV | sed 's/\/.*\///; s/^/ /; s/$/ /'
end
end | #!/usr/bin/env fish
# -*- mode:fish; tab-width:4 -*-
set FLSYM_VFISH "\u2302"
function FLSEG_VFISH
if set -q VIRTUAL_ENV
FLINT_CLOSE $FLCLR_VFISH_BG $FLCLR_VFISH_FG
printf $FLSYM_VFISH" "(basename $VIRTUAL_ENV)
end
end | Fix VFISH segment printing a newline | Fix VFISH segment printing a newline
plus it’s cleaner ;)
| fish | mit | jerr0328/fishline,0rax/fishline,crmne/fishline,jmwatte/fishline |
42454b24558abc25eb22b1b7535d49772d2995bb | fish/.config/fish/config.fish | fish/.config/fish/config.fish | set CLJ_SCRIPTS $HOME/clojure-scripts
mkdir -p ~/bin ~/npm/bin ~/.cargo/bin $CLJ_SCRIPTS/bin
set fish_greeting ""
set LANG en_GB.UTF-8
set PATH ~/bin ~/npm/bin ~/.cargo/bin $CLJ_SCRIPTS/bin $PATH
set BROWSER chromium
set EDITOR nvim
set VISUAL nvim
# Kill all running containers.
alias dockerkill='docker kill (docker... | mkdir -p ~/bin ~/npm/bin ~/.cargo/bin
set fish_greeting ""
set LANG en_GB.UTF-8
set PATH ~/bin ~/npm/bin ~/.cargo/bin $PATH
set BROWSER chromium
set EDITOR nvim
set VISUAL nvim
# Kill all running containers.
alias dockerkill='docker kill (docker ps -q)'
# Delete all docker images and containers.
alias dockernuke='do... | Remove hints of clojure-scripts, just use the pkg | Remove hints of clojure-scripts, just use the pkg
| fish | unlicense | Olical/dotfiles,Wolfy87/dotfiles,Wolfy87/dotfiles |
4e07aaceeb1de0c8bc5388d48f03ac79ffb99486 | .config/fish/gpg.fish | .config/fish/gpg.fish | # GPG agent
function __refresh_gpg_agent_info -d "Reload ~/.gpg-agent-info into environment"
cat ~/.gpg-agent-info | sed 's/=/ /' | while read key value
set -e $key
set -U -x $key "$value"
end
end
if not set -q -x GPG_AGENT_INFO
gpg-agent --daemon --write-env-file ~/.gpg-agent-info > /dev/null ^ /dev/null
end
... | # GPG agent
function __refresh_gpg_agent_info -d "Reload ~/.gpg-agent-info into environment"
cat ~/.gpg-agent-info | sed 's/=/ /' | while read key value
set -e $key
set -U -x $key "$value"
end
end
if command -s gpg-agent > /dev/null
if not set -q -x GPG_AGENT_INFO
gpg-agent --daemon --write-env-file ~/.gpg-ag... | Check if GPG agent is installed. | Check if GPG agent is installed.
| fish | mit | JDevlieghere/dotfiles,Gres/dotfiles,JDevlieghere/dotfiles,Gres/dotfiles,JDevlieghere/dotfiles,Gres/dotfiles |
56c2a73749e39ee41126666518912388d2e7839d | stowed/.config/fish/functions/yolo.fish | stowed/.config/fish/functions/yolo.fish | function yolo
# Early sudo because it's needed later.
sudo echo "Updating the entire bloody universe."
cd ~/.config/nixpkgs; git pull --no-rebase; cd -
if ! set -q DOTFILES_GUEST
sudo nix-channel --update
sudo nixos-rebuild switch
end
nix-channel --update
home-manager switch
if ! set -q DOTF... | function yolo
# Early sudo because it's needed later.
sudo echo "Updating the entire bloody universe."
cd ~/.config/nixpkgs; git pull --no-rebase; cd -
if ! set -q DOTFILES_GUEST; and ! set -q DOTFILES_JUST_NIX
sudo nix-channel --update
sudo nixos-rebuild switch
end
nix-channel --update
home-ma... | Tweak my update script for pairing host | Tweak my update script for pairing host
| fish | unlicense | Olical/dotfiles |
8496a1211b7dbe4fc56530039f2372081df3b602 | functions/hg/vcs.dirty.fish | functions/hg/vcs.dirty.fish | function vcs.dirty
command hg summary 2>/dev/null | command grep -q 'commit: (clean)' ^/dev/null
end
| function vcs.dirty
command hg summary 2> /dev/null | command grep -q 'commit: (clean)' 2> /dev/null
end
| Make stderr redirection compatible with Fish 3.0. | Make stderr redirection compatible with Fish 3.0.
| fish | mit | oh-my-fish/plugin-vcs |
46e165485d5c8263fc1a995b30647a9395a653d8 | fish/.config/fish/config.fish | fish/.config/fish/config.fish | alias gs='git status'
alias ga='git add'
alias gc='git commit'
alias push='git push'
alias pull='git pull'
alias gl='git log -10 --oneline'
| alias gs='git status'
alias ga='git add'
alias gc='git commit'
alias push='git push'
alias pull='git pull'
alias gl='git log -10 --oneline'
set -gx GOPATH $HOME/dev/go
set -gx PATH $PATH $HOME/dev/go/bin
| Set GOPATH and update PATH for Go installation | Set GOPATH and update PATH for Go installation
| fish | mit | lionell/.dotfiles |
d06fe219e382369cbe1a06490e4e73ffeb032aa0 | conf.d/_mason-alias.fish | conf.d/_mason-alias.fish | alias f 'find -L . -name'
alias p 'ps -ef'
alias pf 'ps -ef | grep'
alias disk-space 'df -h'
alias ipinfo 'curl ipinfo.io'
function find-string -d 'Find string in all files under current directory. http://explainshell.com/explain?cmd=grep+-rnw+.+-H+-e+%24argv '
grep -rnw . -H -e $argv
end
function does-exist
retu... | alias f 'find -L . -name'
alias p 'ps -ef'
alias pf 'ps -ef | grep'
alias disk-space 'df -h'
alias ipinfo 'curl ipinfo.io'
function find-string -d 'Find string in all files under current directory. http://explainshell.com/explain?cmd=grep+-rnw+.+-H+-e+%24argv '
grep -rnwi . -H -e $argv
end
function does-exist
ret... | Use case ignore for `find-string` utility | Use case ignore for `find-string` utility
| fish | mit | masonwan/fish-config,masonwan/fish-config |
818ad6979491cf73bae9755497810a29b1e2efc1 | .config/fish/config.fish | .config/fish/config.fish | set -gx fish_greeting
env -i -- sh -c ". \"$HOME/.env\" && exec env -u _ -u PWD -u SHLVL" | sed -e 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=\(.*\)/set -gx \1 \2/' | source
switch (uname)
case 'Darwin'
set -q $HOMEBREW_PREFIX; and test -x /usr/local/bin/brew; and env SHELL=/bin/fish /usr/local/bin/brew shellenv | source
... | set -gx fish_greeting
env -i -- sh -c ". \"$HOME/.env\" && exec env -u _ -u PWD -u SHLVL" | sed -e 's/^/set -gx /' -e 's/=/ /' | source
switch (uname)
case 'Darwin'
set -q $HOMEBREW_PREFIX; and test -x /usr/local/bin/brew; and env SHELL=/bin/fish /usr/local/bin/brew shellenv | source
case 'Linux'
set -q $... | Simplify sh to fish translation | Simplify sh to fish translation
| fish | bsd-2-clause | ntkme/ntkme,ntkme/ntkme |
3a4b9042e39549c1837a21bf8df4c67576340343 | asdf.fish | asdf.fish | #!/usr/bin/env fish
set -l asdf_dir (dirname (status -f))
# we get an ugly warning when setting the path if shims does not exist
mkdir -p $asdf_dir/shims
if not contains $asdf_dir/{bin,shims} $PATH
and test -d $asdf/{bin,shims}
set -gx PATH $asdf_dir/{bin,shims} $PATH
end
| #!/usr/bin/env fish
set -l asdf_dir (dirname (status -f))
# we get an ugly warning when setting the path if shims does not exist
mkdir -p $asdf_dir/shims
for x in $asdf_dir/{bin,shims}
if not contains $x $PATH
and test -d $x
set -gx PATH $x $PATH
end
end
| Fix issue with Fish shell shim loading script | Fix issue with Fish shell shim loading script
| fish | mit | Stratus3D/asdf,asdf-vm/asdf |
fed17d7ac138586463e1b3150c1b86acbba6f8d5 | fish/config.fish | fish/config.fish | set -g fish_greeting ''
set -x EDITOR (which vim)
set -x NODE_PATH /usr/local/lib/node_modules
set -x PATH /usr/local/bin $PATH
set -x PATH /usr/local/sbin $PATH
set -x PATH $HOME/bin $PATH
source ~/.iterm2_shell_integration.(basename $SHELL)
status --is-interactive; and source (rbenv init -|psub) | set -g fish_greeting ''
set -x EDITOR (which vim)
set -x NODE_PATH /usr/local/lib/node_modules
set -x PATH /usr/local/bin $PATH
set -x PATH /usr/local/sbin $PATH
set -x PATH $HOME/bin $PATH
set -x PATH /Applications/Postgres.app/Contents/Versions/latest/bin $PATH
source ~/.iterm2_shell_integration.(basename $SHELL)
s... | Add Postgres to the path. | Add Postgres to the path.
| fish | mit | atogle/dotfiles |
d2089f3285e9f1a2fd0dfb888f576a5fdbe3d0b0 | functions/create-instance.fish | functions/create-instance.fish | function create-instance --argument vpc name
trace (status --current-filename) $argv
if empty "$vpc" "$name"
usage create-instance '<vpc>' '<name>'
return (false)
end
set instance "vpcs/$vpc/instances/$name"
if has $name vpcs/$vpc/instances
for property in (get $instance |... | Add function to create instances | Add function to create instances
| fish | mit | colstrom/shellops-aws,colstrom/piranha | |
58ec5b84c49604b651fdeac25423f556f756254c | functions/fish_prompt.fish | functions/fish_prompt.fish | set -g fish_color_user green --bold
set -g fish_color_host cyan --bold
set -g fish_color_cwd normal
#set -g fish_color_git_path yellow
function fish_prompt --description "Write out the prompt"
set -l last_status $status
# User
if not test $last_status -eq 0
set_color $fish_color_error
end
echo -n '┌'
... | set -g fish_color_user green --bold
set -g fish_color_host cyan --bold
set -g fish_color_container_name yellow --bold
set -g fish_color_cwd normal
#set -g fish_color_git_path yellow
function fish_prompt --description "Write out the prompt"
set -l last_status $status
# User
if not test $last_status -eq 0
set... | Add new color for Docker host or CONTAINER_NAME environment variable | Add new color for Docker host or CONTAINER_NAME environment variable
| fish | apache-2.0 | kocsob/fish-theme |
744625041a646e2035323a2c6d0d246bf04de1b9 | fish/config.fish | fish/config.fish | bind \e\[1\;5C forward-word
bind \e\[1\;5D backward-word
# aliases
alias ..='cd ..'
alias b='bundle'
alias bs='bundle exec rails server'
alias bake='bundle exec rake'
alias gs='git status'
alias gst='git stash'
alias gsa='git stash apply'
alias gd='git diff'
| bind \e\[1\;5C forward-word
bind \e\[1\;5D backward-word
# aliases
alias ..='cd ..'
alias b='bundle'
alias bs='bundle exec rails server'
alias bake='bundle exec rake'
alias gs='git status'
alias gst='git stash'
alias gsa='git stash apply'
alias gd='git diff'
# path
set PATH ~/bin $PATH
| Add ~/bin to my fish PATH. | Add ~/bin to my fish PATH.
| fish | mit | christhomson/dotfiles,christhomson/dotfiles |
fff23086e1f732f68ba63afef6c625772a86f4f3 | fish_prompt.fish | fish_prompt.fish | # name: GitStatus
# Find latest version from: https://github.com/godfat/fish_prompt-gitstatus
function _git_branch_name
echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end
function _git_status_symbol
set -l git_status (git status --porcelain ^/dev/null)
if test -n "$git_status"
#... | # name: GitStatus
# Find latest version from: https://github.com/godfat/fish_prompt-gitstatus
function _git_branch_name
echo (command git symbolic-ref HEAD 2> /dev/null | sed -e 's|^refs/heads/||')
end
function _git_status_symbol
set -l git_status (git status --porcelain 2> /dev/null)
if test -n "$git_status"
... | Make stderr redirection compatible with Fish 3.0. | Make stderr redirection compatible with Fish 3.0.
| fish | mit | oh-my-fish/theme-gitstatus |
e71317aa1982691ee85eac49cce6bc8222c9db77 | fish_title.fish | fish_title.fish | function fish_title
[ "$theme_title_display_process" = 'yes' ]; and echo $_ ' '
[ "$theme_title_display_path" != 'no' ]; and pwd
end
| function fish_title
[ "$theme_title_display_process" = 'yes' ]; and echo $_ ' '
[ "$theme_title_display_path" != 'no' ]; and prompt_pwd
end
| Use a compact path in the title. | Use a compact path in the title.
See #11
| fish | mit | oh-my-fish/theme-bobthefish |
74704e0567fca60a6dee21653ac925b24292f84a | conf.d/aliases.fish | conf.d/aliases.fish |
alias _r "exec fish"
if which pacaur >/dev/null ^/dev/null
abbr p "pacaur"
else if which pacman >/dev/null ^/dev/null
abbr p "pacman"
end
if which exa >/dev/null ^/dev/null
abbr l "exa -F --group-directories-first"
abbr ll "exa -lF --git --group-directories-first"
else
abbr l "ls --group-directories-first"
abbr... |
alias _r "exec fish"
if which pacaur >/dev/null ^/dev/null
abbr p "pacaur"
else if which pacman >/dev/null ^/dev/null
abbr p "pacman"
end
if which exa >/dev/null ^/dev/null
abbr l "exa -F --group-directories-first"
abbr ll "exa -lF --group-directories-first"
else
abbr l "ls --group-directories-first"
abbr ll "l... | Stop using `--git` on exa | Stop using `--git` on exa
| fish | mit | Dietr1ch/config-fish |
188de577159de8c53e5af0b04e01596a89b07b5d | dot.config/fish/config.fish | dot.config/fish/config.fish | # Language
set -gx LANGUAGE en_US.UTF-8
set -gx LANG $LANGUAGE
set -gx LC_ALL $LANGUAGE
set -gx LC_CTYPE $LANGUAGE
# Editor
set -gx EDITOR vim
set -gx CVSEDITOR $EDITOR
set -gx SVN_EDITOR $EDITOR
set -gx GIT_EDITOR $EDITOR
# Pager
set -gx PAGER less
# XDG
set -gx XDG_CACHE_HOME $HOME/.cache
set -gx XDG_CONFIG_HOME $... | # Language
set -gx LANGUAGE en_US.UTF-8
set -gx LANG $LANGUAGE
set -gx LC_ALL $LANGUAGE
set -gx LC_CTYPE $LANGUAGE
# Editor
set -gx EDITOR vim
set -gx CVSEDITOR $EDITOR
set -gx SVN_EDITOR $EDITOR
set -gx GIT_EDITOR $EDITOR
# Pager
set -gx PAGER less
# XDG
set -gx XDG_CACHE_HOME $HOME/.cache
set -gx XDG_CONFIG_HOME $... | Remove unnecessary setting on fish | Remove unnecessary setting on fish
| fish | mit | ojiry/dotfiles |
f91b14f0ddf49adcce5410a9fee8c7b58e00cc39 | fish_right_prompt.fish | fish_right_prompt.fish |
function get_git_status -d "Gets the current git status"
if command git rev-parse --is-inside-work-tree >/dev/null 2>&1
set -l dirty (command git status -s --ignore-submodules=dirty | wc -l | sed -e 's/^ *//' -e 's/ *$//' 2> /dev/null)
set -l ref (command git symbolic-ref --short HEAD 2> /dev/null ; or comma... |
function get_git_status -d "Gets the current git status"
if command git rev-parse --is-inside-work-tree >/dev/null 2>&1
set -l dirty (command git status -s --ignore-submodules=dirty | wc -l | sed -e 's/^ *//' -e 's/ *$//' 2> /dev/null)
set -l ref (command git describe --tags --exact-match ^/dev/null ; or com... | Add tag name in ref | Add tag name in ref
| fish | mit | oh-my-fish/theme-cmorrell.com |
4a64a3b51a8bc743a7e3aa77153c04649e76dfc0 | .config/fish/functions/char-index.fish | .config/fish/functions/char-index.fish | function char-index -d "Prints character indexes of the given strings"
set --local argc (count $argv)
for arg_i in (seq $argc)
set --local chars (string split '' $argv[$arg_i])
for i in (seq (count $chars))
echo $i: $chars[$i]
end
test $arg_i -lt $argc
and e... | Add function to show char indexes in a string | :fish: Add function to show char indexes in a string
$ char-index abc def
1: a
2: b
3: c
1: d
2: e
3: f
| fish | mit | dideler/dotfiles,dideler/dotfiles | |
9d6d446bd87cf6430be7da0eda79296311c3b69f | config/tmux/init.fish | config/tmux/init.fish | function tmux::autostart
if not command --search --quiet "tmux"
return
end
if test -n "$SSH_TTY" -o -n "$TMUX" -o -n "$EMACS" -o -n "$VIM"
return
end
set name $argv[1]
tmux start-server
if not tmux has-session ^ /dev/null
tmux new-session -d -s $name
tmux set-option -t $name destroy-una... | Implement tmux functions for fish. | Implement tmux functions for fish.
| fish | mit | charlesbjohnson/dotfiles,charlesbjohnson/dotfiles | |
5401a480131ade19a9eca80092b689997837fd3f | .config/fish/functions/vhup.fish | .config/fish/functions/vhup.fish | #!/usr/bin/fish
function vhup -d "Halts current vagrant, ups another"
if test (count $argv) -lt 1
echo "Syntax: vhup <project>"
echo "Must specify project name to switch to."
else
set -l project ~/dev/$argv[1]
if test -f $project/Vagrantfile
vagrant halt; and cd $pro... | Add script to ease switch between Vagrant projects | Add script to ease switch between Vagrant projects
| fish | mit | rajadain/dotfiles | |
1dd23a737782ee407ec939e22f20d76c53baf301 | functions/fish_right_prompt.fish | functions/fish_right_prompt.fish | function fish_right_prompt
if status --is-interactive
set -l __paradox_date (command date +%I:%M:%S%P ^/dev/null)
if type ruby >/dev/null ^/dev/null
# have to use the echo inline to prevent obnoxious spaces, i.e. (💎2.3.0 )
set __paradox_rb_version (echo -s "(💎 " (command ruby -e 'print RUBY_VER... | function fish_right_prompt
if status --is-interactive
set -l __paradox_date (command date +%I:%M:%S%P ^/dev/null)
if type ruby >/dev/null ^/dev/null
# have to use the echo inline to prevent obnoxious spaces, i.e. (💎 2.3.0 )
set __paradox_rb_version (echo -s "(💎 " (command ruby -e 'print RUBY_VE... | Remove cursor control characters from right prompt | Remove cursor control characters from right prompt
They were fucking up the prompt when it was only 1 line long, as opposed to being 2 lines.
| fish | mit | paradox460/paradox-theme |
535c7d9f5c71f44aca74a78062e81974723a6f90 | test/navigate_existing.fish | test/navigate_existing.fish | set -l repo_path $HOME/github.com/gh_user/gh_repo
function setup -S
mkdir -p $repo_path
end
function teardown -S
rm -rf (dirname $repo_path)
end
test "navigates to existing directory when given user repo"
(
gh gh_user gh_repo
pwd
) = "$HOME/github.com/gh_user/gh_repo"
end
test "navigates to existing... | set -l repo_path $HOME/github.com/gh_user/gh_repo
function setup -S
mkdir -p $repo_path
end
function teardown -S
rm -rf (dirname $repo_path)
end
test "navigates to existing directory when given user repo"
"$HOME/github.com/gh_user/gh_repo" = (
gh gh_user gh_repo
pwd
)
end
test "navigates to existing... | Swap expected and actual in tests | Swap expected and actual in tests
Contrary to other testing frameworks, with fishtape you have to put
the expected on the LHS and actual (aka received) on the RHS.
Looking at other fish tests, many fishers still put expected on the RHS,
but this will give you an incorrect and confusing failure message.
| fish | mit | dideler/fish-cd-git |
3a302f7a39a39bdc00934a653d981276de04ae3c | home/.config/fish/functions/fish_prompt.fish | home/.config/fish/functions/fish_prompt.fish | # fish theme : deference
function __prompt_git_branch
command git symbolic-ref --short HEAD ^/dev/null
end
function prompt_git
set -l branch (__prompt_git_branch)
if [ -z $branch ]
return
end
echo '['$branch']'
end
function prompt_rbenv
if not type -q 'rbenv'
return
end
... | Add custom prompt (very poor) | Add custom prompt (very poor)
| fish | apache-2.0 | usami-k/dotfiles,usami-k/dotfiles | |
a05b847ba3b4d4d5893f3db0d79dbe8a3c77ce84 | config/fish/functions/fish_prompt.fish | config/fish/functions/fish_prompt.fish | function _prompt_dir_component
_prompt_wrap_text (prompt_pwd) brblue
end
function _prompt_err_component --argument-names {error_code}
if [ $error_code -ne 0 ]
_prompt_wrap_text $error_code brred
end
end
function _prompt_git_component
if __fish_is_git_repository
set --local sha (git rev-parse HEAD)
... | function _prompt_dir_component
_prompt_wrap_text (prompt_pwd) brblue
end
function _prompt_err_component --argument-names {error_code}
if [ $error_code -ne 0 ]
_prompt_wrap_text $error_code brred
end
end
function _prompt_git_component
if __fish_is_git_repository
set --local sha (git rev-parse HEAD)
... | Fix case when on a new branch with no additional changes | Fix case when on a new branch with no additional changes
| fish | mit | lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles |
1f96c8ffabbee61f31425739e94ccb3140766afc | fish_right_prompt.fish | fish_right_prompt.fish | # You can override some default title options in your config.fish:
# set -g theme_date_format "+%a %H:%M"
function fish_right_prompt -d 'bobthefish is all about the right prompt'
set_color $fish_color_autosuggestion[1]
set -q theme_date_format; or set -l theme_date_format "+%c"
date $theme_date_format
set_... | # You can override some default right prompt options in your config.fish:
# set -g theme_date_format "+%a %H:%M"
function __bobthefish_cmd_duration -S -d 'Show command duration'
[ "$CMD_DURATION" -lt 100 ]; and return
if [ "$CMD_DURATION" -lt 5000 ]
echo -ns $CMD_DURATION 'ms '
else if [ "$CMD_DURATION"... | Add last command duration to the right prompt. | Add last command duration to the right prompt.
* only if it was > 100ms
* in human friendly units
* and make it pop if > 60s
Fixes #21 | fish | mit | oh-my-fish/theme-bobthefish |
77156a747fc534ac751679671f8cfba650bb35a1 | fish/config.fish | fish/config.fish | ########## env ##########
##### xdg #####
set -q XDG_CONFIG_HOME
or set -l XDG_CONFIG_HOME ~/.config
##### locale #####
set -gx LANG en_US.UTF-8
##### term #####
set -gx TERM xterm-256color
##### path #####
set -l local_paths /usr/local/{sbin,bin} /usr/{sbin,bin} /{sbin,bin}
# go
set -gx GOPATH $HOME/dev
set local... | ########## env ##########
##### xdg #####
set -q XDG_CONFIG_HOME
or set -l XDG_CONFIG_HOME ~/.config
##### path #####
set -l local_paths /usr/local/{sbin,bin} /usr/{sbin,bin} /{sbin,bin}
# go
set -gx GOPATH $HOME/dev
set local_paths $GOPATH/bin $local_paths
# rust
set local_paths ~/.cargo/bin $local_paths
# pyenv
... | Integrate `local` and `term` settings into `mics` | Integrate `local` and `term` settings into `mics`
| fish | mit | kuwata0037/dotfiles |
cf1e6ce337fe35b8db93bde6bae837ead2c8c0da | fish/config.fish | fish/config.fish | # Aliases
alias ll="exa -lg --group-directories-first"
alias csvcol="column -s, -t"
alias open-rust-doc="open /usr/share/doc/rust/html/index.html"
abbr --add g git
abbr --add v nvim
abbr --add tree "ll --tree"
set -gx VIRTUAL_ENV_DISABLE_PROMPT 1
set -p PATH ~/.cargo/bin
set -a PATH ~/.local/bin
set -a PATH ~/.emacs... | # Aliases
alias ll="exa -lg --group-directories-first"
alias csvcol="column -s, -t"
alias open-rust-doc="open /usr/share/doc/rust/html/index.html"
abbr --add g git
abbr --add v nvim
abbr --add tree "ll --tree"
set -gx VIRTUAL_ENV_DISABLE_PROMPT 1
set -p PATH ~/.cargo/bin
set -a PATH ~/.local/bin
set -a PATH ~/.emacs... | Set tmux pane title on ssh | [fish] Set tmux pane title on ssh
| fish | mit | mpardalos/dotfiles,mpardalos/dotfiles |
d3c8bae03f89cabb38833cd7551d9bdb3cb9083a | configs/config/fish/config.fish | configs/config/fish/config.fish | set -x PATH $PATH $HOME/.dotfiles/scripts
# aliases
alias vim 'nvim'
alias tmux-reload 'tmux source-file ~/.tmux.conf'
alias git 'hub'
alias bnode 'babel-node'
alias em 'emacs'
alias psp 'psc-package'
# settings
set -x EDITOR nvim
set -x TERM xterm-256color
set -e fish_greeting
set -x LESS '-R'
# path
set -x PATH /u... | set -x PATH $PATH $HOME/.dotfiles/scripts
# aliases
alias vim 'nvim'
alias tmux-reload 'tmux source-file ~/.tmux.conf'
alias git 'hub'
alias bnode 'babel-node'
alias em 'emacs'
alias psp 'psc-package'
# settings
set -x EDITOR nvim
set -x TERM xterm-256color
set -e fish_greeting
set -x LESS '-R'
# path
set -x PATH /u... | Use 'tmux' instead of 'exec tmux' | Use 'tmux' instead of 'exec tmux'
'exec' causes the 'broken pipe' error.
| fish | mit | noraesae/dotfiles,noraesae/dotfiles,noraesae/dotfiles |
86b32fbdfef0d267e7ce5b2bff50a522e579f4cb | __env.fish | __env.fish | # enhancd
set -x ENHANCD_DISABLE_DOT 1
set -x ENHANCD_DISABLE_HYPHEN 1
# Git
set -x GIT_EDITOR 'vim'
# This can be overridden on a per-project basis using direnv
set -x GIT_PRIMARY_BRANCH 'master'
set -x SCMPUFF_GIT_CMD (which hub)
# GPG
# https://unix.stackexchange.com/questions/217737/pinentry-fails-with-gpg-agent-... | # enhancd
set -x ENHANCD_DISABLE_DOT 1
set -x ENHANCD_DISABLE_HYPHEN 1
# Git
set -x GIT_EDITOR 'emacs -nw'
# This can be overridden on a per-project basis using direnv
set -x GIT_PRIMARY_BRANCH 'master'
set -x SCMPUFF_GIT_CMD (which hub)
# GPG
# https://unix.stackexchange.com/questions/217737/pinentry-fails-with-gpg-... | Use emacs as git editor in terminal | Use emacs as git editor in terminal
| fish | mit | montchr/dotfiles,montchr/dotfiles,montchr/dotfiles,montchr/dotfiles |
fe09d42f7d76139a6f6429eb8af483e3bb8d3ed5 | config.fish | config.fish | # Here is the configuration for the fish shell
source ~/deoxys314_dotfiles/fish/aliases.fish
source ~/deoxys314_dotfiles/fish/functions.fish
mkdir -pv ~/bin
set PATH $PATH ~/bin
# important environmental variables
# set -g -x TERM screen-256color-bce
set -gx VISUAL vi
set -gx EDITOR vi
| # Here is the configuration for the fish shell
source ~/deoxys314_dotfiles/fish/aliases.fish
source ~/deoxys314_dotfiles/fish/functions.fish
mkdir -pv ~/bin
set PATH $PATH ~/bin
set -gx VISUAL vi
set -gx EDITOR vi
| Remove old comments and junk code. | Remove old comments and junk code.
| fish | mit | deoxys314/deoxys314_dotfiles |
8f171bc6973c82f65babefa97e432f293d6e527a | cookbooks/fish/files/.config/fish/config.fish | cookbooks/fish/files/.config/fish/config.fish | #
# omf/bobthefish
#
set -g theme_nerd_fonts yes
set -g theme_display_user yes
set -g fish_prompt_pwd_dir_length 0
set -g theme_color_scheme zenburn
set -g theme_newline_cursor yes
| #
# tsub/theme-bobthefish forked by omf/bobthefish
#
set -g theme_nerd_fonts yes
set -g theme_display_user yes
set -g fish_prompt_pwd_dir_length 0
set -g theme_color_scheme zenburn
set -g theme_newline_cursor yes
set -g theme_display_date no
| Disable displaying date in prompt | Disable displaying date in prompt
| fish | mit | tsub/dotfiles,tsub/dotfiles,tsub/dotfiles,tsub/dotfiles,tsub/dotfiles |
9a4087674d8f37038945c10d3761ec872ff6a7be | .config/fish/functions/sshcopypub.fish | .config/fish/functions/sshcopypub.fish | # Copy SSH public key to general pasteboard.
function sshcopypub --description "Copy SSH public key to general pasteboard."
pbcopy < ~/.ssh/id_rsa.pub
end
| function sshcopypub \
--description "Copy SSH public key to general pasteboard."
if is_mac
pbcopy < ~/.ssh/id_rsa.pub
else if is_linux
xsel --clipboard < ~/.ssh/id_rsa.pub
end
end
| Use xsel on linux to copy | Use xsel on linux to copy
| fish | mit | phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles |
42116f483b3256f2bd549cf61ffaed235666065b | scripts/kdb.fish | scripts/kdb.fish | function __fish_kdb_complete --description 'Print a list of kdb subcommands'
kdb list-commands -v | awk '{if(NR>1)print}'
end
complete --command kdb --exclusive --arguments '(__fish_kdb_complete)'
| function __fish_kdb_complete -d 'Print a list of kdb subcommands'
kdb list-commands -v | awk '{if(NR>1)print}'
end
complete -c kdb -x -a '(__fish_kdb_complete)'
| Use short options in Fish completions | Completions: Use short options in Fish completions
| fish | bsd-3-clause | ElektraInitiative/libelektra,mpranj/libelektra,mpranj/libelektra,petermax2/libelektra,petermax2/libelektra,e1528532/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,e1528532/libelektra,e1528532/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,petermax2/libelektra,ElektraIn... |
d3b606774aa57e8677beca210eea3c80feb8868f | config/fish/config.fish | config/fish/config.fish | # Path to Oh My Fish install.
set -gx OMF_PATH "/home/e4r7hbug/.local/share/omf"
# Customize Oh My Fish configuration path.
#set -gx OMF_CONFIG "/home/e4r7hbug/.config/omf"
# Load oh-my-fish configuration.
source $OMF_PATH/init.fish
fish_vi_mode
set PATH \
"$HOME/bin" \
"$HOME/.local/bin" \
"$HOME/Libra... | # Path to Oh My Fish install.
set -gx OMF_PATH "/home/e4r7hbug/.local/share/omf"
# Customize Oh My Fish configuration path.
#set -gx OMF_CONFIG "/home/e4r7hbug/.config/omf"
# Load oh-my-fish configuration.
source $OMF_PATH/init.fish
fish_vi_mode
set PATH \
"$HOME/bin" \
"$HOME/.local/bin" \
"$HOME/Libra... | Set GOPATH, go will create if missing | fix: Set GOPATH, go will create if missing
| fish | mit | e4r7hbug/dotfiles,e4r7hbug/dotfiles |
0f6c5849eeb2f548580539badab0a1267f8f1169 | conf.d/_mason-git.fish | conf.d/_mason-git.fish | alias gs 'git status -s'
alias gp 'git pull'
alias gb 'git branch --color --all -vv'
alias gr 'git remote -vv'
alias gc 'git checkout'
alias gd 'git diff'
alias gdd 'git diff --cached'
alias gf 'git fetch'
alias gclean 'git clean -df; and git checkout -- .'
function git-list-unstaged-files
git ls-files --others --ex... | alias gs 'git status -s'
alias gp 'git pull'
alias gb 'git branch --color --all -vv'
alias gr 'git remote -vv'
alias gc 'git checkout'
alias gd 'git diff'
alias gdd 'git diff --cached'
alias gf 'git fetch'
alias gclean 'git clean -df; and git checkout -- .'
function git-list-unstaged-files
git ls-files --others --ex... | Add `gll` to show detailed logs | Add `gll` to show detailed logs
| fish | mit | masonwan/fish-config,masonwan/fish-config |
223714c808a002b37cbc5332959c1edf2dc0d3df | home/.config/fish/config.fish | home/.config/fish/config.fish | fish_vi_mode
set fish_bind_mode insert
set fish_key_bindings fish_user_key_bindings
set -x FZF_DEFAULT_COMMAND /google/data/ro/users/lu/lutzky/fzf
set -x FZF_CTRL_T_COMMAND "$FZF_DEFAULT_COMMAND"
set -x EDITOR vim
set -x P4DIFF "vimdiff -R"
set -x P4MERGE vimdiff
set -x PATH \
$HOME/.linuxbrew/bin \
$HOME/bin ... | fish_vi_mode
set fish_bind_mode insert
set fish_key_bindings fish_user_key_bindings
set -x FZF_DEFAULT_COMMAND /google/data/ro/users/lu/lutzky/fzf
set -x FZF_CTRL_T_COMMAND "$FZF_DEFAULT_COMMAND"
set -x EDITOR vim
set -x P4DIFF "vimdiff -R"
set -x P4MERGE vimdiff
set -x PATH \
$HOME/.linuxbrew/bin \
$HOME/bin ... | Fix homeshick sourcing in fish | Fix homeshick sourcing in fish
| fish | unlicense | dgfranklin/dotfiles |
5e4c166f951f4aa41f95acb988e3e79341976453 | uninstall.fish | uninstall.fish | function uninstall --on-event uninstall_proxy
# Unset proxy variables
set -l envars http_proxy HTTP_PROXY \
https_proxy HTTPS_PROXY \
ftp_proxy FTP_PROXY \
all_proxy ALL_PROXY
for envar in $envars
set -e $envar
end
# Erase proxy functions
functions -e noproxy proxy __proxy.set
end
| # Unset proxy variables
set -l envars http_proxy HTTP_PROXY \
https_proxy HTTPS_PROXY \
ftp_proxy FTP_PROXY \
all_proxy ALL_PROXY
for envar in $envars
set -e $envar
end
# Erase proxy functions
functions -e noproxy proxy __proxy.set
| Uninstall immediately, rather than waiting for an event. | Uninstall immediately, rather than waiting for an event.
| fish | mit | oh-my-fish/plugin-proxy |
feb27fba7bf365a6a9769f3cf1df1ff1342af6b9 | tilde/config/fish/config.fish | tilde/config/fish/config.fish | set -x LANGUAGE "en_US.UTF-8"
set -x LC_ALL "en_US.UTF-8"
# set the default editor to vim
set -x EDITOR 'vim'
# use fdfind as the file list for fzf
set -x FZF_DEFAULT_COMMAND "fdfind --type file"
# Go
set -x GOPRIVATE bitbucket.org/advance52
set -x GOPATH $HOME/.go
fish_add_path --path --move /home/moonglum/.go/bin
... | set -x LANGUAGE "en_US.UTF-8"
set -x LC_ALL "en_US.UTF-8"
# set the default editor to vim
set -x EDITOR 'vim'
# use fdfind as the file list for fzf
set -x FZF_DEFAULT_COMMAND "fdfind --type file"
# Go
set -x GOPRIVATE bitbucket.org/advance52
set -x GOPATH $HOME/.go
fish_add_path --path --move /home/moonglum/.go/bin
... | Add Python executables to path | Add Python executables to path
| fish | mit | moonglum/dotfiles,moonglum/dotfiles |
60f9fce673fe6ff8c5e9b458844d37dcf861438d | fish/.config/fish/abbreviations.fish | fish/.config/fish/abbreviations.fish | abbr -a -- - 'cd -'
abbr -a axel 'axel -a'
abbr -a b 'brew'
abbr -a c 'nix-shell -p clojure --command "clojure -A:rebel -A:cheshire"'
abbr -a dl 'wget -r -l 1 -np -nd'
abbr -a fn 'find . -iname'
abbr -a g git
abbr -a ga git add
abbr -a gap git add --patch
abbr -a gb git branch
abbr -a gc git commit --verbose
abbr -a g... | abbr -a -- - 'cd -'
abbr -a axel 'axel -a'
abbr -a b 'brew'
abbr -a c 'nix-shell -p clojure --command "clojure -A:rebel -A:cheshire"'
abbr -a dl 'wget -r -l 1 -np -nd'
abbr -a fn 'find . -iname'
abbr -a g git
abbr -a ga git add
abbr -a gap git add --patch
abbr -a gb git branch
abbr -a gc git commit --verbose
abbr -a g... | Remove 'q' as an abbreviation for `exit` | Remove 'q' as an abbreviation for `exit`
I don't ever remember using it; doesn't seem super useful.
| fish | mit | spinningarrow/.files,spinningarrow/.files |
8387fad7322b99caa6e95f71945aba6fa457705f | init.fish | init.fish | function init -a path --on-event init_vundle
if [ ! -e ~/.vim/bundle/Vundle.vim/.git ]
echo \n\t "Vundle.vim is not installed."
echo \n\t "Read about vim configuration for vundle at https://github.com/VundleVim/Vundle.Vim" \n
end
end
| if [ ! -e ~/.vim/bundle/Vundle.vim/.git ]
echo \n\t "Vundle.vim is not installed."
echo \n\t "Read about vim configuration for vundle at https://github.com/VundleVim/Vundle.Vim" \n
end
| Initialize immediately, rather than waiting for an event. | Initialize immediately, rather than waiting for an event.
| fish | mit | oh-my-fish/plugin-vundle |
1580d05807d6f7a84ee645cadd20698617e8967d | conf.d/fishtape.fish | conf.d/fishtape.fish | function _fishtape_uninstall --on-event fishtape_uninstall
set --names |
string replace --filter --regex "^fishtape_" -- "set --erase fishtape_" |
source
functions --erase (functions --all | string match --entire --regex -- "^_fishtape_")
complete --erase --command fishtape
end
| Use uninstall event to clean up | Use uninstall event to clean up
| fish | mit | fishery/fishtape,fisherman/fishtape | |
ffdd28e395de8e924e8830b453756faa145ddb6a | common/.config/fish/config.fish | common/.config/fish/config.fish | # Cargo (Rust)
if test -d $HOME/.cargo/bin
set PATH $HOME/.cargo/bin $PATH
end
# Postgres.app
if test -d /Applications/Postgres.app
set PATH /Applications/Postgres.app/Contents/Versions/latest/bin $PATH
end
# TeX
if test -d /Library/TeX/texbin
set PATH /Library/TeX/texbin $PATH
end
# rbenv
command --search rbe... | # Set VSCode as default editor
set -x EDITOR code
# Cargo (Rust)
if test -d $HOME/.cargo/bin
set PATH $HOME/.cargo/bin $PATH
end
# Postgres.app
if test -d /Applications/Postgres.app
set PATH /Applications/Postgres.app/Contents/Versions/latest/bin $PATH
end
# TeX
if test -d /Library/TeX/texbin
set PATH /Library... | Set VSCode as default editor | Set VSCode as default editor
| fish | mit | elliottsj/dotfiles |
b1e780fcd4d4c8265a6f18900e76599cff37dfe8 | fish/.config/fish/config.fish | fish/.config/fish/config.fish | # Disable fish greeting
set fish_greeting ""
# Aliases
alias vim="nvim"
# Set environment variables
set -x NVIM_TUI_ENABLE_TRUE_COLOR 1
set -x GAE_SDK /usr/local/Cellar/app-engine-python/1.9.27/share/google-app-engine
set -gx PATH /usr/local/bin /usr/texbin $PATH
set -x DOCKER_HOST tcp://192.168.59.103:2376
set -x ... | # Disable fish greeting
set fish_greeting ""
function my_vi_key_bindings
fish_vi_key_bindings
bind -M insert \cl 'clear; commandline -f repaint'
end
fish_vi_mode
set -g fish_key_bindings my_vi_key_bindings
# Aliases
alias vim="nvim"
# Set environment variables
set -x NVIM_TUI_ENABLE_TRUE_COLOR 1
set -x GA... | Add keybinding for clearing screen in vi insert mode | Add keybinding for clearing screen in vi insert mode
| fish | mit | kvchen/dotfiles,kvchen/dotfiles,kvchen/.dotfiles,kvchen/dotfiles |
10f43ea6e90593884be0d757a30576bde4920378 | fish/functions/randomstring.fish | fish/functions/randomstring.fish | function randomstring -d "Generate random string"
dd if=/dev/urandom bs=1 count=128 ^/dev/null | gmd5sum -b | awk '{ print $1 }'
end
| function randomstring -d "Generate random base64 string"
# https://en.wikipedia.org/wiki/Birthday_problem#Probability_table
dd if=/dev/urandom bs=1 count=128 ^/dev/null | base64 | cut -b -12
end
| Switch to base64 encoding for more bits | Switch to base64 encoding for more bits
| fish | apache-2.0 | ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles |
b5579bf7399d5ea3ad3776bcbcd8bfcee1b0207f | config/fish/config.fish | config/fish/config.fish | umask 077 # WSL: Default umask is not applied (github:Microsoft/WSL/issues/352)
set -x PATH $PATH ~/.bin
set -x SHELL (which fish)
# github:danhper/fish-ssh-agent
if test -z "$SSH_ENV"
set -xg SSH_ENV $HOME/.ssh/environment
end
if not __ssh_agent_is_started
__ssh_agent_start
end
# Base16 Shell
if status --i... | umask 077 # WSL: Default umask is not applied (github:Microsoft/WSL/issues/352)
set -x PATH $PATH ~/.bin
set -x SHELL (which fish)
# https://wiki.archlinux.org/index.php/Fish#Evaluate_ssh-agent
eval (ssh-agent -c)
# Base16 Shell
if status --is-interactive
set BASE16_SHELL "$HOME/.config/base16-shell/"
source... | Replace fish-ssh-agent with a simple call (refactor) | Replace fish-ssh-agent with a simple call (refactor)
| fish | cc0-1.0 | tulhan/.files,tulhan/.files |
f02372b116d4c903a08ff95ea96604c8b0e79df7 | functions/coffitivity.fish | functions/coffitivity.fish | function coffitivity --description "Loop sounds from a coffee shop and run in the background"
mplayer -really-quiet -loop 0 -volume 70 ~/Music/coffitivity.mp3 </dev/null ^/dev/null &
end
| function coffitivity --description "Loop sounds from a coffee shop and run in the background. Plays at half volume by default."
if test (count $argv) = 1
set volume $argv[1]
else
set volume 50
end
mplayer -really-quiet -loop 0 -volume $volume ~/Music/coffitivity.mp3 </dev/null ^/dev/null &
end
| Improve my fake cafe experience | Improve my fake cafe experience
- Add option to specify volume
- Reduce default volume to 50% (70% was too loud)
| fish | mit | dideler/dotfiles,dideler/dotfiles |
d27253f6b722444becb448a83047476c6c3e819a | functions/delete-user.fish | functions/delete-user.fish | function delete-user --argument user
if empty "$user"
usage delete-user '<user>'
return (false)
end
if contains "$user" (actual-users)
for group in (user-in-groups "$user")
delete-from-group "$group" "$user"
end
revoke-access-keys "$user"
unset-p... | Add function to delete a user | Add function to delete a user
| fish | mit | colstrom/shellops-aws,colstrom/piranha | |
30953ff0aead10d8d6096336357935f2a1c77b4c | fish/.config/fish/functions/sway_focus_tv.fish | fish/.config/fish/functions/sway_focus_tv.fish | function sway_focus_tv
set tv_outputname (swaymsg -t get_outputs | jq --raw-output '.. | objects | select(.model == "LG TV") | .name')
swaymsg focus output "$tv_outputname"
end
| Add sway helper script to focus TV workspace | Add sway helper script to focus TV workspace
| fish | mit | ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles | |
18570a6aba2046abddc768561111b284c3289738 | fish/.config/fish/config.fish | fish/.config/fish/config.fish | mkdir -p ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin
set -gx fish_greeting ""
set -gx LANG en_GB.UTF-8
set -gx PATH ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin $PATH
set -gx BROWSER firefox
set -gx EDITOR nvim
set -gx VISUAL nvim
# Kill all running containers.
alias dockerkill='docker kill (docker ps -q... | mkdir -p ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin
set -gx PATH ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin $PATH
set -gx fish_greeting ""
set -gx LANG en_GB.UTF-8
set -gx BROWSER firefox
set -gx EDITOR nvim
set -gx VISUAL nvim
# Kill all running containers.
alias dockerkill='docker kill (docker ps -q... | Put path first because it's important | Put path first because it's important
| fish | unlicense | Wolfy87/dotfiles,Olical/dotfiles,Wolfy87/dotfiles |
c1f664146f3f7e3cd65f018f01119425c181dd76 | functions/__fish_history.fish | functions/__fish_history.fish | function __fish_history
if test -e ~/.config/fish/fish_history
tac ~/.config/fish/fish_history | grep "^\- cmd: " | sed 's/\- cmd: //'
else if test -e ~/.local/share/fish/fish_history
tac ~/.local/share/fish/fish_history | grep "^\- cmd: " | sed 's/\- cmd: //'
else
history
end
end
| function __fish_history
set -l QUERY_CMD
if type -q tac
set QUERY_CMD "tac"
else
set QUERY_CMD "tail -r"
end
if test -e ~/.config/fish/fish_history
eval $QUERY_CMD ~/.config/fish/fish_history | grep "^\- cmd: " | sed 's/\- cmd: //'
else if test -e ~/.local/share/fish/fish_history
eval $Q... | Check if tac exists, if not use tail -r | Check if tac exists, if not use tail -r
| fish | mit | fisherman/fzf |
d532d5d793cbd46cb5664a2a970e8fab463d3fa8 | functions/update-instance-profiles.fish | functions/update-instance-profiles.fish | function update-instance-profiles
trace (status --current-filename) $argv
for profile in (get instance-profiles)
create-instance-profile $profile
for role in (get instance-profiles/$profile/roles)
aws iam add-role-to-instance-profile --instance-profile-name $profile --role-name $ro... | Add function to update instance profiles | Add function to update instance profiles
| fish | mit | colstrom/shellops-aws,colstrom/piranha | |
7c2a692cf40192a34f058e569b81ffea25ed892c | home/.config/fish/functions/fish_user_key_bindings.fish | home/.config/fish/functions/fish_user_key_bindings.fish |
fzf_key_bindings
| function fish_user_key_bindings
### fzf ###
bind \ct '__fzf_ctrl_t'
bind \cr '__fzf_ctrl_r'
bind \cx '__fzf_ctrl_x'
bind \ec '__fzf_alt_c'
if bind -M insert > /dev/null ^ /dev/null
bind -M insert \ct '__fzf_ctrl_t'
bind -M insert \cr '__fzf_ctrl_r'
bind -M insert \cx '__f... | Add fish user key bindings for fzf | Add fish user key bindings for fzf
| fish | bsd-3-clause | herrbischoff/dotfiles,herrbischoff/dotfiles,herrbischoff/dotfiles |
1f2c0b0b1c2944b7d8acaa0373c3570a3bf7a184 | home/.config/fish/config.fish | home/.config/fish/config.fish | # Load env variables
if test -f ~/.env.fish
source ~/.env.fish
end
# Hide greeting
function fish_greeting
end
# Better titles
function fish_title
test (count $argv) -gt 0
and echo $argv[1]
or prompt_pwd
end
set -gx EDITOR code -w
set -gx FILTER fzf
set -gx LESS RS
# Set the terminal window to use a da... | # Hide greeting
function fish_greeting
end
# Better titles
function fish_title
test (count $argv) -gt 0
and echo $argv[1]
or prompt_pwd
end
set -q EDITOR
or set -gx EDITOR code -w
set -gx FILTER fzf
set -gx LESS RS
| Set EDITOR only if not already set | Set EDITOR only if not already set
| fish | mit | sagebind/dotfiles |
d1db406328b53d5e2bbed13a70238e970048157c | fish/functions/switchaudio.fish | fish/functions/switchaudio.fish | function switchaudio --description 'Switch between audio outputs'
set -l sinks (pactl list short sinks)
for sink in $sinks
set sink_info (string split \t $sink)
if test RUNNING = $sink_info[5]
set active_sink $sink_info[1]
else if test SUSPENDED = $sink_info[5]
set ina... | function switchaudio --description 'Switch between audio outputs (assuming there are only 2)'
set -l sinks (pactl list short sinks)
for sink in $sinks
set sink_info (string split \t $sink)
if test RUNNING = $sink_info[5]
set active_sink $sink_info[1]
else if test SUSPENDED = $sin... | Add sink move logic (code is now working) | Add sink move logic (code is now working)
| fish | mit | ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles |
bcdf5b202a1df2d881917060f735534029cde5f1 | completions/mix.fish | completions/mix.fish | # See → fishshell.com/docs/current/commands.html#complete
function __fish_mix_needs_command
set cmd (commandline -opc)
if [ (count $cmd) -eq 1 -a $cmd[1] = 'mix' ]
return 0
end
return 1
end
# fish completion for mix
function __fish_mix_tasks
mix help ^/dev/null | awk '{
if ($1 == "mix") {
... | # See → fishshell.com/docs/current/commands.html#complete
function __fish_mix_needs_command
set cmd (commandline -opc)
if [ (count $cmd) -eq 1 -a $cmd[1] = 'mix' ]
return 0
end
return 1
end
# fish completion for mix
function __fish_mix_tasks
mix help 2>/dev/null | awk '{
if ($1 == "mix") {
... | Replace disabled stderr redirection char ^ with 2> | Replace disabled stderr redirection char ^ with 2>
Since [Fish 3.3.0][1], redirection to standard error with the `^`
character has been disabled by default.
Ref [oh-my-fish/oh-my-fish#585][2]
[1]: https://github.com/fish-shell/fish-shell/blob/master/CHANGELOG.rst#deprecations-and-removed-features-1
[2]: https://gith... | fish | mit | belltoy/plugin-mix |
9dacb1078bef3fc5a7300139296f9cf825cb8fe9 | functions/expand:choose-next.fish | functions/expand:choose-next.fish | function expand:choose-next
# If a filter is specified and more than one replacement is available, use it to filter through the available
# replacements.
if begin; set -q __expand_replacements[2]; and set -q __expand_filter; end
for line in $__expand_replacements
echo $line
end | eval $__expand_filt... | function expand:choose-next
# Since we can't conditionally switch key bind modes, we need to pass through command completion requests again even
# though we are already in expand mode.
if not set -q __expand_replacements[1]
commandline -f complete
return
end
# If a filter is specified and more than o... | Fix goofy behavior with canceled completion attempts | Fix goofy behavior with canceled completion attempts
| fish | mit | oh-my-fish/plugin-expand |
c2d315779ee2836390c09504f044883ca0ce43c7 | init.fish | init.fish | function init -a path --on-event init_git-flow
for prefix in /usr /usr/local /opt/local
if test -f $prefix/share/fish/completions/git.fish
source $prefix/share/fish/completions/git.fish
break
end
end
if not type -q __fish_git_branches
echo "Error: git completion not found!" >&2; return 1
... | for prefix in /usr /usr/local /opt/local
if test -f $prefix/share/fish/completions/git.fish
source $prefix/share/fish/completions/git.fish
break
end
end
if not type -q __fish_git_branches
echo "Error: git completion not found!" >&2
end
| Initialize immediately, rather than waiting for an event. | Initialize immediately, rather than waiting for an event.
| fish | mit | oh-my-fish/plugin-git-flow |
8b8a7c8d73db9903229a1dec16f316680a2dc012 | lib/refresh.fish | lib/refresh.fish | # SYNOPSIS
# refresh
#
# OVERVIEW
# Refresh (reload) the current fish session.
function refresh -d "refresh the fish session"
set -q CI; or exec fish < /dev/tty
end
| # SYNOPSIS
# refresh
#
# OVERVIEW
# Refresh (reload) the current fish session.
function refresh -d "Refresh fish session by replacing current process"
if not set -q CI
history --save
exec fish < /dev/tty
end
end
| Save history before replacing shell process | Save history before replacing shell process
Fixes an issue with history between shell reloads via refresh function call.
As `exec` replaces the current process in a non-gently fashion, the
persistent history could be out of sync with the in-memory history.
Calling `history --save` before `exec` should force the shell... | fish | mit | eugenesvk/oh-my-fish,sheldon/oh-my-fish,oh-my-fish/oh-my-fish,jeremiejig/oh-my-fish,lfiolhais/oh-my-fish,wfscheper/oh-my-fish,wangyung/oh-my-fish,wfscheper/oh-my-fish,bsott/oh-my-fish,scorphus/oh-my-fish,oranja/oh-my-fish,nwykes/oh-my-fish,wangyung/oh-my-fish,bsott/oh-my-fish,oranja/oh-my-fish,Pyppe/oh-my-fish,MaicoTim... |
d2f210d70d214880b2573f8f0de7560a709448e6 | completions/pyenv.fish | completions/pyenv.fish | function __fish_pyenv
pyenv commands
end
complete -f -c pyenv -a '(__fish_pyenv)'
| function __fish_pyenv_needs_command
set cmd (commandline -opc)
if [ (count $cmd) -eq 1 -a $cmd[1] = 'pyenv' ]
return 0
end
return 1
end
function __fish_pyenv_using_command
set cmd (commandline -opc)
if [ (count $cmd) -gt 1 ]
if [ $argv[1] = $cmd[2] ]
return 0
end
end
return 1
end
com... | Implement sub-command completion for fish shell | Implement sub-command completion for fish shell
| fish | mit | zmwangx/pyenv,BanzaiMan/pyenv,sebhahn/pyenv,kevinburke/pyenv,obimod/pyenv,hlecuanda/pyenv,syndbg/goenv,sebhahn/pyenv,pyenv/pyenv,takluyver/pyenv,chenfengyuan/pyenv,pyenv/pyenv,xshwy/pyenv,lepture/pyenv,VShangxiao/pyenv,sebhahn/pyenv,rowhit/pyenv,hlecuanda/pyenv,habinmusic/pyenv,recruit-mtl/pyenv,dongguangming/pyenv,blu... |
7461a4fc8648baea710c24db19255719b0b713ab | init.fish | init.fish | function init --on-event init_bundler
set -l execs annotate \
cap \
capify \
cucumber \
dashing \
guard \
kitchen \
middleman \
nanoc \
... | set -l execs annotate \
cap \
capify \
cucumber \
dashing \
guard \
kitchen \
middleman \
nanoc \
puma \
rackup \
... | Initialize immediately, rather than waiting for an event. | Initialize immediately, rather than waiting for an event.
| fish | mit | oh-my-fish/plugin-bundler |
201c1b98c7592d33f3b58a9eec832f5a66be4110 | metafacture-runner/src/main/dist/examples/marc21-to-edm/MARC21-EDM.flux | metafacture-runner/src/main/dist/examples/marc21-to-edm/MARC21-EDM.flux | default out = "stdout";
default file = FLUX_DIR + "Test_DNB_Mono.xml";
default id = "1025374754";
default sector = "sec_002";
default media_type = "mediatype_003";
file|
open-file|
//"1025374754"|
//id|
//template("https://portal.dnb.de/opac.htm?method=requestMarcXml&idn=${o}")|
//open-http|
decode-xml|
handle-marcxm... | default out = "stdout";
default file = FLUX_DIR + "Test_DNB_Mono.xml";
default id = "1025374754";
default sector = "sec_002";
default media_type = "mediatype_003";
file|
open-file|
//"1025374754"|
//id|
//template("https://portal.dnb.de/opac.htm?method=requestMarcXml&idn=${o}")|
//open-http|
decode-xml|
handle-marcxm... | Replace the deprecated flux command with the new one | Replace the deprecated flux command with the new one
See #310.
| FLUX | apache-2.0 | metafacture/metafacture-core,metafacture/metafacture-core,culturegraph/metafacture-core,culturegraph/metafacture-core,culturegraph/metafacture-core,metafacture/metafacture-core |
86a5152657a76ba7acb63490346460559cd747fb | examples/morph/morph-marc21.flux | examples/morph/morph-marc21.flux | default file = FLUX_DIR + "10.marc21";
file|
open-file|
as-lines|
decode-marc21|
morph(FLUX_DIR + "morph-marc21.xml")|
encode("literals")|
write("stdout");
| default file = FLUX_DIR + "10.marc21";
file|
open-file|
as-lines|
decode-marc21|
morph(FLUX_DIR + "morph-marc21.xml")|
encode-literals|
write("stdout");
| Fix examples and annotations on Flux command implementations | Fix examples and annotations on Flux command implementations
With the Flux validator in the Metafacture IDE, the `@In` and `@Out`
annotations on the Flux command implementation classes are processed
to check the workflows (see [1]). With the current Flux examples in
metafacture-core, the IDE reports some errors and wa... | FLUX | apache-2.0 | guenterh/mfRunnerPlayBox,metafacture/metafacture-core,hbz/metafacture-core,hbz/metafacture-core,culturegraph/metafacture-runner,guenterh/mfRunnerPlayBox,guenterh/linked.swissbib.mf,guenterh/nlRunnerAdvanced,culturegraph/metafacture-runner,metafacture/metafacture-core,metafacture/metafacture-core,culturegraph/metafactur... |
9b56e245753813c4c3a684e64d5f29c97ae0e551 | conf/es-injector.flux | conf/es-injector.flux | name: "injector"
includes:
- resource: true
file: "/crawler-default.yaml"
override: false
- resource: false
file: "conf/es-conf.yaml"
override: true
- resource: false
file: "conf/crawler-conf.yaml"
override: true
spouts:
- id: "spout"
className: "com.digitalpebb... | Add injector flux which filters URLs | Add injector flux which filters URLs
| FLUX | apache-2.0 | commoncrawl/news-crawl,commoncrawl/news-crawl | |
4d829020b381879f6372371cca29e589e5dc1719 | core/src/test/resources/forth/F3.16_defining_words.fth | core/src/test/resources/forth/F3.16_defining_words.fth | \ ------------------------------------------------------------------------
TESTING DEFINING WORDS: : ; CONSTANT VARIABLE CREATE DOES> >BODY
{ 123 CONSTANT X123 -> }
{ X123 -> 123 }
{ : EQU CONSTANT ; -> }
{ X123 EQU Y123 -> }
{ Y123 -> 123 }
{ VARIABLE V1 -> }
{ 123 V1 ! -> }
{ V1 @ -> 123 }
{ : NOP : POSTPONE ; ; -... | \ ------------------------------------------------------------------------
TESTING DEFINING WORDS: : ; CONSTANT VARIABLE CREATE DOES> >BODY
{ 123 CONSTANT X123 -> }
{ X123 -> 123 }
{ : EQU CONSTANT ; -> }
{ X123 EQU Y123 -> }
{ Y123 -> 123 }
{ VARIABLE V1 -> }
{ 123 V1 ! -> }
{ V1 @ -> 123 }
{ : NOP : POSTPONE ; ; -... | Create take up 4 cells for initialization, so actually HERE + 4 == >BODY | Create take up 4 cells for initialization, so actually HERE + 4 == >BODY
| Forth | mit | rm-hull/byok3,rm-hull/byok3 |
4bc70a5678d9d879104f33ba8b8a84fa0fa508ab | tiny/basic/forth/startup.fth | tiny/basic/forth/startup.fth | (( App Startup ))
\ -------------------------------------------
\ The word that sets everything up
\ -------------------------------------------
: StartApp
hex
init-dp @ dp ! \ Set the dictionary pointer so that we can function.
\ I have no idea why I am doing this instead of the compilation system.
." StartApp! ... | (( App Startup ))
0 value JT \ The Jumptable
\ -------------------------------------------
\ The word that sets everything up
\ -------------------------------------------
: StartApp
hex
init-dp @ dp ! \ Set the dictionary pointer so that we can function.
1 getruntimelinks to jt
\ I have no idea why I am doing th... | Use the system call to get the jumpable root. | Use the system call to get the jumpable root. | Forth | mit | rbsexton/gecko,rbsexton/gecko,rbsexton/gecko |
437a7c8c04d0c6f0bd9806c34c4247cec8377513 | demo/f2py/helloworld.f90 | demo/f2py/helloworld.f90 | subroutine sayhello(comm)
use mpi
implicit none
integer :: comm
integer :: rank, size, nlen, ierr
character (len=MPI_MAX_PROCESSOR_NAME) :: pname
if (comm == MPI_COMM_NULL) then
print *, 'You passed MPI_COMM_NULL !!!'
return
end if
call MPI_Comm_rank(comm, rank, ierr)
call MPI_Comm_size(comm... | !
! $ f2py --f90exec=mpif90 -m helloworld -c helloworld.f90
!
subroutine sayhello(comm)
use mpi
implicit none
integer :: comm
integer :: rank, size, nlen, ierr
character (len=MPI_MAX_PROCESSOR_NAME) :: pname
if (comm == MPI_COMM_NULL) then
print *, 'You passed MPI_COMM_NULL !!!'
return
end if
... | Add comment in f90 source about how to build with F2Py | Add comment in f90 source about how to build with F2Py | FORTRAN | bsd-2-clause | pressel/mpi4py,mpi4py/mpi4py,pressel/mpi4py,mpi4py/mpi4py,mpi4py/mpi4py,pressel/mpi4py,pressel/mpi4py |
1fd8f9b88408884edda344ae6cf4749f5b52f330 | modules/combined/plugins/solid_mechanics/umattest.f | modules/combined/plugins/solid_mechanics/umattest.f | ****************************************************************************************
** UMAT, FOR ABAQUS/STANDARD INCORPORATING ISOTROPIC ELASTICITY **
****************************************************************************************
*****************************************************... | Build rules for plugins (step 1) | Build rules for plugins (step 1)
r12344
| FORTRAN | lgpl-2.1 | stimpsonsg/moose,friedmud/moose,sapitts/moose,roystgnr/moose,liuwenf/moose,liuwenf/moose,apc-llc/moose,dschwen/moose,markr622/moose,backmari/moose,jessecarterMOOSE/moose,zzyfisherman/moose,jhbradley/moose,tonkmr/moose,Chuban/moose,yipenggao/moose,wgapl/moose,bwspenc/moose,kasra83/moose,shanestafford/moose,YaqiWang/moos... | |
8e8dbf2dda9be2c61a69d9413ff7fc71e64126c9 | src/mappings/pillowdisk5/mapc2m_pillowdisk5.f | src/mappings/pillowdisk5/mapc2m_pillowdisk5.f | subroutine mapc2m_pillowdisk5(blockno,xc1,yc1,
& xp,yp,zp,alpha)
implicit none
integer blockno
double precision xc1, yc1
double precision xc,yc,zc,xp,yp,zp,alpha
call mapc2m_fivepatch(blockno,xc1,yc1,xc,yc,zc,alpha)
c # Map from [-1,1]x[-1,1] back to [0,1]x[0,1]
... | Add mapping that tusesthe disk connectivity (with 5 blocks) to map to a square in [-1.1]x[-1,1] and then applies the pillow disk | Add mapping that tusesthe disk connectivity (with 5 blocks) to map to a square in [-1.1]x[-1,1] and then applies the pillow disk
| FORTRAN | bsd-2-clause | ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw | |
8998467d70cf76304ce273ab48e2109f34ba51cc | applications/advection/2d/filament/user_4.6/setaux_nomap.f | applications/advection/2d/filament/user_4.6/setaux_nomap.f | subroutine setaux_nomap(mbc,mx,my,xlower,ylower,dx,dy,
& maux,aux)
implicit none
integer mbc, mx,my, meqn, maux
double precision dx,dy, xlower, ylower
double precision aux(1-mbc:mx+mbc,1-mbc:my+mbc, maux)
double precision t
t = 0
call compute_velocity_psi_no... | Set velocity field for no-mapping case | Set velocity field for no-mapping case
| FORTRAN | bsd-2-clause | ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw | |
f330cc34fea3adfa0c7a074991fb26bedde37879 | src/tests/unit/teams/teams_subset.f90 | src/tests/unit/teams/teams_subset.f90 | program teams_subset
!! author: Nathan Weeks
!!
!! Regression test for prior potential deadlock in change team/end team
use iso_fortran_env, only : team_type
use assertions_interface, only : assert
implicit none
type(team_type) team
associate( initial_team_image => this_image())
associate( myteam =>... | program teams_subset
!! author: Nathan Weeks
!!
!! Regression test for prior potential deadlock in change team/end team
use iso_fortran_env, only : team_type
use assertions_interface, only : assert
implicit none
type(team_type) team
associate( initial_team_image => this_image())
associate( myteam =>... | Clarify comments in new teams unit test | Clarify comments in new teams unit test
| FORTRAN | bsd-3-clause | sourceryinstitute/opencoarrays,sourceryinstitute/opencoarrays,sourceryinstitute/opencoarrays |
b00785c2eae51fad2e5ab8cd4551d19aa239845b | heat/bmi_heat.f90 | heat/bmi_heat.f90 | module bmi_heat
use bmi_params
use heat
implicit none
character (len=BMI_MAXCOMPNAMESTR), target :: &
component_name = "The 2D Heat Equation"
contains
function get_component_name(self, name) result(status)
type (heat_model), intent (in) :: self
character (len=*), pointer, intent (out) :: na... | module bmi_heat
use bmi_params
use heat
implicit none
character (len=BMI_MAXCOMPNAMESTR), target :: &
component_name = "The 2D Heat Equation"
contains
! Perform startup tasks for the model.
function initialize(self, config_file) result(status)
type (heat_model), intent (out) :: self
chara... | Add initialize and finalize BMI methods | Add initialize and finalize BMI methods
| FORTRAN | mit | csdms/bmi-f90 |
7e04d8d2ae39125d0b725d66d65bb08743ac608e | functions/databaseOperations.f | functions/databaseOperations.f | #! /bin/bash
source $STACI_HOME/functions/tools.f
node_prefix=$(getProperty "clusterNodePrefix")
cluster=$(getProperty "createCluster")
provider_type=$(getProperty "provider_type")
function exec_mysql_sql(){
local sqlcmd=$1
local appdb=$2
mysql_pwd=$(getProperty "mysql_root_pass")
# Point to cluster, if... | #! /bin/bash
source $STACI_HOME/functions/tools.f
node_prefix=$(getProperty "clusterNodePrefix")
cluster=$(getProperty "createCluster")
provider_type=$(getProperty "provider_type")
function exec_mysql_sql(){
local sqlcmd=$1
local appdb=$2
mysql_pwd=$(getProperty "mysql_root_pass")
# Point to cluster, if... | Fix shell syntax error on Mac | Fix shell syntax error on Mac
| FORTRAN | mit | Praqma/staci,Praqma/staci |
d5cd9a8c8b8990cf8746215d28fb6634dbe347d1 | utils/common/segment.f90 | utils/common/segment.f90 | ! Segment.f90
! Operations about segments.
module segment
contains
elemental function whichSegment(x, xLower,xUpper, iLower,iUpper) result (i)
implicit none
double presicion, intent (in) :: x - xLower, xUpper
integer, intent (in) :: iLower, iUpper
integer :: i
i = iLower + floor(0.5 + (x-xLower) / (xUpper... | Add service program to decide a subscript (unsafe). | Add service program to decide a subscript (unsafe).
| FORTRAN | apache-2.0 | jungerstein/plasmaPhyLib,jungerstein/plasmaPhyLib | |
817bc93d12f73955734f1ac6d3d9d5fb66497d2b | attic/fortran-mpi-test/main.f90 | attic/fortran-mpi-test/main.f90 | program main
use lib
implicit none
include "mpif.h"
call mpi_init(mpi_err)
do i = 1, 42
Iriguchi%U(i) = i*(i+1)
end do
call mpi_irecv(Deguchi , sizeof(Deguchi), MPI_BYTE, 0, 0, mpi_comm_world, req_recv ,mpi_err)
call mpi_isend(Iriguchi, sizeof(Iriguchi), MPI_BYTE, 0, 0, mpi_comm_world, req_se... | program main
use lib
implicit none
include "mpif.h"
integer :: size_var
call mpi_init(mpi_err)
do i = 1, 42
Iriguchi%U(i) = i*(i+1)
end do
print *, "sizeof deguchi = ", sizeof(Deguchi)
size_var = sizeof(Deguchi)
call mpi_irecv(Deguchi , size_var, MPI_BYTE, 0, 0, mpi_comm_world, req_recv ... | Solve the secret of sizeof | Solve the secret of sizeof
| FORTRAN | mit | nushio3/formura,nushio3/formura,nushio3/formura,nushio3/formura,nushio3/formura,nushio3/formura |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.