diff options
| author | tmu <t.man.atl.2012@gmail.com> | 2023-12-16 13:25:40 -0800 |
|---|---|---|
| committer | tmu <t.man.atl.2012@gmail.com> | 2023-12-16 13:25:40 -0800 |
| commit | e74225a8182ed9910d9cbdaca902d04199495b1a (patch) | |
| tree | 0c1397e1715c4fb2f7027408b31d5aa8121bb3da | |
| parent | a04213e2c04a98c204c5e51dcf0219a4286113bf (diff) | |
fish
| -rw-r--r-- | fish/conf.d/alias.fish | 12 | ||||
| -rw-r--r-- | fish/conf.d/alias.fish~ | 8 | ||||
| -rw-r--r-- | fish/conf.d/fish_prompt.fish | 6 | ||||
| -rw-r--r-- | fish/conf.d/fish_prompt.fish~ | 8 | ||||
| -rw-r--r-- | fish/config.fish | 3 | ||||
| -rw-r--r-- | fish/fish_variables | 39 | ||||
| -rw-r--r-- | fish/functions/autojump.fish | 12 |
7 files changed, 88 insertions, 0 deletions
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 |
