Make the stow directory the root directory

This commit is contained in:
Donovan Glover 2018-02-19 23:58:42 -05:00
parent d02e817363
commit dd6cbe1ae8
No known key found for this signature in database
GPG Key ID: 8FC5F7D90A5D8F4D
3 changed files with 45 additions and 26 deletions

View File

@ -1,7 +1,7 @@
#set -U fish_greeting "" #set -U fish_greeting ""
#set -U fish_history "" #set -U fish_history ""
#set -U fish_user_paths #set -U fish_user_paths
#set -U BROWSER "waterfox" #set -x BROWSER "waterfox"
fish_vi_key_bindings fish_vi_key_bindings
@ -20,3 +20,10 @@ alias t="tree -L 1"
alias todo="rg TODO" alias todo="rg TODO"
alias pwd="pwd | sed -e 's!$HOME!~!g'" alias pwd="pwd | sed -e 's!$HOME!~!g'"
# Start X at login
if status --is-login
if test -z "$DISPLAY" -a $XDG_VTNR = 1
exec startx -- -keeptty
end
end

View File

@ -0,0 +1,37 @@
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_showstashstate 'yes'
set __fish_git_prompt_showupstream 'yes'
set __fish_git_prompt_color_branch magenta
set __fish_git_prompt_char_dirtystate '! '
set __fish_git_prompt_char_stagedstate '→ '
set __fish_git_prompt_char_stashstate '↩ '
set __fish_git_prompt_char_upstream_ahead '↑ '
set __fish_git_prompt_char_upstream_behind '↓ '
function fish_prompt
set -l color_cwd
set -l suffix
set host (prompt_hostname)
set pwd (basename $PWD)
if [ $pwd = $USER ]
set pwd "~"
end
switch "$USER"
case root toor
if set -q fish_color_cwd_root
set color_cwd $fish_color_cwd_root
else
set color_cwd $fish_color_cwd
end
set suffix '#'
case '*'
set color_cwd $fish_color_cwd
set suffix ""
end
set git (__fish_git_prompt)
# $USER@$host
echo -n "$pwd$git ➤➤➤ "
# printf '%s@%s %s%s%s%s> ' (whoami) (hostname) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal) (__fish_git_prompt)
end

View File

@ -1,25 +0,0 @@
function fish_prompt
set -l color_cwd
set -l suffix
set host (prompt_hostname)
set pwd (basename $PWD)
if [ $pwd = $USER ]
set pwd "~"
end
switch "$USER"
case root toor
if set -q fish_color_cwd_root
set color_cwd $fish_color_cwd_root
else
set color_cwd $fish_color_cwd
end
set suffix '#'
case '*'
set color_cwd $fish_color_cwd
set suffix ""
end
# $USER@$host
echo -n "$pwd ➤➤➤ "
end