about summary refs log tree commit diff
path: root/profile/.profile.d/ag.sh
diff options
context:
space:
mode:
Diffstat (limited to 'profile/.profile.d/ag.sh')
-rw-r--r--profile/.profile.d/ag.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/profile/.profile.d/ag.sh b/profile/.profile.d/ag.sh
new file mode 100644
index 0000000..2ddded0
--- /dev/null
+++ b/profile/.profile.d/ag.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if command -v ag >/dev/null 2>&1; then
+	alias ag="ag --color --smart-case"
+fi

Consider giving Nix/NixOS a try! <3