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
19c60778835d464c9f5f4111b3a1cf7c703d0783
asdf.fish
asdf.fish
#!/usr/bin/env fish set -x ASDF_DIR (dirname (status -f)) set -l asdf_data_dir ( if test -n "$ASDF_DATA_DIR"; echo $ASDF_DATA_DIR; else; echo $HOME/.asdf; end) # Add asdf to PATH set -l asdf_bin_dirs $ASDF_DIR/bin $ASDF_DIR/shims $asdf_data_dir/shims for x in $asdf_bin_dirs if begin not contains $x $fish_user_...
#!/usr/bin/env fish set -x ASDF_DIR (dirname (status -f)) set -l asdf_data_dir ( if test -n "$ASDF_DATA_DIR"; echo $ASDF_DATA_DIR; else; echo $HOME/.asdf; end) # Add asdf to PATH set -l asdf_bin_dirs $ASDF_DIR/bin $ASDF_DIR/shims $asdf_data_dir/shims for x in $asdf_bin_dirs if begin not contains $x $PATH; and ...
Update fish_user_paths only if it is defined
Update fish_user_paths only if it is defined fish_user_paths variable is prepended to $PATH automatically. Some people set fish_user_paths, while others set PATH. It will be better to test if fish_user_paths is set, and prepend it if it is, while just prepending to PATH otherwise.
fish
mit
asdf-vm/asdf,Stratus3D/asdf
c5af6d33c236af5464bdac59039ef03eb7cc71ec
fish/functions/fish_prompt.fish
fish/functions/fish_prompt.fish
# based on Simple by Sota Yamashita: https://github.com/sotayamashita/simple function __git_upstream_configured git rev-parse --abbrev-ref @"{u}" > /dev/null 2>&1 end function __print_color set -l color $argv[1] set -l string $argv[2] set_color $color printf $string set_color normal end fun...
# based on Simple by Sota Yamashita: https://github.com/sotayamashita/simple function __git_upstream_configured git rev-parse --abbrev-ref @"{u}" >/dev/null 2>&1 end function __print_color set -l color $argv[1] set -l string $argv[2] set_color $color printf $string set_color normal end funct...
Add git status to prompt
Add git status to prompt
fish
unlicense
mistadikay/dotfiles
ae5ee6eb1fa86bf9ac1f363a45ee06ee9abd623f
fish/functions/fish_prompt.fish
fish/functions/fish_prompt.fish
function fish_prompt --description 'Write out the prompt' # Use after set_color to reset bold if not set -q __fish_prompt_color_normal set -g __fish_prompt_color_normal (set_color normal) end if not set -q __fish_prompt_color_hostname set -g __fish_prompt_color_hostname (set_color ...
function fish_prompt --description 'Write out the prompt' # Use after set_color to reset bold if not set -q __fish_prompt_color_normal set -g __fish_prompt_color_normal (set_color normal) end if not set -q __fish_prompt_color_hostname set -g __fish_prompt_color_hostname (set_color ...
Add @goobuntu to prompt when on my goobuntu
Add @goobuntu to prompt when on my goobuntu
fish
apache-2.0
ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles
e9ab01cece376ee4d287125e9b07f9a2065cc27d
functions/__paradox_command_duration.fish
functions/__paradox_command_duration.fish
function __paradox_command_duration --description "Get the current command duration" if begin; set -q CMD_DURATION; and test $CMD_DURATION -ge 500; end # I do it in this somewhat roundabout way to preserve some floating point math set -l x (math --scale=2 "$CMD_DURATION / 1000") set -l seconds (math "$x %...
function __paradox_command_duration --description "Get the current command duration" if begin; set -q CMD_DURATION; and test $CMD_DURATION -ge 500; end # I do it in this somewhat roundabout way to preserve some floating point math set -l x (math --scale=2 "$CMD_DURATION / 1000") set -l seconds (math "$x %...
Fix rounding errors in printf
Fix rounding errors in printf
fish
mit
paradox460/paradox-theme
6eee5e174756580d1ac3c39b1d3b35d0dd32a27e
.config/fish/functions/🗄__gitconfig.fish
.config/fish/functions/🗄__gitconfig.fish
# Sets git user.name and user.email # # ~/.gitconfig is tracked and shared. Sensitive or machine-specific data is # stored in the alternate global config file. # > If $XDG_CONFIG_HOME is not set or empty, $HOME/.config/git/config will be used. # # Sequencing # - After: brew (git) function 🗄__gitconfig --argument-names...
# Sets git user.name and user.email # # ~/.gitconfig is tracked and shared. Sensitive or machine-specific data is # stored in the alternate global config file. # > If $XDG_CONFIG_HOME is not set or empty, $HOME/.config/git/config will be used. # # Sequencing # - After: brew (git) function 🗄__gitconfig --argument-names...
Fix check for missing name and email
[gitconfig] Fix check for missing name and email
fish
mit
phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles
1f143ff7a73fe9072344936056bb0e8c8a222eda
.config/fish/functions/🗄__gitconfig.fish
.config/fish/functions/🗄__gitconfig.fish
# Sets git user.name and user.email # # ~/.gitconfig is tracked and shared. Sensitive or machine-specific data is # stored in the alternate global config file. # > If $XDG_CONFIG_HOME is not set or empty, $HOME/.config/git/config will be used. # # Sequencing # - After: brew (git) function 🗄__gitconfig --argument-names...
# Sets git user.name and user.email # # ~/.gitconfig is tracked and shared. Sensitive or machine-specific data is # stored in the alternate global config file. # > If $XDG_CONFIG_HOME is not set or empty, $HOME/.config/git/config will be used. # # Sequencing # - After: brew (git) function 🗄__gitconfig \ --argu...
Fix __gitconfig when machine hasn't been set up yet
Fix __gitconfig when machine hasn't been set up yet
fish
mit
phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles
61fb2f693d93e8f56fae405e2372029e093aa157
test/gh.fish
test/gh.fish
test "prints help when given -h option" "Usage: gh [--help] USER REPO" \ "" \ "Description:" \ " Quickly navigate across git repositories cloned from GitHub." \ " Searches within $HOME/github.com/. Clones repo if not found." \ "" \ "Examples:" \ " gh dideler fish-cd-git" = (gh -h) end
test "prints help when given -h option" "Usage: gh [--help] USER REPO" \ "" \ "Description:" \ " Quickly navigate across git repositories cloned from GitHub." \ " Searches within $HOME/github.com/. Clones repo if not found." \ "" \ "Examples:" \ " gh dideler fish-cd-git" = (gh -h) end test "pr...
Add test for --help option
:white_check_mark: Add test for --help option
fish
mit
dideler/fish-cd-git
f157fe0a03c2bbd0263893f1394e9e253709e442
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 if not available brew command command-not-found-init echo "Please install 'hombrew-command-not-found' first" return 1 end brew command command-not-found-init...
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 "...
Send error output to /dev/null
Send error output to /dev/null
fish
mit
lfiolhais/plugin-homebrew-command-not-found
db14e3441160f1768c3083b58618cec81543f786
.config/fish/functions/fish_right_prompt.fish
.config/fish/functions/fish_right_prompt.fish
function fish_right_prompt -d "Displays git branch and dirty state on the right" set -l cyan (set_color cyan) set -l red (set_color red) set -l normal (set_color normal) set -l yellow (set_color cccc00) set -l git_branch (git_branch_name) if test $git_branch if test git_is_dirty echo -n -s $cyan ...
function fish_right_prompt -d "Displays git branch and dirty state on the right" set -l cyan (set_color cyan) set -l red (set_color red) set -l normal (set_color normal) set -l yellow (set_color cccc00) set -l git_branch (git_branch_name) if test $git_branch git_is_dirty; and begin echo -ns $cyan...
Fix bug in git prompt
Fix bug in git prompt The function git_is_dirty doesn't return anything (due to lack of echo). It sets the exit code in $status which the condition wasn't checking.
fish
mit
dideler/dotfiles,dideler/dotfiles
f14bc0a97ba2c1477cb604df1d525e3c645f61fe
fish/functions/pman.fish
fish/functions/pman.fish
function pman --description "Show a man page as a pdf document" man -w $argv[1] 2>&1 >/dev/null && begin; man -t $argv[1] | ps2pdf - | zathura - end end
Add fish function to show manpage as pdf
Add fish function to show manpage as pdf
fish
mit
mpardalos/dotfiles,mpardalos/dotfiles
c1e5ede672416485cb40001bc1781a5ba023c1c8
functions/update-vpcs.fish
functions/update-vpcs.fish
function update-vpcs for name in (get vpcs) set vpc (lookup vpc $name) vpc-exists $name or set vpc (create-vpc) and begin add-tag-to-vpc $vpc Name $name for tag in (get vpcs/$name/tags) add-tag-to-vpc $vpc $tag (get vpcs/$name/tags/$tag) ...
Add function to update all VPCs
Add function to update all VPCs
fish
mit
colstrom/piranha,colstrom/shellops-aws
01bbac92ecdd6c2beafa46bfebb8fa4241811833
functions/set-password.fish
functions/set-password.fish
function set-password --argument user password if empty "$user" "$password" usage set-password '<user>' '<password>' return (false) end if user-has-password $user aws iam update-login-profile --user-name $user --password $password --password-reset-required else aws iam c...
Add function to set a user's password
Add function to set a user's password
fish
mit
colstrom/shellops-aws,colstrom/piranha
b589c43a23573ab88d67d68614bf1b9e7379a20f
fish/.config/fish/conf.d/env.fish
fish/.config/fish/conf.d/env.fish
# don't show annoying welcome message set fish_greeting "" # environment variables set -gx GOPATH ~/.go set -gx fish_user_paths $GOPATH/bin set -gx EDITOR nvim set -gx FZF_DEFAULT_COMMAND 'ag --hidden --ignore .git -l -g ""' set -gx FZF_DEFAULT_OPTS '--color=16,fg+:4 --ansi' set -gx FZF_CTRL_T_COMMAND 'ag --hidden --i...
# don't show annoying welcome message set fish_greeting "" # environment variables set -gx GOPATH ~/.go set -gx fish_user_paths $GOPATH/bin /usr/local/sbin set -gx EDITOR nvim set -gx FZF_DEFAULT_COMMAND 'ag --hidden --ignore .git -l -g ""' set -gx FZF_DEFAULT_OPTS '--color=16,fg+:4 --ansi' set -gx FZF_CTRL_T_COMMAND ...
Add /usr/local/sbin to path per brew's advice
Add /usr/local/sbin to path per brew's advice
fish
bsd-3-clause
alpinebutterfly/dotfiles,alpinebutterfly/dotfiles,mpcsh/dotfiles
5110cbf827dda31132c501d50108387ac5259c1f
functions/create-route.fish
functions/create-route.fish
function create-route --argument cidr gateway table trace (status --current-filename) $argv if empty "$cidr" "$gateway" "$table" usage create-route '<cidr>' '<gateway>' '<route-table>' return 23 end set vpc (route-table vpc-id $table) switch $gateway case 'igw' ...
Add function to create routes
Add function to create routes
fish
mit
colstrom/shellops-aws,colstrom/piranha
d4e567b4bc8a93703f4a70524d407f6f9a9b1864
fish/config.fish
fish/config.fish
set fvim /Applications/FVim.app/Contents/MacOS/FVim if [ -e $fvim ] set --export EDITOR $fvim else set --export EDITOR nvim end # Nix set NIX_LINK $HOME/.nix-profile set --export NIX_PATH nixpkgs=$HOME/.nix-defexpr/channels/nixpkgs set --export SSL_CERT_FILE $NIX_LINK/etc/ssl/certs/ca-bundle.crt # XDG if [ -z $XDG_...
# Neovim set --local neovim_guis \ /Applications/FVim.app/Contents/MacOS/FVim \ /Applications/goneovim.app/Contents/MacOS/goneovim set --export EDITOR $neovim_guis[(random 1 2)] # Nix set NIX_LINK $HOME/.nix-profile set --export NIX_PATH nixpkgs=$HOME/.nix-defexpr/channels/nixpkgs set --export SSL_CERT_FILE $NIX_LIN...
Add goneovim as available editor
Add goneovim as available editor
fish
unlicense
taecilla/.config,taecilla/.config,taecilla/.config,taecilla/.config
4d18ff5dab763b477b5ccf64fee13ba1ac72b8a0
tools/generate-authors.fish
tools/generate-authors.fish
#!/usr/bin/env fish # This script generates the AUTHORS file from Git history. echo '# This file lists all individuals having contributed content to the repository.' echo '# This list was auto-generated from Git history.' echo git log --format='%aN <%aE>' | awk ' { pos = index($0, "<"); name = substr($0, 0, p...
#!/usr/bin/env fish # This script generates the AUTHORS file from Git history. echo '# This file lists all individuals having contributed content to the repository.' echo '# This list was auto-generated from Git history.' echo function list_authors # List existing authors git show HEAD:AUTHORS | sed -e '/^$/d...
Update author generation script to retain existing ones.
Update author generation script to retain existing ones.
fish
mit
oranja/oh-my-fish,eugenesvk/oh-my-fish,eugenesvk/oh-my-fish,oh-my-fish/oh-my-fish,oranja/oh-my-fish,scorphus/oh-my-fish,scorphus/oh-my-fish,wangyung/oh-my-fish,bobthecow/oh-my-fish,oh-my-fish/oh-my-fish,wangyung/oh-my-fish
72ee1140ec199ac31cc44e2cdbe60039ec8d0689
themes/gitstatus/fish_prompt.fish
themes/gitstatus/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 ^/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" #...
Fix where it shows extra a space
themes/gitstatus: Fix where it shows extra a space For example, if $HOME is not a git repository, it should show: ~> But previously it incorrectly showed: ~ > This commit makes it aware of such case, inserting the space accordingly instead of always adding a space.
fish
mit
eugenesvk/oh-my-fish,bbatsche/oh-my-fish,nelsonjchen/oh-my-fish,syl20bnr/oh-my-fish,wfscheper/oh-my-fish,oh-my-fish/oh-my-fish,oranja/oh-my-fish,MaicoTimmerman/oh-my-fish,syl20bnr/oh-my-fish,vukk/oh-my-fish,lfiolhais/oh-my-fish,bbatsche/oh-my-fish,MaicoTimmerman/oh-my-fish,cap10morgan/oh-my-fish,wfscheper/oh-my-fish,se...
38c7c62a611aa8e504c4fce955ece894d81f989b
functions/create-bucket.fish
functions/create-bucket.fish
function create-bucket --argument name if empty "$name" usage create-bucket '<name>' return (false) end print-status s3/create-bucket $name set --local options has region s3/buckets/$name and set -- options $options --create-bucket-configuration LocationConstraint=(get s3/bucke...
function create-bucket --argument name if empty "$name" usage create-bucket '<name>' return (false) end print-status create-bucket $name set --local options has region buckets/$name and set -- options $options --create-bucket-configuration LocationConstraint=(get buckets/$name/...
Remove s3 from create bucket
Remove s3 from create bucket
fish
mit
colstrom/shellops-aws,colstrom/piranha
ffb03ee268a9dae982e8e809af3a00e38e935da2
config/fish/init/editor.fish
config/fish/init/editor.fish
set --export EDITOR atom set --export VISUAL $EDITOR set --export ATOM_DEV_RESOURCE_PATH ~/Source/atom/atom set --export ATOM_REPOS_HOME ~/Source
set --export EDITOR atom set --export VISUAL $EDITOR set --export ATOM_DEV_RESOURCE_PATH ~/Source/atom/atom set --export ATOM_REPOS_HOME ~/Source alias a='atom' alias aa='atom-dev' alias ab='atom-beta' alias ad='atom-dev'
Add aliases to launch different versions of Atom
Add aliases to launch different versions of Atom
fish
mit
lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles
c476e48b05187e8eadbf682b5bc7c7d75cae9bc0
functions/__fresco_wait.fish
functions/__fresco_wait.fish
function __fresco_wait if test (count $argv) != 0 while true set -l remain 0 for j in $argv if contains $j (jobs -p) set remain 1 break end end if test $remain = 0 break ...
function __fresco_wait # Set default wait timeout [sec] set -l timeout 30 if set -q fresco_timeout set -l timeout $fresco_timeout end set -l start_time (date +%s) set -l end_time $start_time if test (count $argv) != 0 while true set -l remain 0 for j...
Exit wait loop if it exceeds timeout
Exit wait loop if it exceeds timeout Timeout default value is is 30 seconds.
fish
mit
masa0x80/fresco
6ef0e999279db637d26cfdea65dc6abe24279d8d
fish/conf.d/02-aliases.fish
fish/conf.d/02-aliases.fish
if not status --is-interactive exit end alias g git alias vi nvim alias vim nvim alias mux tmuxinator alias gpg gpg2 alias scramble 'gpg --encrypt --recipient me@rdavis.xyz --armour' alias unscramble 'gpg --decrypt --quiet' alias nstack 'stack --resolver nightly' alias vscode code switch (uname) case Lin...
if not status --is-interactive exit end alias g git alias vi nvim alias vim nvim alias mux tmuxinator alias gpg gpg2 alias encrypt 'gpg --encrypt --recipient me@rdavis.xyz --armour --output -' alias decrypt 'gpg --decrypt --quiet' alias nstack 'stack --resolver nightly' alias vscode code switch (uname) c...
Use better names for gpg aliases
Use better names for gpg aliases
fish
mit
Rypac/dotfiles,Rypac/dotfiles,Rypac/dotfiles
cd9a811d1841aa276dcf4d3b0c226cb50787eb7f
functions/ql.fish
functions/ql.fish
function ql -d "Quick Look a specified file or directory" if [ (count $argv) -gt 0 ] qlmanage >/dev/null ^/dev/null -p $argv & else echo "No arguments given" end end
function ql -d "Quick Look a specified file or directory" if [ (count $argv) -gt 0 ] qlmanage >/dev/null 2> /dev/null -p $argv & else echo "No arguments given" end end
Make stderr redirection compatible with Fish 3.0.
Make stderr redirection compatible with Fish 3.0.
fish
mit
oh-my-fish/plugin-osx
1a6674612e824bd59626374fa9a83eb38313ad81
cookbooks/devbox/templates/default/fish/config.fish
cookbooks/devbox/templates/default/fish/config.fish
#!fish fundle plugin 'edc/bass' fundle plugin 'lethalpaga/deadlygoldfish-theme' fundle init # Setup PATH set -g -x PATH $PATH ~/.local/bin ~/bin # Load all scripts in config.d if [ -z $FISH_CONFIG_DIR ] set FISH_CONFIG_DIR (dirname (status -f))/config.d end for FILE in (find $FISH_CONFIG_DIR -name "*.fish") sour...
#!fish fundle plugin 'edc/bass' fundle plugin 'lethalpaga/deadlygoldfish-theme' fundle plugin 'oh-my-fish/plugin-aws' fundle init # Setup PATH set -g -x PATH $PATH ~/.local/bin ~/bin # Load all scripts in config.d if [ -z $FISH_CONFIG_DIR ] set FISH_CONFIG_DIR (dirname (status -f))/config.d end for FILE in (find $...
Add aws-cli autocompletion for fish
Add aws-cli autocompletion for fish
fish
isc
lethalpaga/devbox,lethalpaga/devbox
7368cec04effece2c64e4fdd424a80ae88ccb6b8
functions/create-vpc.fish
functions/create-vpc.fish
function create-vpc print-status vpc/create aws ec2 create-vpc --cidr-block 10.10.10.0/24 | jq --raw-output .Vpc.VpcId end
Add function to create a VPC
Add function to create a VPC
fish
mit
colstrom/piranha,colstrom/shellops-aws
4c431bd4317b5a1c4ec60cadd847d01f19d48208
conf/config/fish/config.fish
conf/config/fish/config.fish
# load solarized colors . $HOME/.config/fish/solarized.fish . $HOME/.config/fish/colours.fish
# load solarized colors set -g theme_color_scheme solarized-dark
Set fish to use solarized theme
Set fish to use solarized theme
fish
mit
dueyfinster/dotfiles
3364462876dad2f8b431828f58ae21a247e0d269
fish/.config/fish/config.fish
fish/.config/fish/config.fish
if status is-login if test -z "$DISPLAY" -a "$XDG_VTNR" = 1 exec startx -- -keeptty end end set -x PATH ~/.emacs.d/bin ~/.local/bin ~/.cargo/bin (yarn global bin) $PATH set -x BROWSER "firefox" set -x EDITOR "nvim" set -x PAGER "bat" set -x MANPAGER "sh -c 'col -bx | bat -l man -p'" abbr -a -- hm hist...
if status is-login if test -z "$DISPLAY" -a "$XDG_VTNR" = 1 exec startx -- -keeptty end end set -x PATH ~/.emacs.d/bin ~/.local/bin ~/.cargo/bin (yarn global bin) $PATH set -x BROWSER "firefox" set -x EDITOR "nvim" set -x PAGER "bat" set -x MANPAGER "sh -c 'col -bx | bat -l man -p'" set -x TSSERVER_LOG...
Store typescript logs in /tmp
Store typescript logs in /tmp
fish
unlicense
jdnavarro/dotfiles
e000db7445695688469c9522a274e15f4c44434c
functions/create-bucket.fish
functions/create-bucket.fish
function create-bucket --argument-names name print-status s3/create-bucket $name set --local options has region s3/buckets/$name and set -- options $options --create-bucket-configuration LocationConstraint=(get s3/buckets/$name/region) aws s3api create-bucket --bucket $name $options end
function create-bucket --argument-names name print-status s3/create-bucket $name set --local options has region s3/buckets/$name and set -- options $options --create-bucket-configuration LocationConstraint=(get s3/buckets/$name/region) has acl s3/buckets/$name and set -- options $options --acl...
Add support for bucket ACLs
Add support for bucket ACLs
fish
mit
colstrom/shellops-aws,colstrom/piranha
222f8b923484d4f0b84e7ff77578d950849fd698
fish/.config/fish/config.fish
fish/.config/fish/config.fish
set fish_greeting "" abbr --add g git abbr --add gc 'git commit' abbr --add gca 'git commit -a' abbr --add gd 'git diff' abbr --add gst 'git status' abbr --add p 'pass' abbr --add pc 'pass -c' abbr --add z 'zathura --fork' setenv SSH_AUTH_SOCK $XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh gpg-connect-agent updatestartuptty ...
set fish_greeting "" abbr --add g git abbr --add gc 'git commit' abbr --add gca 'git commit -a' abbr --add gd 'git diff' abbr --add gst 'git status' abbr --add p 'pass -c' abbr --add z 'zathura --fork' setenv SSH_AUTH_SOCK $XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh gpg-connect-agent updatestartuptty /bye > /dev/null # S...
Update pass abbreviation in fish.
Update pass abbreviation in fish.
fish
unlicense
aperez/dotfiles
9de81100fd6c3cfdd29f44ac0325fd2e5bc56746
clojure/env.fish
clojure/env.fish
# For ClojureScript development: # Need to set this here, as this env.fish file is run before the Java one. # set -x JAVA_HOME (/usr/libexec/java_home -v 1.8) set -x JAVA_HOME "/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home" set -x SPIDERMONKEY_HOME "$HOME/Developer/js-engines/jsshell-mac" set -x NA...
# For ClojureScript development: # Need to set this here, as this env.fish file is run before the Java one. # set -x JAVA_HOME (/usr/libexec/java_home -v 11) set -x JAVA_HOME "/Library/Java/JavaVirtualMachines/adoptopenjdk-11.0.1.jdk/Contents/Home" set -x SPIDERMONKEY_HOME "$HOME/Developer/js-engines/jsshell-mac" set...
Update to using Java 11 by default
Update to using Java 11 by default
fish
mit
danielcompton/dotfiles,danielcompton/dotfiles,danielcompton/dotfiles
e79c7739eeb91fd83f22f0e21f488c0de981b33c
.config/fish/functions/paradox_git_hash.fish
.config/fish/functions/paradox_git_hash.fish
function paradox_git_hash --description "Get the current git commit hash, if we're in a git working tree" set -l git_info (command git rev-parse --is-inside-work-tree --short HEAD ^/dev/null) if test (count $git_info) -gt 1 set -l inside_worktree $git_info[1] set -l git_head $git_info[2] if test "true" ...
function paradox_git_hash --description "Get the current git commit hash, if we're in a git working tree" set -l git_command 'git rev-parse --is-inside-work-tree --short HEAD ^/dev/null' if type gtimeout >/dev/null ^/dev/null set -l git_command 'timeout 1' git_command end set -l git_info (eval $git_com...
Add timeout to git hash function for safety
Add timeout to git hash function for safety
fish
mit
paradox460/.dotfiles,paradox460/.dotfiles,paradox460/.dotfiles,paradox460/.dotfiles
0ea111568a159653f13e159e2d0449a03e089771
dotfiles/config/fish/functions/fish_prompt.fish
dotfiles/config/fish/functions/fish_prompt.fish
function fish_prompt --description 'Write out the prompt' # Save our status set -l last_status $status set -l last_status_string "" if [ $last_status -ne 0 ] printf "%s(%d)%s " (set_color red --bold) $last_status (set_color normal) end set -l color_cwd set -l suffix switch $USE...
function fish_prompt --description 'Write out the prompt' # Save our status set -l last_status $status set -l last_status_string "" if [ $last_status -ne 0 ] printf "%s(%d)%s " (set_color red --bold) $last_status (set_color normal) end set -l color_cwd set -l suffix switch $USE...
Fix display of home directory as ~ in fish prompt CWD.
Fix display of home directory as ~ in fish prompt CWD. * Fix subdirectories with the same name as the home directory (e.g. /mnt/backup/home/username) being displayed as ~ (e.g. /mnt/backup~) by only replacing the string when it's found at the start of the current path. * Check for slash or end of path instead o...
fish
mit
razzolini/dotfiles,razzolini/dotfiles,razzolini/dotfiles
99240da4f1fcee897918174a604a55211fc0d75d
config/fish/config.fish
config/fish/config.fish
# Colorized ls output set --export CLICOLOR 1 set --export LSCOLORS Exfxcxdxbxegedabagacad # Ensure the HOSTNAME environment variable is set so that `rcm` works properly if ! set --query HOSTNAME set --export HOSTNAME (hostname -s) end if status --is-interactive set --global fish_user_abbreviations abbr --add ...
# Colorized ls output set --export CLICOLOR 1 set --export LSCOLORS Exfxcxdxbxegedabagacad # Ensure the HOSTNAME environment variable is set so that `rcm` works properly if ! set --query HOSTNAME set --export HOSTNAME (hostname -s) end if status --is-interactive set --global fish_user_abbreviations abbr --add ...
Check for brew as files, not directories
Check for brew as files, not directories
fish
mit
lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles
fc9278ad1a528e40baaf15f513aedc24081b81f9
functions/__proxy.set.fish
functions/__proxy.set.fish
function __proxy.set -a proxy \ -d "Set all proxy vars to specified value" set -l envars http_proxy HTTP_PROXY \ https_proxy HTTPS_PROXY \ ftp_proxy FTP_PROXY \ all_proxy ALL_PROXY for envar in $envars if test $proxy = '-e' set -e $envar else set -gx $envar $proxy end end en...
function __proxy.set -a proxy \ -d "Set all proxy vars to specified value" set -l envars http_proxy HTTP_PROXY \ https_proxy HTTPS_PROXY \ ftp_proxy FTP_PROXY \ all_proxy ALL_PROXY for envar in $envars if test $proxy = '-e' set -e $envar else set -Ux $envar $proxy end end en...
Make variables universal instead of global
Make variables universal instead of global
fish
mit
oh-my-fish/plugin-proxy
14c101095096ebfa5e9db47724d77f78bfa40635
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...
Revert "Do not start tmux if we are logged in via ssh"
Revert "Do not start tmux if we are logged in via ssh" This reverts commit ee093e0d541231b1ba6795c1f74d1dd4afbf986f.
fish
mit
nTraum/dotfiles,nTraum/dotfiles
617c12ecc8b8515b800a446141d59f0d75712928
fish/.config/fish/config.fish
fish/.config/fish/config.fish
if status is-login if test -z "$DISPLAY" -a "$XDG_VTNR" = 1 exec startx -- -keeptty end end set -x PATH ~/.emacs.d/bin ~/.local/bin ~/.cargo/bin (yarn global bin) /usr/share/bcc/tools $PATH set -x BROWSER "firefox" set -x EDITOR "nvim" set -x PAGER "bat" set -x MANPAGER "sh -c 'col -bx | bat -l man -p'...
if status is-login if test -z "$DISPLAY" -a "$XDG_VTNR" = 1 exec startx -- -keeptty end end set -x PATH ~/.local/bin ~/.emacs.d/bin ~/.cargo/bin (yarn global bin) ~/.cabal/bin ~/.ghcup/bin $PATH set -x BROWSER "firefox" set -x EDITOR "nvim" set -x PAGER "bat" set -x MANPAGER "sh -c 'col -bx | bat -l ma...
Add ghcup bin dir to path
Add ghcup bin dir to path
fish
unlicense
jdnavarro/dotfiles
f6a004d33870107c417bb0a5c904574b705a6bcf
fish/.config/fish/config.fish
fish/.config/fish/config.fish
# Set path set -g fish_user_paths $fish_user_paths $HOME/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 __fish_git_pro...
# 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 _...
Add go bin folder to PATH
Add go bin folder to PATH
fish
mit
spinningarrow/.files,spinningarrow/.files
079fe42845b0e1d72cc2a954187f3e21e96c9674
conf.d/_mason-system-info.fish
conf.d/_mason-system-info.fish
function system-info -d 'Print the system information' free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%)\n", $3,$2,$3*100/$2 }' df -h | awk '$NF=="/"{printf "Disk Usage: %d/%dGB (%s)\n", $3,$2,$5}' top -bn1 | grep load | awk '{printf "CPU Load: %.2f\n", $(NF-2)}' end function open-file-info -d 'Print th...
function system-info -d 'Print the system information' free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%)\n", $3,$2,$3*100/$2 }' df -h | awk '$NF=="/"{printf "Disk Usage: %d/%dGB (%s)\n", $3,$2,$5}' top -bn1 | grep load | awk '{printf "CPU Load: %.2f\n", $(NF-2)}' end function open-file-info -d 'Print th...
Add `show-proc` to print detailed process command
Add `show-proc` to print detailed process command
fish
mit
masonwan/fish-config,masonwan/fish-config
4d1d3edace3d642728be0586ffc5fd1f44c0ca43
fish_prompt.fish
fish_prompt.fish
# name: RobbyRussel function _git_branch_name echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') end function _is_git_dirty echo (command git status -s --ignore-submodules=dirty ^/dev/null) end function fish_prompt set -l last_status $status set -l cyan (set_color -o cyan) set -l ye...
# name: RobbyRussel # # You can override some default options in your config.fish: # set -g theme_disable_untracked_files_dirty yes function _git_branch_name echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') end function _is_git_dirty if [ "$theme_disable_untracked_files_dirty" = 'yes'...
Add option to not show untracked files as dirty in git status
Add option to not show untracked files as dirty in git status
fish
mit
oh-my-fish/theme-robbyrussell
ce25211e2d003a89b5810200477cf0b777cb4c41
fish/.config/fish/functions/fish_user_key_bindings.fish
fish/.config/fish/functions/fish_user_key_bindings.fish
function fish_user_key_bindings bind -M insert \eg 'commandline -i " | rg"' bind -M insert jk 'if commandline -P; commandline -f cancel; else; set fish_bind_mode default; commandline -f backward-char repaint-mode; end' bind -M insert \ce end-of-line bind -M insert \ca beginning-of-line bind -M inser...
function fish_user_key_bindings bind -M insert \eg 'commandline -i " | rg"' bind -M insert -k nul 'if commandline -P; commandline -f cancel; else; set fish_bind_mode default; commandline -f backward-char repaint-mode; end' fish_default_key_bindings -M insert fish_vi_key_bindings --no-erase end
Include all emacs keybindings in fish insert mode
Include all emacs keybindings in fish insert mode
fish
unlicense
jdnavarro/dotfiles
e04040691e0c629b9d52f06921069b8d6e2af40f
config/fish/functions/project.fish
config/fish/functions/project.fish
function project \ --description 'Shortcut from anywhere to a project directory' \ --argument-names {project} cd $REPO_HOME/$project end
function project \ --description 'Shortcut from anywhere to a project directory' \ --argument-names project if not set -q REPO_HOME echo 'REPO_HOME environment variable must be set to the directory where all projects are stored' exit 1 end cd $REPO_HOME/$project end
Add check for REPO_HOME environment variable
Add check for REPO_HOME environment variable
fish
mit
lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles
072a82fb987cb6d4fa757611912b2aa9ecd71b44
fish/.config/fish/functions/fish_user_key_bindings.fish
fish/.config/fish/functions/fish_user_key_bindings.fish
function fish_user_key_bindings fish_vi_key_bindings if type -q fzf_key_bindings fzf_key_bindings end bind -M insert -m default jk backward-char force-repaint end
function fish_user_key_bindings fish_vi_key_bindings if command -s fzf-share >/dev/null source (fzf-share)/key-bindings.fish end if type -q fzf_key_bindings fzf_key_bindings end bind -M insert -m default jk backward-char force-repaint end
Load fzf fish bindings from nix
Load fzf fish bindings from nix
fish
unlicense
Olical/dotfiles
a1a143f218d51a8da775d510c23c81291d11a38f
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 pypy 'pypy3.2' alias tmux-reload 'tmux source-file ~/.tmux.conf' alias git 'hub' # settings set -x EDITOR n...
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 pypy 'pypy3.2' alias tmux-reload 'tmux source-file ~/.tmux.conf' alias git 'hub' alias python 'python3' alia...
Add alias for python3 and pip3
Add alias for python3 and pip3
fish
mit
noraesae/dotfiles,noraesae/dotfiles,noraesae/dotfiles
7943bbaec33df6610a14182f639fc2af7dfd433a
functions/users-without-mfa.fish
functions/users-without-mfa.fish
function users-without-mfa comm -13 (users-with-mfa | psub) (get users | psub) end
function users-without-mfa comm -13 (users-with-mfa | sort | psub) (get users | sort | psub) end
Sort results before piping to comm
Sort results before piping to comm
fish
mit
colstrom/shellops-aws,colstrom/piranha
9b8fad70aaeafe082ddd03ac1f6996ee449acde2
test/other.fish
test/other.fish
test "$TESTNAME - use custom string to display null values" "▂?▄?▆?█" = ( printf "%s\n" 1,,2,,3,,4 | shark --null="?" ) end test "$TESTNAME - no data prints nothing and exits with a 1" 1 = ( echo | shark echo $status ) end test "$TESTNAME - show help information" "U...
test "$TESTNAME - use custom string to display null values" "▂?▄?▆?█" = ( printf "%s\n" 1,,2,,3,,4 | shark --null="?" ) end test "$TESTNAME - no data prints nothing and exits with a 1" 1 = ( echo | shark echo $status ) end
Remove test for usage help.
Remove test for usage help.
fish
mit
bucaran/shark
524c0538f06c02f1c392501b556c4439e2d146f2
fish/functions/fish_prompt.fish
fish/functions/fish_prompt.fish
function git_status if git rev-parse --is-inside-work-tree 1> /dev/null 2>& 1 if not git diff --quiet set_color red echo -n "✘" set_color normal end if not git diff --quiet --cached set_color yellow echo -n "✔︎" set_colo...
function git_status if git rev-parse --is-inside-work-tree 1> /dev/null 2>& 1 if not git diff --quiet set_color red echo -n "✘" set_color normal end if not git diff --quiet --cached set_color yellow echo -n "✔︎" set_colo...
Add better git prompt to fish
Add better git prompt to fish
fish
mit
justuswilhelm/pufferfish,justuswilhelm/pufferfish
c01ec69cc195c1277bef212b53bc7483982bf676
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_VERS...
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...
Fix ruby version spacing, and add a few comments
Fix ruby version spacing, and add a few comments
fish
mit
paradox460/paradox-theme
8272daa71eec84729d60f0d7f2022230bf2873b9
apps/fish/.config/fish/functions/utils.fish
apps/fish/.config/fish/functions/utils.fish
alias myip="curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'"
alias myip="curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'" function update_dots cd ~/.dotfiles; and git stash save and git pull; and ./dots.sh end function fish_prompt --description 'Write out the prompt' # Just calculate these once, to save a few cycles when displaying the prompt if not set -q __fish_prom...
Add branch to fish prompt
Add branch to fish prompt
fish
mit
KyleOndy/dotfiles,KyleOndy/.dotfiles,KyleOndy/dotfiles,KyleOndy/dotfiles
35daf988a39014c0349703579c792443f9e65157
.config/fish/functions/update.fish
.config/fish/functions/update.fish
function update sudo softwareupdate -i -a brew update brew upgrade --force --all brew cleanup npm install npm -g npm update -g mas upgrade end
function update sudo softwareupdate -i -a brew update brew upgrade --force brew cleanup npm install npm -g npm update -g apm update -c false mas upgrade end
Update Atom packages when updating all the things
Update Atom packages when updating all the things
fish
mit
larslevie/dotfiles
b578f404884c7681d9b8600ef812795503543abe
config.fish
config.fish
# Here is the configuration for the fish shell source ~/deoxys314_dotfiles/fish/aliases.fish source ~/deoxys314_dotfiles/fish/functions.fish set PATH $PATH ~/bin # important environmental variables # set -g -x TERM screen-256color-bce
# 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
Create `~/bin` directory before adding it to the PATH.
Create `~/bin` directory before adding it to the PATH. Uses `mkdir -pv ~/bin` to create directory if it does not exist.
fish
mit
deoxys314/deoxys314_dotfiles
3eb963c0ad7a5cb28ed4669fa1b8d91aea0b94db
conf.d/init_ssh_agent.fish
conf.d/init_ssh_agent.fish
set ssh_agent_pid (pgrep ssh-agent) if $ssh_agent_pid[0] __test_ssh_identities else __start_ssh_agent end
function agent_is_present -d "find ssh-agent process if one is running" set ssh_agent_pid (pgrep ssh-agent) if $ssh_agent_pid[0] > 1 return true else return false end end if agent_is_present __test_ssh_identities else __start_ssh_agent end
Use function to determine presence of ssh-agent
Use function to determine presence of ssh-agent
fish
mit
dgjnpr/fish-ssh-agent
fa84ece04e3860b17d68cbe64557dc3f9cf202cb
fish/functions/vim_git_import.fish
fish/functions/vim_git_import.fish
# Run this in the directory you want the subtrees to be located in # Takes the path to the directory where the plugins are, usually ~/.vim/bundle # Can be passed a blacklist by adding "--except NAME..." to the arguments. Useful for segregating plugins into different directories function vim_git_import --description 'Im...
# Run this in the directory you want the subtrees to be located in # Takes the name of the plugin's directory function vim_git_import --description 'Imports ~/.vim/bundle plugins to git subtrees' --argument plugin if test (count $argv) -ne 1 echo "usage: vim_git_import PLUGIN" return 1 end ...
Make this script suitable for adding only one directory
Make this script suitable for adding only one directory
fish
unlicense
cbarrett/etc,cbarrett/etc
54289451f655e74e6a9adb835230e18a3a9d6c7d
functions/create-security-group.fish
functions/create-security-group.fish
function create-security-group --argument name vpc description trace (status --current-filename) $argv if empty "$name" usage create-security-group '<name>' '[vpc]' '[description]' return 23 end if empty $description set description $name end if empty $vpc aws ...
Add function to create security groups
Add function to create security groups
fish
mit
colstrom/piranha,colstrom/shellops-aws
bcc3de283b6bdf5dd74c95660b1d7d6e57e933f8
.config/fish/functions/tmbundles.fish
.config/fish/functions/tmbundles.fish
# Manage TextMate bundles. function tmbundles set -l bundles editorconfig fish gradle set -l bundle_dev ~/dev/textmate set -l bundle_dir ~/Library/Application\ Support/TextMate/Bundles if not test -e $bundle_dev mkdir -p $bundle_dev end if not test -e $bundle_dir mkdir -p $bundl...
# Manage TextMate bundles. function tmbundles set -l bundles editorconfig fish gradle set -l bundle_dev ~/dev/textmate set -l bundle_dir ~/Library/Application\ Support/TextMate/Bundles if not test -e $bundle_dev mkdir -p $bundle_dev end if not test -e $bundle_dir mkdir -p $bund...
Revise EditorConfig TextMate plugin install to download binary
Revise EditorConfig TextMate plugin install to download binary
fish
mit
phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles
a6bc2772c3594accc8131329459e8800f39fa1b3
functions/changed.fish
functions/changed.fish
function changed --argument subject if empty "$subject" usage changed '<subject>' return (false) end if not functions --query real-$subject echo "No real-$subject function defined" >& 2 return (false) end diff (eval real-$subject | psub) (get $subject | psub) end
Add function to show diff between states
Add function to show diff between states
fish
mit
colstrom/shellops-aws,colstrom/piranha
042934058529466f43400c12d6d0dff855f9c10b
.config/fish/functions/pdf2jpg.fish
.config/fish/functions/pdf2jpg.fish
# Usage # # pdf2jpg in.pdf # => in.jpg # # pdf2jpg in.pdf out.jpg # => out.jpg # function pdf2jpg --description "Convert a (scanned) PDF to a JPG" function _print_usage echo -e "Usage:\n pdf2jpg in.pdf\n pdf2jpg in.pdf out.jpg" end switch (count $argv) case 0 # No arguments, error. _print...
Add fish function for converting PDFs to JPGs.
Add fish function for converting PDFs to JPGs. If I need to scan a document, I use Google Drive's scan feature on my phone which creates a PDF. But sometimes you need an image. This converts the scanned PDF to a sharp and readable JPG. Although the size of the JPG isn't that large (relative to the PDF), it may be wor...
fish
mit
dideler/dotfiles,dideler/dotfiles
d83510dec9a10a2cf2695342ef7503769c8902b5
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_quote 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_p...
function fish_prompt --description 'Write out the prompt' # Set custom color variables set -l username_color fdd8aa set -l prompt_color 8cd6ff set -l last_status $status # User set_color $username_color echo -n (whoami) set_color normal echo -n ' in ' # PWD set_color $fish_color_cwd echo -n ...
Use custom colors in fish prompt
[fish] Use custom colors in fish prompt - I like those colors
fish
mit
spinningarrow/.files,spinningarrow/.files
03fd561c1f891b2926e8dfb83ab3b40ca149a0c5
functions/gcm.fish
functions/gcm.fish
function gcm --description="git commit with message" if test (count (command git status --porcelain | command grep "^[^ ?]")) -eq 0 set_color yellow echo "Nothing to commit..." set_color normal return 1 end set -l arguments set -l cmd "command git diff --cached --name-only" if test (count $...
function gcm --description="git commit with message" if test (count (command git status --porcelain | command grep "^[^ ?]")) -eq 0 set_color yellow echo "Nothing to commit..." set_color normal return 1 end if test (count $argv) -eq 0 set_color red echo "Arborting commit due to empty comm...
Fix the git commit -m wrapper
Fix the git commit -m wrapper
fish
mit
RobertAudi/gish,RobertAudi/gish
f381ab201d13a40f3b0a67c97465f84712b4e79d
fish/.config/fish/abbreviations.fish
fish/.config/fish/abbreviations.fish
abbr -a -- - 'cd -' abbr -a axel 'axel -a' abbr -a b 'brew' abbr -a dl 'wget -r -l 1 -np -nd' abbr -a fn 'find . -iname' abbr -a g git abbr -a gd git diff abbr -a gf git fetch abbr -a gs git status -sb abbr -a l 'ls -lahp' abbr -a lx 'less -X' abbr -a o 'open .' abbr -a q exit abbr -a ql 'qlmanage -p' abbr -a t 'tmux' ...
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 gd git diff abbr -a gf git fetch abbr -a gs git status -sb abbr -a l 'ls -lahp' abbr -a lx 'less -X' ab...
Add abbreviation for clojure with cheshire and rebel-readline
Add abbreviation for clojure with cheshire and rebel-readline Needs ~/.clojure/deps.edn to work
fish
mit
spinningarrow/.files,spinningarrow/.files
538777de95ef1c912ea4c56026545bc7501bc82d
asdf.fish
asdf.fish
#!/usr/bin/env fish set -l asdf_data_dir (dirname (status -f)) # we get an ugly warning when setting the path if shims does not exist mkdir -p $asdf_data_dir/shims for x in $asdf_data_dir/{bin,shims} if not contains $x $PATH and test -d $x set -gx PATH $x $PATH end end
#!/usr/bin/env fish set -l asdf_dir (dirname (status -f)) set -l asdf_data_dir ( if test -n "$ASDF_DATA_DIR"; echo $ASDF_DATA_DIR; else; echo $HOME/.asdf; end) # Add asdf to PATH set -l asdf_bin_dirs $asdf_dir/bin $asdf_dir/shims $asdf_data_dir/shims for x in $asdf_bin_dirs if begin not contains $x $PATH; and ...
Fix fish shell init snippet
Fix fish shell init snippet - add `bin` and `shims` directories from asdf installation to PATH - add `shims` directory from `$ASDF_DATA_DIR` (default `$HOME/.asdf`) to PATH - don't create directories in init script (directories are only added to PATH if they exist, besides there is no warning when a directory does...
fish
mit
Stratus3D/asdf,asdf-vm/asdf
55d498f5a66ce082e101e1801471e26ea037753f
fish/.config/fish/abbreviations.fish
fish/.config/fish/abbreviations.fish
# Abbreviations (text expansion) abbr --add gp 'git push' abbr --add gpf 'git push --force' abbr --add gst 'git status' # gs taken by Ghostscript abbr --add icat 'kitty +kitten icat' abbr --add uparch 'sudo pacman --sync --refresh --sysupgrade; and fish_update_completions' abbr --add upaur 'pikaur --sync --refresh --s...
# Abbreviations (text expansion) abbr --add cf '$EDITOR $XDG_CONFIG_HOME/' abbr --add gp 'git push' abbr --add gpf 'git push --force' abbr --add gst 'git status' # gs taken by Ghostscript abbr --add icat 'kitty +kitten icat' abbr --add uparch 'sudo pacman --sync --refresh --sysupgrade; and fish_update_completions' abb...
Add text expansion for editing dotfiles
Add text expansion for editing dotfiles
fish
mit
ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles
18cb1e4a63849279d7390cb5dff8991b46ef02de
.config/fish/config.fish
.config/fish/config.fish
#!/usr/bin/env fish set fish_greeting set -x GOPATH $HOME/Code/gopkg set -x MAILDIR $HOME/mail set -x EDITOR vim set -x MANPAGER vimpager set -x GEM_HOME $HOME/.local/gems/(ruby -v | awk '{print $2}') set -x GEM_PATH $GEM_HOME set -x COCOAPODS_DISABLE_STATS 1 set -x PIP_REQUIRE_VIRTUALENV 1 set -x PKG_CONFIG_PATH /usr...
#!/usr/bin/env fish set fish_greeting set -x GOPATH $HOME/Code/gopkg set -x MAILDIR $HOME/mail set -x EDITOR vim set -x MANPAGER vimpager set -x GEM_HOME $HOME/.local/gems/(ruby -v | awk '{print $2}') set -x GEM_PATH $GEM_HOME set -x COCOAPODS_DISABLE_STATS 1 set -x PIP_REQUIRE_VIRTUALENV 1 set -x PKG_CONFIG_PATH /usr...
Remove cargo binpath for multirust
[fish] Remove cargo binpath for multirust
fish
bsd-2-clause
kattrali/dotfiles,kattrali/dotfiles,kattrali/dotfiles
317a34d603af75c96e2ed3fe972cb93824b840d0
cookbooks/fish/files/.config/fish/conf.d/basic.fish
cookbooks/fish/files/.config/fish/conf.d/basic.fish
export EDITOR="nvim" export XDG_CONFIG_HOME="$HOME/.config" export PAGER="less" export LESS="-g -i -M -R -S -W -z-4 -x4" export PATH="$HOME/.bin:$PATH" export PATH="$PATH:/usr/local/sbin" ## Set Locale export LC_ALL="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8" export LANG="en_US.UTF-8"
export EDITOR="nvim" export XDG_CONFIG_HOME="$HOME/.config" export PAGER="less" export LESS="-g -i -M -R -S -W -z-4 -x4" export PATH="$HOME/.bin:$PATH" ## Set Locale export LC_ALL="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8" export LANG="en_US.UTF-8"
Revert "Add /usr/local/sbin in $PATH"
Revert "Add /usr/local/sbin in $PATH" This reverts commit fd131ca67fab8608af69a652b06989c6dbfbd10d.
fish
mit
tsub/dotfiles,tsub/dotfiles,tsub/dotfiles,tsub/dotfiles,tsub/dotfiles
5d3331efcce857679b5b9fbad033970a4480addb
config/fish/config.fish
config/fish/config.fish
# Colorized ls output set --export CLICOLOR 1 set --export LSCOLORS Exfxcxdxbxegedabagacad # Ensure the HOSTNAME environment variable is set so that `rcm` works properly if ! set --query HOSTNAME set --export HOSTNAME (hostname -s) end if status --is-interactive set --global fish_user_abbreviations abbr --add ...
# Colorized ls output set --export CLICOLOR 1 set --export LSCOLORS Exfxcxdxbxegedabagacad # Ensure the HOSTNAME environment variable is set so that `rcm` works properly if ! set --query HOSTNAME set --export HOSTNAME (hostname -s) end if status --is-interactive set --global fish_user_abbreviations abbr --add ...
Initialize Homebrew properly on both Intel and ASi Macs
Initialize Homebrew properly on both Intel and ASi Macs
fish
mit
lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles
e3fcf284c662dc624f9305962492ef684957d1b3
fish/.config/fish/config.fish
fish/.config/fish/config.fish
# 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...
# 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...
Comment out VI bindings because it's irritating to hit the ESC key every time
Comment out VI bindings because it's irritating to hit the ESC key every time
fish
mit
kvchen/dotfiles,kvchen/dotfiles,kvchen/.dotfiles,kvchen/dotfiles
49cc038aa90d339ef31e19700ea7252eb36c2872
functions/fish_right_prompt.fish
functions/fish_right_prompt.fish
function fish_right_prompt if set -q VIRTUAL_ENV # Let's hope python won't break this way to read the version set -l python_version (python --version | sed -e 's/Python //g') set -l virtual_env_short (shorten_path $VIRTUAL_ENV) echo "$virtual_env_short@$python_version" end end
function fish_right_prompt if set -q VIRTUAL_ENV # Let's hope python won't break this way to read the version set -l python_version (python --version | sed -e 's/Python //g') set -l virtual_env_short (shorten_path $VIRTUAL_ENV) set_color -b yellow set_color black echo "$virtual_env_short@$pyth...
Add color to virtual env
Add color to virtual env
fish
mit
wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar
916214f5b3b994f750199c944862c6eb6cea77da
fish/.config/fish/conf.d/aliases.fish
fish/.config/fish/conf.d/aliases.fish
# allows sudo to use aliases function sudo command sudo $argv end # better ls function ls command ls -lhFG $argv end function la command ls -lhFGA $argv end # symlink by default function ln command ln -s $argv end # work on directories function cp command cp -r $argv end function rm command rm -rf $argv e...
# allows sudo to use aliases function sudo command sudo $argv end # better ls function ls command ls -lhFG $argv end function la command ls -lhFGA $argv end # symlink by default function ln command ln -s $argv end # work on directories function cp command cp -r $argv end function rm switch (uname) ca...
Make rm on macOS use trash
Make rm on macOS use trash
fish
bsd-3-clause
alpinebutterfly/dotfiles,alpinebutterfly/dotfiles,mpcsh/dotfiles
3ddcf29683dcdcfe3b880b897bc03e048decce68
fish/functions/gco.fish
fish/functions/gco.fish
function gco --description="git checkout" if test -z (command git rev-parse --show-toplevel 2> /dev/null) set_color red echo "Not in a git repository" set_color normal return 1 end set -l arguments set -l cmd "git branch --no-color | command sed -E 's/^\*? ? //g'" eval "$GISH_DIR/fish/inclu...
function gco --description="git checkout" if test -z (command git rev-parse --show-toplevel 2> /dev/null) set_color red echo "Not in a git repository" set_color normal return 1 end set -l arguments set -l cmd "git branch --no-color | command sed -E 's/^\*? ? //g'" eval "$GISH_DIR/fish/inclu...
Use the `--quiet` option when appropriate
Use the `--quiet` option when appropriate
fish
mit
RobertAudi/gish,RobertAudi/gish
6a0e3fbc5d62788dd5f95704271202b5fc8ee7d7
fish/config.fish
fish/config.fish
# Aliases alias ll="exa -lg --group-directories-first" abbr --add g git abbr --add v nvim abbr --add tree "ll --tree"
# Aliases alias ll="exa -lg --group-directories-first" abbr --add g git abbr --add v nvim abbr --add tree "ll --tree" set -gx VIRTUAL_ENV_DISABLE_PROMPT 1
Disable python virtualenv prompt in fish
Disable python virtualenv prompt in fish
fish
mit
mpardalos/dotfiles,mpardalos/dotfiles
fc57e9a3bf6938731eab23a72b44b277b5eb77f1
fish_prompt.fish
fish_prompt.fish
# name: eclm function _git_branch_name echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') end function _is_git_dirty echo (command git status -s --ignore-submodules=dirty ^/dev/null) end function fish_prompt set -l last_status $status set -l cyan (set_color -o cyan) set -l yellow (s...
# name: eclm function _git_branch_name echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') end function _is_git_dirty echo (command git status -s --ignore-submodules=dirty ^/dev/null) end function fish_prompt set -l last_status $status set -l cyan (set_color -o cyan) set -l yellow (s...
Use red color to indicate master branch
Use red color to indicate master branch
fish
mit
oh-my-fish/theme-eclm,oh-my-fish/theme-mars
340ae736628208b167ffd163d47b269a329e61b1
.config/fish/config.fish
.config/fish/config.fish
#!/usr/bin/env fish set fish_greeting set -x GOPATH $HOME/Code/gopkg set -x MAILDIR $HOME/mail set -x EDITOR vim set -x MANPAGER vimpager set -x GEM_HOME $HOME/.local/gems/(ruby -v | awk '{print $2}') set -x GEM_PATH $GEM_HOME set -x HAXELIB_PATH /usr/local/lib/haxelib set -x HAXE_STD_PATH /usr/local/lib/haxe/std set ...
#!/usr/bin/env fish set fish_greeting set -x GOPATH $HOME/Code/gopkg set -x MAILDIR $HOME/mail set -x EDITOR vim set -x MANPAGER vimpager set -x GEM_HOME $HOME/.local/gems/(ruby -v | awk '{print $2}') set -x GEM_PATH $GEM_HOME set -x HAXELIB_PATH /usr/local/lib/haxelib set -x HAXE_STD_PATH /usr/local/lib/haxe/std set ...
Disable homebrew updating and analytics
[fish] Disable homebrew updating and analytics Why does every shell command need to report my behavior now?
fish
bsd-2-clause
kattrali/dotfiles,kattrali/dotfiles,kattrali/dotfiles
cb318a4f74ee2e31422e1a6ddbcea0ff944d66da
config/fish/config.fish
config/fish/config.fish
if not status --is-login exit end test -f "$HOME/.config/dotfile/init.fish"; and source "$HOME/.config/dotfile/init.fish" dotfile::load_if_exists "$HOME/.config/env/init.fish" dotfile::load_if_exists "$HOME/.config/shell/init.fish" dotfile::load_if_exists "$HOME/.config/tmux/init.fish" dotfile::load_if_exists "$HOM...
if not status --is-login exit end test -f "$HOME/.config/dotfile/init.fish"; and source "$HOME/.config/dotfile/init.fish" dotfile::load_if_exists "$HOME/.config/env/init.fish" dotfile::load_if_exists "$HOME/.config/shell/init.fish" dotfile::load_if_exists "$HOME/.config/tmux/init.fish" dotfile::load_if_exists "$HOM...
Use vi keybindings in fish.
Use vi keybindings in fish.
fish
mit
charlesbjohnson/dotfiles,charlesbjohnson/dotfiles
c1bd56bc72934ba7dd33af60ddf2f6abc30ecb48
config/fish/config.fish
config/fish/config.fish
set PATH (brew --prefix coreutils)/libexec/gnubin $PATH set PATH ~/bin $PATH set PATH $PATH ~/.cask/bin # http://www.martinklepsch.org/posts/git-prompt-for-fish-shell.html set __fish_git_prompt_showdirtystate 'yes' set __fish_git_prompt_char_dirtystate '⚡' # initialize rvm (uses rvm.fish) rvm current 1>/dev/null 2>&1...
set PATH (brew --prefix coreutils)/libexec/gnubin $PATH set PATH ~/bin $PATH set PATH $PATH ~/.cask/bin if test -e ~/.go set -x GOPATH ~/.go set PATH $PATH $GOPATH/bin end # http://www.martinklepsch.org/posts/git-prompt-for-fish-shell.html set __fish_git_prompt_showdirtystate 'yes' set __fish_git_prompt_char_dirt...
Add go setup for fish shell
Add go setup for fish shell
fish
mit
drmohundro/dotfiles
d0f0ec5be3d318f5abfcd1c72846cbb849ecf8fd
.config/fish/functions/fs.fish
.config/fish/functions/fs.fish
# Save a function to user's autoload dir. function fs --argument-names function_name set -l dest_file ~/.config/fish/functions/$function_name.fish set -l original_contents set -l comment_lines if test -e $dest_file set original_contents (cat $dest_file) for line in $original_contents ...
# Save a function to user's autoload dir. function fs --argument function_name set -l dest_file ~/.config/fish/functions/$function_name.fish set -l original_contents set -l comment_lines if test -e $dest_file set original_contents (cat $dest_file) for line in $original_contents ...
Use fish_indent to fix funcsave output
Use fish_indent to fix funcsave output
fish
mit
phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles
efff0e1473bb92c71211dc6c14107e718fd5e5d9
fish/env.fish
fish/env.fish
echo " *** Loading env ***" set -gx EDITOR /usr/local/bin/vim set -gx BUNDLER_EDITOR $EDITOR set -gx TERM "screen-256color" # Manpage settings {{{ set -gx MANPAGER "less -X" # }}} set -gx COPYFILE_DISABLE true # PATH {{{ append-to-path ~/bin prepend-to-path /usr/local/sbin # }}} set JDK jdk1.8.0_92.jdk set -gx JAVA...
echo " *** Loading env ***" set -gx EDITOR /usr/local/bin/vim set -gx BUNDLER_EDITOR $EDITOR set -gx TERM "screen-256color" # Manpage settings {{{ set -gx MANPAGER "less -X" # }}} set -gx COPYFILE_DISABLE true # PATH {{{ append-to-path ~/bin prepend-to-path /usr/local/sbin append-to-path /Applications/Postgres.app/C...
Add Postgres.app to the fish path
Add Postgres.app to the fish path
fish
mit
barrettclark/dotfiles,barrettclark/dotfiles
d3e28bfaa1698a5f9942808b52a6b8a2b32ad5d7
fish/init/editor.fish
fish/init/editor.fish
if which emacs > /dev/null set --global --export EDITOR emacs else if which subl > /dev/null set --global --export EDITOR 'subl --wait' else set --global --export EDITOR vim end
if which emacs > /dev/null set --global --export EDITOR "emacsclient -t" set --global --export ALTERNATE_EDITOR '' alias e='emacsclient -t' alias ec='emacsclient -c' alias vim='emacsclient -t' alias vi='emacsclient -t' else if which subl > /dev/null set --global --export EDITOR 'subl --wai...
Use Emacs in daemon mode
Use Emacs in daemon mode
fish
mit
lee-dohm/environment,lee-dohm/environment,lee-dohm/environment
b58bc9a5b119cae65139c8c87e9bceead39ecad6
fasd/init.fish
fasd/init.fish
# # Maintains a frequently used file and directory list for fast access. # # Avoid config if requirements are not found. if not type -q fasd exit end # # Tweaks # # Change fasd data dir set -x _FASD_DATA "$HOME/.cache/fasd/data" # # Aliases # alias vimf 'f -e vim' # Search files with fasd and then open them with...
# # Maintains a frequently used file and directory list for fast access. # # Avoid config if requirements are not found. if not type -q fasd exit end # # Tweaks # # Change fasd data dir set -x _FASD_DATA "$HOME/.cache/fasd/data" # # Aliases # alias ao 'fasd -a -e atom' # find files/dirs with fasd and open them i...
Add aliases to open files/dirs in Atom and Sublime using fasd
Add aliases to open files/dirs in Atom and Sublime using fasd
fish
unlicense
guerrero/dotfiles
3f602511d3f942c695cbd26e3381179e8c388737
fish_right_prompt.fish
fish_right_prompt.fish
function fish_right_prompt -d "Right side prompt message" # A dark grey set --local dark_grey 555 set_color $dark_grey show_git_info echo -en (date +%H:%M:%S) set_color normal end function show_git_info -d "Show git repository information" set --local LIMBO /dev/null set --local...
function fish_right_prompt -d "Right side prompt message" # A dark grey set --local dark_grey 555 set_color $dark_grey show_virtualenv_name show_git_info echo -en (date +%H:%M:%S) set_color normal end function show_virtualenv_name -d "Display the name of the current virtualenv" ...
Add support to virtualenv. Display the name of the current virtualenv on the right side of prompt between brackets.
Add support to virtualenv. Display the name of the current virtualenv on the right side of prompt between brackets. Related to #2.
fish
mit
oh-my-fish/theme-fishbone
b23811d87fde61bdae300d57ca0c16ee39100811
functions/delete-group.fish
functions/delete-group.fish
function delete-group --argument group if empty "$group" usage delete-group '<group>' return (false) end print-status delete-group "$argv" for policy in (attached-policies group "$group") detach-policy group "$group" "$policy" end for user in (actual-users-in-group "$g...
Add function to delete a group
Add function to delete a group
fish
mit
colstrom/piranha,colstrom/shellops-aws
3876c3dfc3068673b6e898e8b50b958f6230c63c
config/fish/functions/update-dotfiles.fish
config/fish/functions/update-dotfiles.fish
function update-dotfiles --description "Updates the dotfiles" # cd ~/dotfiles; git stash && git reup && git submodule update --init && git stash pop; printf "\n" && gem up && printf "\n" && gem cleanup; print "\n" && (cd ~/.rbenv/plugins/ruby-build; git up); (cd ~/Mjam/mjam-ios; git up); (cd ~/Mjam/mjam-android; g up);...
function update-dotfiles --description "Updates the dotfiles" # cd ~/dotfiles; git stash && git reup && git submodule update --init && git stash pop; printf "\n" && gem up && printf "\n" && gem cleanup; print "\n" && (cd ~/.rbenv/plugins/ruby-build; git up); (cd ~/Mjam/mjam-ios; git up); (cd ~/Mjam/mjam-android; g up);...
Make 'update dotfiles' output a bit nicer to read
Fish: Make 'update dotfiles' output a bit nicer to read
fish
mit
cypher/dotfiles,cypher/dotfiles,cypher/dotfiles,cypher/dotfiles,cypher/dotfiles,cypher/dotfiles
c24c7578b548d21072ddc7af050b6a6156a00594
.config/fish/conf.d/00-environment.fish
.config/fish/conf.d/00-environment.fish
# set Helix as the default editor set --global --export EDITOR helix set --global --export VISUAL helix # colorize man pages set --global --export MANPAGER 'less -R --use-color -Dd+g -Du+c' # run `make` with as many jobs in parallel as there as processors set --global --export MAKEFLAGS -j(nproc) if test (count /etc...
# set LunarVim as the default editor set --global --export EDITOR lvim set --global --export VISUAL lvim # set LunarVim as the default diff tool set --global --export DIFFPROG 'lvim -d' # colorize man pages set --global --export MANPAGER 'less -R --use-color -Dd+g -Du+c' # run `make` with as many jobs in parallel as...
Revert "fish/env: change the default editor to `helix`"
Revert "fish/env: change the default editor to `helix`" This reverts commit 0583e4a57a248fa147ef87434531f3f4fc10f8e0.
fish
mit
rgeorgiev583/dotfiles
91717205e105d6bce6985ea4298586a9f62928b0
.config/fish/functions/brew_update.fish
.config/fish/functions/brew_update.fish
# Short alias for installing gems using Bundler. function brew_update # This can only be run by an admin user if not user_is_admin exit 1 end brew update and brew upgrade firewall_allow_nginx end
# Short alias for installing gems using Bundler. function brew_update # Verify the user owns the Homebrew dir. set brew_home (brew --prefix) if not test (stat -f%u $brew_home) -eq (id -u $USER) echo "You must be the owner of $brew_home to run this command." return 1 end brew update ...
Check for ownership of brew home instead of admin status
Check for ownership of brew home instead of admin status
fish
mit
phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles
8b40fecabf84a79a9fda19fa18faac44c6f5c164
.config/fish/functions/🗄__gitconfig.fish
.config/fish/functions/🗄__gitconfig.fish
# Sets git user.name and user.email # # ~/.gitconfig is tracked and shared. Sensitive or machine-specific data is # stored in the alternate global config file. # > If $XDG_CONFIG_HOME is not set or empty, $HOME/.config/git/config will be used. function 🗄__gitconfig --argument-names email name echo "🗄 Git configu...
# Sets git user.name and user.email # # ~/.gitconfig is tracked and shared. Sensitive or machine-specific data is # stored in the alternate global config file. # > If $XDG_CONFIG_HOME is not set or empty, $HOME/.config/git/config will be used. function 🗄__gitconfig --argument-names email name echo "🗄 Git configu...
Use global config --file for git config checks
Use global config --file for git config checks
fish
mit
phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles
78aeaa3c8a6e0f5a896cc3b15c15fab86bc789bd
bitbar/brew.1h.fish
bitbar/brew.1h.fish
#!/usr/local/bin/fish # <bitbar.title>Homebrew updates</bitbar.title> # <bitbar.author>Sebastian Klatt</bitbar.author> # <bitbar.author.github>sebastianmarkow</bitbar.author.github> # <bitbar.desc>List available updates from Homebrew</bitbar.desc> # <bitbar.dependencies>fish,cut,wc,printf</bitbar.dependencies> set -l ...
#!/usr/local/bin/fish # <bitbar.title>Homebrew updates</bitbar.title> # <bitbar.author>Sebastian Klatt</bitbar.author> # <bitbar.author.github>sebastianmarkow</bitbar.author.github> # <bitbar.desc>List available updates from Homebrew</bitbar.desc> # <bitbar.dependencies>fish,cut,wc,printf</bitbar.dependencies> set -l ...
Add separator after update item
bitbar: Add separator after update item
fish
mit
sebastianmarkow/dotfiles
d5f379b2cb93e1175f392e8b65bd4b8863b0dfd5
functions/pacupd.fish
functions/pacupd.fish
which abs ^ /dev/null > /dev/null if test $status -ne 1 function pacupd -d "Update and refresh the local package and ABS databases against repositories" sudo pacman -Sy; and sudo abs end else function pacupd -d "Update and refresh the local package against repositories" sudo pacman -Sy end end
which abs 2> /dev/null > /dev/null if test $status -ne 1 function pacupd -d "Update and refresh the local package and ABS databases against repositories" sudo pacman -Sy; and sudo abs end else function pacupd -d "Update and refresh the local package against repositories" sudo pacman -Sy end end
Make stderr redirection compatible with Fish 3.0.
Make stderr redirection compatible with Fish 3.0.
fish
mit
oh-my-fish/plugin-archlinux
420b5dc5f1da47a88aff71a6067a0a533b3d1c80
fish/oh-my-fish/pkg/jrduncans/init.fish
fish/oh-my-fish/pkg/jrduncans/init.fish
function mkdir --wraps mkdir command mkdir -p $argv; end function jl --description 'colorized pretty-printed JSON in less' jq -C . | less -R $argv; end if status --is-login set PATH $PATH ~/bin ~/.local/bin end function ll --wraps exa exa -lh --git $argv end function amm-cats --wraps amm amm -p ~/dotfiles...
function mkdir --wraps mkdir command mkdir -p $argv; end function jl --description 'colorized pretty-printed JSON in less' jq -C . | less -R $argv; end if status --is-login set PATH $PATH ~/bin ~/.local/bin end status --is-interactive; and source (rbenv init -|psub) function ll --wraps exa exa -lh --git $ar...
Add wrapper for ammonite to use from brew; add rbenv
Add wrapper for ammonite to use from brew; add rbenv
fish
mit
jrduncans/dotfiles
2e6c79ac17b2ec667db78f5e28e15ef8e49589ee
scripts/kdb.fish
scripts/kdb.fish
function __fish_kdb_no_subcommand \ -d 'Check if the current commandline buffer does not contain a subcommand' set subcommands (__fish_kdb_complete) for input in (commandline -opc) if contains -- $input $subcommands return 1 end end return 0 end function __fish_kdb_complete ...
function __fish_kdb_no_subcommand \ -d 'Check if the current commandline buffer does not contain a subcommand' set subcommands (__fish_kdb_print_subcommands) for input in (commandline -opc) if contains -- $input $subcommands return 1 end end return 0 end function __fish_kdb_...
Use more descriptive function name
Completions: Use more descriptive function name
fish
bsd-3-clause
e1528532/libelektra,e1528532/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,mpranj/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,mpranj/libelektra,petermax2/libelektra,mpranj/libelektra,pete...
16d9c9df944a427d088f44ee79c200fb624532da
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 pypy 'pypy3.2' alias tmux-reload 'tmux source-file ~/.tmux.conf' alias git 'hub' # settings set -x EDITOR n...
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 pypy 'pypy3.2' alias tmux-reload 'tmux source-file ~/.tmux.conf' alias git 'hub' # settings set -x EDITOR n...
Add relative node binary path to PATH
Add relative node binary path to PATH
fish
mit
noraesae/dotfiles,noraesae/dotfiles,noraesae/dotfiles
26bae48b0559c75491b58165230d49c26ff09fbd
stowed/.config/fish/config.fish
stowed/.config/fish/config.fish
set -gx NPM_PACKAGES "$HOME/.npm-packages" set -gx JANET_PATH ~/.cache/janet set -gx NODE_PATH "$NPM_PACKAGES/lib/node_modules:$NODE_PATH" set -gx PATH ~/bin ~/npm-packages/bin ~/.cargo/bin ~/.luarocks/bin $PATH mkdir -p ~/bin $NPM_PACKAGES/bin ~/.cargo/bin ~/.luarocks/bin $JANET_PATH set -gx fish_greeting "" set -gx...
set -gx NPM_PACKAGES "$HOME/.npm-packages" set -gx JANET_PATH ~/.cache/janet set -gx NODE_PATH "$NPM_PACKAGES/lib/node_modules:$NODE_PATH" set -gx PATH ~/bin $NPM_PACKAGES/bin ~/.cargo/bin ~/.luarocks/bin $PATH mkdir -p ~/bin $NPM_PACKAGES/bin ~/.cargo/bin ~/.luarocks/bin $JANET_PATH set -gx fish_greeting "" set -gx ...
Correct path for npm bin
Correct path for npm bin
fish
unlicense
Olical/dotfiles
73f26b02221dc41cf8676077269dd4436e3c8c4f
.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 git_is_repo and test -n git_reposit...
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 wider min-width tab titles
Use wider min-width tab titles
fish
mit
stefanmaric/dotfiles,stefanmaric/dotfiles
da06c297bd4de279880d0e42155741c52bd24a84
fish/.config/fish/functions/fish_prompt.fish
fish/.config/fish/functions/fish_prompt.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 # # U...
# 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...
Remove git branch indicator from the fish prompt: it takes too long to return and is making the prompt slow.
Remove git branch indicator from the fish prompt: it takes too long to return and is making the prompt slow.
fish
apache-2.0
RenatoUtsch/dotfiles
0c2a974761e276ecfe4facc2be4ce4f588ea80be
config/fish/functions/fish_prompt.fish
config/fish/functions/fish_prompt.fish
function fish_prompt --description 'Write out the prompt' set -l cyan (set_color cyan) set -l prefix '$' printf '\n' set_color cyan printf '%s' (prompt_pwd) set_color normal printf '%s\n' (__fish_git_prompt)(__fish_git_prompt_dirty) set_color white printf '%s ' $prefix set_color...
function fish_prompt --description 'Write out the prompt' set -l cyan (set_color cyan) set -l prefix '$' printf '\n' set_color cyan printf '%s' (prompt_pwd) set_color normal printf '%s\n' (fish_git_prompt)(__fish_git_prompt_informative_status) set_color white printf '%s ' $prefix ...
Fix fish prompt after upgrade
Fix fish prompt after upgrade
fish
unlicense
icyphox/dotfiles
016ac47ce95235d7ac002f059cf8881b8e354263
runcommands/completion/fish/runcommands.fish
runcommands/completion/fish/runcommands.fish
complete \ --no-files \ -c run -c runcommand -c runcommands \ -a '(runcommands-complete -- \ (commandline) \ (commandline --current-token) \ (commandline --cursor) \ fish)'
complete \ --no-files \ -c run -c runcommand -c runcommands -c commands.py \ -a '(runcommands-complete -- \ (commandline) \ (commandline --current-token) \ (commandline --cursor) \ fish)'
Add commands.py as command for fish completions
Add commands.py as command for fish completions
fish
mit
wylee/runcommands,wylee/runcommands
e0b1d660a3bbd00a01fab3b00cdcda187673d8f3
.config/fish/config.fish
.config/fish/config.fish
# configure git settings if test ! -f ~/.gitconfig git config --global user.name "Alexandru Barbur" git config --global user.email "root.ctrlc@gmail.com" git config --global push.default simple git config --global color.ui auto end # golang set GOPATH $HOME/go if test -d "$GOPATH/bin" set PATH $PAT...
Add an initialization script for the fish shell.
Add an initialization script for the fish shell.
fish
unlicense
CtrlC-Root/dotfiles,CtrlC-Root/dotfiles,CtrlC-Root/dotfiles
11fae6f503c1a8cb81ad800def7f7a13b7fa9b84
init.fish
init.fish
# global encoding set -gx LANG en_US.UTF-8 # global path mkdir -p $HOME/bin $HOME/.local/bin set PATH $HOME/bin $HOME/.local/bin /usr/local/bin $PATH # homebrew settings function check_brew_installtion --description "check homebrew if installed" if not which brew >/dev/null ^&1 echo 'Homebrew is not installed, ...
# global encoding set -gx LANG en_US.UTF-8 # global path mkdir -p $HOME/bin $HOME/.local/bin set PATH $HOME/bin $HOME/.local/bin /usr/local/bin $PATH # homebrew settings function check_brew_installtion --description "check homebrew if installed" if not which brew >/dev/null ^&1 echo 'Homebrew is not installed, ...
Set go alias if latest go rc exists
Set go alias if latest go rc exists
fish
mit
douglarek/fish
7f70e4e85664b56013a93d8b5817d9c0dcd7ec51
init.fish
init.fish
function init --on-event init_rvm rvm current 1>/dev/null 2>&1 function __check_rvm --on-variable PWD -d 'Setup rvm on directory change' status --is-command-substitution; and return if test "$rvm_project_rvmrc" != 0 set -l cwd $PWD while true if contains $cwd "" $HOME "/" if t...
rvm current 1>/dev/null 2>&1 function __check_rvm --on-variable PWD -d 'Setup rvm on directory change' status --is-command-substitution; and return if test "$rvm_project_rvmrc" != 0 set -l cwd $PWD while true if contains $cwd "" $HOME "/" if test "$rvm_project_rvmrc_default" = 1 rvm...
Initialize immediately, rather than waiting for an event.
Initialize immediately, rather than waiting for an event.
fish
mit
oh-my-fish/plugin-rvm
28819e6da87f146c63b79491e52d575322fe49f3
init.fish
init.fish
function init -a path --on-event init_jump if not set -q MARKPATH set -gx MARKPATH $HOME/.marks command mkdir -p $MARKPATH end end
if not set -q MARKPATH set -gx MARKPATH $HOME/.marks command mkdir -p $MARKPATH end
Initialize immediately, rather than waiting for an event.
Initialize immediately, rather than waiting for an event.
fish
mit
oh-my-fish/plugin-jump
dbd65608cadc7197741f238cc2631c1f830ee065
plugins/find-in/find-in.fish
plugins/find-in/find-in.fish
# The MIT License # # Copyright (c) Simon Lees <http://simotek.net/> and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the ...
Add a plugin for finding a string in files, find + grep
Add a plugin for finding a string in files, find + grep
fish
mit
simotek/tackle,simotek/tackle
97d1598bd3cb70ddd83ead34e4db4421209db76e
tag-laravel/config/fish/functions/laravel-logs.fish
tag-laravel/config/fish/functions/laravel-logs.fish
function laravel-logs tail -f -n 450 storage/logs/laravel/*.log | \ rg -i "^\[\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}\]|Next [\w]+?\:" end
Add command to tail Laravel logs
Add command to tail Laravel logs
fish
mit
stevenberg/dotfiles,stevenberg/dotfiles,stevenberg/dotfiles
8ef346e8ab1e7412a6e550e61b4ca9f70cf4fa14
dotfish/functions/peco_checkout_git_branch.fish
dotfish/functions/peco_checkout_git_branch.fish
function peco_checkout_git_branch if git_is_repo git branch -a | peco | tr -d ' ' | read branch echo $branch if [ $branch ] if contains $branch "remotes/" set -l b (echo $branch | awk -F'/' '{print $3}') git checkout -b $b $branch else git checkout $bran...
function peco_checkout_git_branch if git_is_repo git branch -a | peco | tr -d ' ' | read branch echo $branch if [ $branch ] set -l is_remote (string match "remotes\/*" $branch) echo $is_remote if [ -n is_remote ] set -l b (string replace "remotes/origin/" "" $branch) echo...
Fix handling that checkout a remote branch
Fix handling that checkout a remote branch
fish
mit
ukoasis/dotfiles
7a17a9cd877be4e63afde5b59c23396effe343cc
.config/omf/init.fish
.config/omf/init.fish
# autojump [ -f /usr/local/share/autojump/autojump.fish ]; and source /usr/local/share/autojump/autojump.fish [ -f /usr/share/autojump/autojump.fish ]; and source /usr/share/autojump/autojump.fish # rust set -x RUSTPATH $HOME/.rust_workspace set PATH $HOME/.cargo/bin $PATH # golang set -x GOPATH $HOME/.go_workspace s...
# autojump [ -f /usr/local/share/autojump/autojump.fish ]; and source /usr/local/share/autojump/autojump.fish [ -f /usr/share/autojump/autojump.fish ]; and source /usr/share/autojump/autojump.fish # rust set -xg RUSTPATH $HOME/.rust_workspace set PATH $HOME/.cargo/bin $PATH # golang set -xg GOPATH $HOME/.go_workspace...
Set GOPATH/RUSTPATH with global option
Set GOPATH/RUSTPATH with global option
fish
mit
xohozu/dotfiles