Fish: Changes
This commit is contained in:
parent
a9352f0784
commit
438d595a77
3 changed files with 13 additions and 66 deletions
|
@ -34,6 +34,8 @@ alias q=' exit'
|
||||||
alias Q=' exit'
|
alias Q=' exit'
|
||||||
alias x=' exit'
|
alias x=' exit'
|
||||||
alias cd..='cd ..'
|
alias cd..='cd ..'
|
||||||
|
alias mmk2410='~/.mmk2410'
|
||||||
|
|
||||||
if [ -z $SSH_CLIENT ]
|
if [ -z $SSH_CLIENT ]
|
||||||
~/.mmk2410
|
~/.mmk2410
|
||||||
end
|
end
|
||||||
|
@ -46,3 +48,7 @@ if [ -z $VISUAL ]
|
||||||
set -Ux VISUAL nvim
|
set -Ux VISUAL nvim
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if [ -z $GOPATH ]
|
||||||
|
set -Ux GOPATH ~/.go
|
||||||
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,66 +0,0 @@
|
||||||
- cmd: ls /usr/bin/
|
|
||||||
when: 1462367636
|
|
||||||
paths:
|
|
||||||
- /usr/bin/
|
|
||||||
- cmd: pub
|
|
||||||
when: 1462367761
|
|
||||||
- cmd: dart
|
|
||||||
when: 1462367764
|
|
||||||
- cmd: cd rtlwifi_new/
|
|
||||||
when: 1462368025
|
|
||||||
paths:
|
|
||||||
- rtlwifi_new/
|
|
||||||
- cmd: sudo make uninstall
|
|
||||||
when: 1462368036
|
|
||||||
- cmd: sudo update-initramfs -u
|
|
||||||
when: 1462368061
|
|
||||||
- cmd: man su
|
|
||||||
when: 1462368073
|
|
||||||
- cmd: sudo update-grub
|
|
||||||
when: 1462368103
|
|
||||||
- cmd: sudo update-grub2
|
|
||||||
when: 1462368119
|
|
||||||
- cmd: cd
|
|
||||||
when: 1462368640
|
|
||||||
- cmd: l dotfiles/
|
|
||||||
when: 1462368644
|
|
||||||
paths:
|
|
||||||
- dotfiles/
|
|
||||||
- cmd: cd .config/
|
|
||||||
when: 1462368648
|
|
||||||
paths:
|
|
||||||
- .config/
|
|
||||||
- cmd: l
|
|
||||||
when: 1462368649
|
|
||||||
- cmd: ln -s ~/dotfiles/fish/
|
|
||||||
when: 1462368659
|
|
||||||
- cmd: ls
|
|
||||||
when: 1462368662
|
|
||||||
- cmd: ll fish/
|
|
||||||
when: 1462368666
|
|
||||||
paths:
|
|
||||||
- fish/
|
|
||||||
- cmd: ll
|
|
||||||
when: 1462368669
|
|
||||||
- cmd: rm -rf fish/
|
|
||||||
when: 1462368672
|
|
||||||
paths:
|
|
||||||
- fish/
|
|
||||||
- cmd: ln -s ~/dotfiles/fish/
|
|
||||||
when: 1462368677
|
|
||||||
- cmd: ll
|
|
||||||
when: 1462368679
|
|
||||||
- cmd: ls fish/
|
|
||||||
when: 1462368682
|
|
||||||
paths:
|
|
||||||
- fish/
|
|
||||||
- cmd: exit
|
|
||||||
when: 1462368684
|
|
||||||
- cmd: bah
|
|
||||||
when: 1462368688
|
|
||||||
- cmd: bash
|
|
||||||
when: 1462368690
|
|
||||||
- cmd: exit
|
|
||||||
when: 1462368909
|
|
||||||
- cmd: exit
|
|
||||||
when: 1462368949
|
|
7
fish/functions/fish_prompt.fish
Normal file
7
fish/functions/fish_prompt.fish
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
function fish_prompt --description 'Write out the prompt'
|
||||||
|
if test -z $WINDOW
|
||||||
|
printf '%s%s@%s%s%s%s%s> ' (set_color yellow) (whoami) (set_color purple) (hostname|cut -d . -f 1) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
|
||||||
|
else
|
||||||
|
printf '%s%s@%s%s%s(%s)%s%s%s> ' (set_color yellow) (whoami) (set_color purple) (hostname|cut -d . -f 1) (set_color white) (echo $WINDOW) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue