Changes from work #2

Merged
lytedev merged 3 commits from lytedev-divvy/dotfiles:master into master 2022-05-11 11:00:45 -05:00
7 changed files with 11 additions and 6 deletions
Showing only changes of commit 47fdcca7ad - Show all commits

View file

@ -8,3 +8,4 @@ command -v fish >/dev/null 2>&1 && grep fish /etc/shells >/dev/null 2>&1 && {
echo " You can also try fish temporarily by running 'fish'. No 'chsh' commitment required."
echo " If you're in bash intentionally for some reason, then ignore this message."
}
. "$HOME/.cargo/env"

View file

@ -2,6 +2,7 @@ os/linux
os/linux/arch
os/linux/nix
os/linux/debian
os/macos
host/desktop
host/desktop/wallwart
host/desktop/rising

View file

@ -12,7 +12,7 @@ end
if has_command brew && test -f (brew --prefix asdf)/lib/asdf.fish
set -Ux ASDF_DIR (brew --prefix asdf)
source (brew --prefix asdf)/lib/asdf.fish
source (brew --prefix asdf)/libexec/asdf.fish
else if test -f $HOME/.asdf/asdf.fish
source $HOME/.asdf/asdf.fish
else if test -f /opt/asdf-vm/asdf.fish

View file

@ -12,9 +12,8 @@ end
function preprocess_pwd
test (pwd) = / && echo "/" && return 1
test (pwd) = $NICE_HOME && echo "~" && return 0
# TODO: fix for macOS
echo (pwd) | cut -c2- | \
awk '{split($0,p,"/");for(k in p){if(k==length(p)){printf "/%s",p[k]}else{printf "/%.'$MAX_PATH_PIECE_CHARS[1]'s",p[k]}}}'
pwd | cut -c2- | \
awk '{n=split($0,p,"/");for(i=1;i<=n;i++){if(i==n){printf "/%s",p[i]}else{printf "/%.'$MAX_PATH_PIECE_CHARS[1]'s",p[i]}}}'
end
function fish_prompt

View file

@ -1 +1 @@
/home/daniel/.home/.config/lytedev-dotfiles/common/colors/vim
/Users/danielflanagan/.config/lytedev-dotfiles/common/colors/vim

4
os/macos/config.d.fish Normal file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env fish
fish_add_path /opt/homebrew/sbin
fish_add_path /opt/homebrew/bin