From df9075f22ce8b4c0fa6cb0ecf58336188c4027f0 Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 21 Dec 2021 02:24:47 +0100 Subject: Add multiple aliases --- config.fish | 12 +++++++++++- functions/:.fish | 1 + functions/@.fish | 1 + functions/groot.fish | 1 + functions/ll.fish | 2 +- functions/pkill.fish | 1 + 6 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 functions/:.fish create mode 100644 functions/@.fish create mode 100644 functions/groot.fish create mode 100644 functions/pkill.fish 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' -- cgit v1.2.3