summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2021-12-21 02:24:47 +0100
committerache <ache@ache.one>2021-12-21 02:24:47 +0100
commitdf9075f22ce8b4c0fa6cb0ecf58336188c4027f0 (patch)
treeb377a958da340ae4552f92a55820cdecc631a107
parentAdd yk reco to function (diff)
Add multiple aliasesHEADmaster
-rw-r--r--config.fish12
-rw-r--r--functions/:.fish1
-rw-r--r--functions/@.fish1
-rw-r--r--functions/groot.fish1
-rw-r--r--functions/ll.fish2
-rw-r--r--functions/pkill.fish1
6 files changed, 16 insertions, 2 deletions
diff --git a/config.fish b/config.fish
index ddd84c5..be03319 100644
--- a/config.fish
+++ b/config.fish
@@ -1,4 +1,3 @@
-
if status is-interactive
if which khal 2> /dev/null > /dev/null
khal calendar 2> /dev/null
@@ -27,6 +26,7 @@ set -x NPM_PACKAGES "$HOME/.npm-packages"
set -x GOPATH "$HOME/.go"
set -x NODE_PATH "$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
set -x RUST_PATH "$HOME/.cargo"
+set -x DEVKITPRO_DIR "/opt/devkitpro"
set -x EMSCRIPTEN_PATH "/usr/lib/emscripten"
set -x JUPYTERLAB_DIR "$HOME/.local/share/jupyterlab"
@@ -47,6 +47,13 @@ end
if [ -d "$EMSCRIPTEN_PATH" ]
set -x PATH $PATH "$EMSCRIPTEN_PATH"
end
+if [ -d "$DEVKITPRO_DIR" ]
+ set -x DEVKITPRO '/opt/devkitpro'
+ set -x DEVKITARM '/opt/devkitpro/devkitARM'
+ set -x DEVKITPPC '/opt/devkitpro/devkitPPC'
+ set -x DEVKIT_PATH "$DEVKITPRO_DIR/tools/bin"
+ set -x PATH $PATH "$DEVKITPRO_PATH"
+end
if which fcitx 2> /dev/null > /dev/null
set -x GTK_IM_MODULE "fcitx"
@@ -71,3 +78,6 @@ set -x fish_emoji_width 2
if test -e ~/.dircolors
eval (dircolors -c ~/.dircolors)
end
+
+# opam configuration
+source /home/ache/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true
diff --git a/functions/:.fish b/functions/:.fish
new file mode 100644
index 0000000..a2c9b03
--- /dev/null
+++ b/functions/:.fish
@@ -0,0 +1 @@
+alias ':'='math'
diff --git a/functions/@.fish b/functions/@.fish
new file mode 100644
index 0000000..68fbba4
--- /dev/null
+++ b/functions/@.fish
@@ -0,0 +1 @@
+alias '@'='math --base=16'
diff --git a/functions/groot.fish b/functions/groot.fish
new file mode 100644
index 0000000..2bb58fb
--- /dev/null
+++ b/functions/groot.fish
@@ -0,0 +1 @@
+alias groot="cd (git rev-parse --show-toplevel)"
diff --git a/functions/ll.fish b/functions/ll.fish
index 2a824a1..963ad19 100644
--- a/functions/ll.fish
+++ b/functions/ll.fish
@@ -1,3 +1,3 @@
function ll -d "ls long mode"
- ls -AlF $argv
+ exa -lF $argv
end
diff --git a/functions/pkill.fish b/functions/pkill.fish
new file mode 100644
index 0000000..40ab79d
--- /dev/null
+++ b/functions/pkill.fish
@@ -0,0 +1 @@
+alias pkill='pkill -9'