improve nixbash
This commit is contained in:
parent
576ef0c27e
commit
0d8043bb7d
2
.aliases
2
.aliases
|
@ -99,8 +99,6 @@ alias nixpath="nix-build '<nixpkgs>' --no-build-output -A"
|
|||
|
||||
alias nixcorrect="nix-shell -p --run 'bundle exec rubocop --format simple --config .rubocop.yml --auto-correct'"
|
||||
alias nixtodo="nix-shell -p --run 'bundle exec rubocop --format simple --config .rubocop.yml --auto-gen-config --no-auto-gen-timestamp'"
|
||||
alias nixbi="nix-shell -p zlib libxml2 postgresql sqlite libxslt shared-mime-info --run 'CFLAGS=-Wno-error=format-overflow bundle install'"
|
||||
alias nixbu="nix-shell -p zlib libxml2 postgresql sqlite libxslt shared-mime-info --run 'CFLAGS=-Wno-error=format-overflow bundle update'"
|
||||
|
||||
# MISC
|
||||
# ====
|
||||
|
|
13
.functions
13
.functions
|
@ -215,3 +215,16 @@ nixpkg-install () {
|
|||
nixpkg-uninstall () {
|
||||
nix-env -e "${1}"
|
||||
}
|
||||
|
||||
nixruby () {
|
||||
freedesktop="$(nixpath shared-mime-info)"
|
||||
|
||||
nix-shell -p \
|
||||
zlib \
|
||||
libxml2 \
|
||||
postgresql \
|
||||
sqlite \
|
||||
libxslt \
|
||||
shared-mime-info \
|
||||
--run "FREEDESKTOP_MIME_TYPES_PATH=${freedesktop}/share/mime/packages/freedesktop.org.xml ${*}"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue