From 9a6d08ea315cecc77f76efcdcf5f09acf14916da Mon Sep 17 00:00:00 2001 From: Hedy Li Date: Fri, 1 Jan 2021 17:02:58 +0800 Subject: [PATCH] fish: rm functions cproj and cprac, modify config Removed cproj and cprac because I use the 'pj' plugin now (omf) Removed redundant setting of clean state char because it is already set in fish_prompt --- .config/fish/config.fish | 1 - .config/fish/functions/cprac.fish | 18 ------------------ .config/fish/functions/cproj.fish | 14 -------------- 3 files changed, 33 deletions(-) delete mode 100644 .config/fish/functions/cprac.fish delete mode 100644 .config/fish/functions/cproj.fish diff --git a/.config/fish/config.fish b/.config/fish/config.fish index de6a1e6..6c217e2 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -1,4 +1,3 @@ bass 'export GEM_HOME=$HOME/gems' bass 'export BROWSER=w3m' -set -g __fish_git_prompt_char_cleanstate "=" umask 0002 diff --git a/.config/fish/functions/cprac.fish b/.config/fish/functions/cprac.fish deleted file mode 100644 index 0b00c9b..0000000 --- a/.config/fish/functions/cprac.fish +++ /dev/null @@ -1,18 +0,0 @@ -function cprac - if test -e /mnt/c/Users/hedyh/codeprac/ - set -gx cprac_path /mnt/c/Users/hedyh/codeprac/ - else - echo "codeprac path not found, please enter path: " - read -gx cprac_path - end - if string length -q -- $argv - if test -e $cprac_path$argv[1] - cd $cprac_path$argv[1] - else - cd $cprac_path/*/$argv[1]/ - end - else - cd $cprac_path - end -end - diff --git a/.config/fish/functions/cproj.fish b/.config/fish/functions/cproj.fish deleted file mode 100644 index fba5114..0000000 --- a/.config/fish/functions/cproj.fish +++ /dev/null @@ -1,14 +0,0 @@ -function cproj - if test -e /mnt/c/Users/hedyh/codeproj/ - set -gx cproj_path /mnt/c/Users/hedyh/codeproj/ - else - echo "codeproj path not found, please enter path" - read -gx cproj_path - end - if string length -q -- $argv - cd $cproj_path$argv[1] - else - cd $cproj_path - end -end -