summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--shell/aliases.sh5
-rw-r--r--shell/env.sh11
-rw-r--r--starship.toml16
3 files changed, 16 insertions, 16 deletions
diff --git a/shell/aliases.sh b/shell/aliases.sh
index a24288f..99104e7 100644
--- a/shell/aliases.sh
+++ b/shell/aliases.sh
@@ -7,16 +7,11 @@ alias ll='ls -lh'
alias lla='ls -lA'
alias lsa='ls -lah'
alias grep='grep --color'
-alias cat='bat --paging=never'
alias ipa="ip -s -c -h a"
alias untar="tar -zxvf"
# scripts
alias dfi="$DOTFILES/install"
alias dfu="$DOTFILES/update"
-alias initgit="init-git.sh"
-alias inittex="init-latex.sh"
-alias initsrc="init-src.sh"
-alias cht="cht.sh"
# docker
alias dexec="docker exec -it"
alias dps="docker ps"
diff --git a/shell/env.sh b/shell/env.sh
index e09339a..4dd479d 100644
--- a/shell/env.sh
+++ b/shell/env.sh
@@ -1,14 +1,13 @@
#!/usr/bin/env bash
-# https://github.com/junegunn/fzf#respecting-gitignore
+export GPG_TTY=$(tty)
+export BROWSER=wslview
+export STARSHIP_LOG="error"
+export BAT_CONFIG_PATH="${DOTFILES}/bat.conf"
+export MANPAGER="sh -c 'col -bx | bat -l man -p'"
export FZF_BASE="${HOME}/.fzf"
export FZF_PREVIEW_COMMAND="bat --style=numbers,changes --wrap never --color always {} || cat {} || tree -C {}"
export FZF_CTRL_T_OPTS="--min-height 30 --preview-window down:60% --preview-window noborder --preview '($FZF_PREVIEW_COMMAND) 2> /dev/null'"
-export BAT_CONFIG_PATH="${DOTFILES}/bat.conf"
-export MANPAGER="sh -c 'col -bx | bat -l man -p'"
-export GPG_TTY=$(tty)
-export BROWSER=wslview
-
# Path
PATH=$PATH:$HOME/.local/bin:$HOME/.go/bin:$HOME/.dotnet/tools:$HOME/.cargo/bin:$DOTFILES/scripts:/usr/local/texlive/2021/bin/x86_64-linux
diff --git a/starship.toml b/starship.toml
index 1c6cfcd..635d941 100644
--- a/starship.toml
+++ b/starship.toml
@@ -1,18 +1,24 @@
format = """
+($username($hostname) in )\
$all\
"""
add_newline = false
-right_format = """
-$cmd_duration \
-$status\
-"""
-
[fill]
disabled = true
symbol = ""
+[username]
+format = "[$user]($style)"
+
+[hostname]
+format = " on [$hostname]($style)"
+
+[character]
+success_symbol = "[❯](green)"
+error_symbol = "[❯](red)"
+
[aws]
symbol = " "