From e74225a8182ed9910d9cbdaca902d04199495b1a Mon Sep 17 00:00:00 2001 From: tmu Date: Sat, 16 Dec 2023 13:25:40 -0800 Subject: fish --- fish/conf.d/alias.fish | 12 ++++++++++++ fish/conf.d/alias.fish~ | 8 ++++++++ fish/conf.d/fish_prompt.fish | 6 ++++++ fish/conf.d/fish_prompt.fish~ | 8 ++++++++ fish/config.fish | 3 +++ fish/fish_variables | 39 +++++++++++++++++++++++++++++++++++++++ fish/functions/autojump.fish | 12 ++++++++++++ 7 files changed, 88 insertions(+) create mode 100644 fish/conf.d/alias.fish create mode 100644 fish/conf.d/alias.fish~ create mode 100644 fish/conf.d/fish_prompt.fish create mode 100644 fish/conf.d/fish_prompt.fish~ create mode 100644 fish/config.fish create mode 100644 fish/fish_variables create mode 100644 fish/functions/autojump.fish diff --git a/fish/conf.d/alias.fish b/fish/conf.d/alias.fish new file mode 100644 index 0000000..9e5607c --- /dev/null +++ b/fish/conf.d/alias.fish @@ -0,0 +1,12 @@ +alias a "ALTERNATE_EDITOR=emacs emacsclient -nw" +alias e "emacs -nw" +alias ll "ls -al" +alias bctl "bluetoothctl" +alias gs "git status" +alias gl "git log --graph --oneline --all" +alias gch "git checkout" +alias alm "echo -e '\a'" +alias pp "popd" +alias pd "pushd" +alias sp "pushd" # for swapping +alias up "cd .." diff --git a/fish/conf.d/alias.fish~ b/fish/conf.d/alias.fish~ new file mode 100644 index 0000000..909d112 --- /dev/null +++ b/fish/conf.d/alias.fish~ @@ -0,0 +1,8 @@ +alias a "ALTERNATE_EDITOR=emacs emacsclient -nw" +alias e "emacs -nw" +alias ll "ls -al" +alias bctl "bluetoothctl" +alias gs "git status" +alias gl "git log --graph --oneline --all" +alias gch "git checkout" +alias alm "echo -e '\a'" diff --git a/fish/conf.d/fish_prompt.fish b/fish/conf.d/fish_prompt.fish new file mode 100644 index 0000000..c71efd9 --- /dev/null +++ b/fish/conf.d/fish_prompt.fish @@ -0,0 +1,6 @@ +function fish_prompt + set_color $fish_color_cwd + echo -n (prompt_pwd) + set_color normal + echo -n '𝛔 ' +end diff --git a/fish/conf.d/fish_prompt.fish~ b/fish/conf.d/fish_prompt.fish~ new file mode 100644 index 0000000..864330b --- /dev/null +++ b/fish/conf.d/fish_prompt.fish~ @@ -0,0 +1,8 @@ +function fish_prompt + set_color $fish_color_cwd + echo -n (prompt_pwd) + set_color normal + echo -n '𝛔 ' +end + +set fish diff --git a/fish/config.fish b/fish/config.fish new file mode 100644 index 0000000..d714361 --- /dev/null +++ b/fish/config.fish @@ -0,0 +1,3 @@ +if status is-interactive + # Commands to run in interactive sessions can go here +end diff --git a/fish/fish_variables b/fish/fish_variables new file mode 100644 index 0000000..92d1fea --- /dev/null +++ b/fish/fish_variables @@ -0,0 +1,39 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR FOMU_REV:pvt +SETUVAR GHDL_PLUGIN_MODULE:ghdl +SETUVAR GHDL_PREFIX:/usr/lib/ghdl +SETUVAR --export IRS_CONFIG_LOCATION: +SETUVAR --export MAKEFLAGS:\x2dj7 +SETUVAR --export --path PATH:/home/tmu/\x2ecabal/bin\x1e/home/tmu/\x2eghcup/bin\x1e/home/tmu/\x2ecabal/bin\x1e/home/tmu/\x2eghcup/bin\x1e/usr/local/sbin\x1e/usr/local/bin\x1e/usr/bin\x1e/usr/bin/site_perl\x1e/usr/bin/vendor_perl\x1e/usr/bin/core_perl +SETUVAR __fish_initialized:3400 +SETUVAR fish_color_autosuggestion:555\x1ebrblack +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:blue +SETUVAR fish_color_comment:red +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:green +SETUVAR fish_color_error:brred +SETUVAR fish_color_escape:brcyan +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:brcyan +SETUVAR fish_color_param:cyan +SETUVAR fish_color_quote:yellow +SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold +SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_status:red +SETUVAR fish_color_user:brgreen +SETUVAR fish_color_valid_path:\x2d\x2dunderline +SETUVAR fish_greeting:\x1d +SETUVAR fish_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di +SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_pager_color_selected_background:\x2dr +SETUVAR fish_user_paths:/home/tmu/\x2eghcup/bin\x1e/home/tmu/\x2ecabal/bin diff --git a/fish/functions/autojump.fish b/fish/functions/autojump.fish new file mode 100644 index 0000000..a265845 --- /dev/null +++ b/fish/functions/autojump.fish @@ -0,0 +1,12 @@ +function j + set new_path (autojump $argv) + + if test -d "$new_path" + echo $new_path + cd "$new_path" + else + echo "autojump: directory '$argv' not found" + echo "Try \`autojump --help\` for more information." + false + end +end -- cgit v1.2.3