From 37450bd7dc8d0ff2f8761b27ad839445a527a6b9 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 23 Nov 2019 17:55:52 +0100 Subject: [PATCH] Added paths for Dart and the Android SDK --- .config/fish/README.org | 51 ++++++++++++++++++++++++++++++++++++++++ .config/fish/config.fish | 4 ++++ 2 files changed, 55 insertions(+) diff --git a/.config/fish/README.org b/.config/fish/README.org index eacb0ad..3e480a1 100644 --- a/.config/fish/README.org +++ b/.config/fish/README.org @@ -46,6 +46,7 @@ - [[#tramp-remote-access][Tramp remote access]] - [[#regular-fish-shell-appearance][Regular fish shell appearance]] - [[#global-variables][Global variables]] +- [[#theme-customization][Theme customization]] - [[#abbreviations][Abbreviations]] - [[#system-monitoring][System monitoring]] - [[#system-management-packages-and-services][System management (packages and services)]] @@ -162,12 +163,62 @@ set -gx EDITOR emacsclient -c #+END_SRC + We also need to set the path to the Dart SDK. + #+BEGIN_SRC fish + set -gx DART_SDK /opt/dart-sdk/bin + #+END_SRC + + And we also need to specify where the Android SDK it located. + #+BEGIN_SRC fish + set -gx ANDROID_HOME $HOME/Android/Sdk + #+END_SRC + Finally, some development packages require the =PKG_CONFIG_PATH= to be set, so let’s do so. #+BEGIN_SRC fish set -gx PKG_CONFIG_PATH /usr/local/lib/pkgconfig/ $PKG_CONFIG_PATH #+END_SRC +* Theme customization + :PROPERTIES: + :CUSTOM_ID: h-e9dccb31-8350-459d-b688-b5b7cbeab272 + :END: + + The theme I use is =bobthefish=. Although its default configuration is quite + alright, it allows some customization. The first thing I want to enable is the + support for =nerd-fonts=: + #+BEGIN_SRC fish + set -g theme_nerd_fonts_support yes + #+END_SRC + + Next, I want the name of the current process to be shown in the terminal + title. + #+BEGIN_SRC fish + set -g theme_title_display_process yes + #+END_SRC + + I also wish to display the current host in the prompt, but only when I am + connected through an SSH session. + #+BEGIN_SRC fish + set -g theme_display_hostname ssh + #+END_SRC + + I also want the sudo username to be displayed, as a warning that I am indeed + running a session as root. + #+BEGIN_SRC fish + set -g theme_display_sudo_user yes + #+END_SRC + + The exit status can be sometimes really useful, hence why I want it activated. + #+BEGIN_SRC fish + set -g theme_show_exit_status yes + #+END_SRC + + I also want to have proper git worktree support. + #+BEGIN_SRC fish + set -g theme_git_worktree_support yes + #+END_SRC + * Abbreviations :PROPERTIES: :CUSTOM_ID: h-740bd904-3e32-4c09-b0a4-bde16ae2e116 diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 9dd9bac..23907b8 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -23,6 +23,10 @@ set -gx SUDO_ASKPASS ~/.local/bin/askpass set -gx EDITOR emacsclient -c +set -gx DART_SDK /opt/dart-sdk/bin + +set -gx ANDROID_HOME $HOME/Android/Sdk + set -gx PKG_CONFIG_PATH /usr/local/lib/pkgconfig/ $PKG_CONFIG_PATH abbr df 'df -H'