Out of the box, the new prompt depends on Nerd Fonts.
Personally I'm using "DejaVuSansMono Nerd Font Complete." There are a couple
ways around this if you'd rather: use fontconfig to merge Nerd symbols with
your preferred font, see
here
and
here;
or you can override the various PS1_CHAR_*
variables after loading
.bashrc.prompt
to use symbols already present in your font.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<!-- https://sw.kovidgoyal.net/kitty/faq/#kitty-is-not-able-to-use-my-favorite-font --> | |
<fontconfig> | |
<match target="scan"> | |
<test name="family"><string>Monaspace Argon Var</string></test> | |
<edit name="spacing"><int>100</int></edit> | |
</match> | |
<match target="scan"> | |
<test name="family"><string>Monaspace Krypton Var</string></test> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setup-TERM() { | |
# vte-256color messes up emacs with solarized, so use xterm-256color | |
# instead. | |
declare vte=xterm-256color | |
declare -a terms | |
case $TERM:$COLORTERM in | |
ansi:*) | |
# probably Windows telnet | |
TERM=vt100 ;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as R from 'ramda' | |
import scStyled from 'styled-components' | |
import * as xstyled from '@xstyled/styled-components' | |
import { | |
css, | |
defaultTheme, | |
Preflight, | |
style, | |
ThemeProvider, | |
useTheme, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FindProxyForURL(url, host) { | |
return "DIRECT"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
/** | |
* React hook to force a re-render, for hooks with fancy state management. | |
*/ | |
export const useForceRender = () => { | |
const [, emit] = React.useState() | |
// Stable function response, like useCallback without checking. | |
return React.useRef(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from collections import defaultdict, namedtuple | |
import functools | |
from pprint import pformat, pprint | |
import sys | |
Y = 2019 | |
N = 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! ClipboardCopy(lines, regtype) | |
let sum = TryClipboardCmd('md5sum', a:lines) | |
call writefile(sum, s:regtype_sum, 'S') | |
call writefile([a:regtype], s:regtype_txt, 'S') | |
return TryClipboardCmd('clipboard-provider copy', a:lines) | |
endfunction | |
function! ClipboardPaste() | |
let lines = TryClipboardCmd('clipboard-provider paste') | |
let regtype = 'V' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.16.5-300.fc28.x86_64] (local build) | |
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org | |
=== START OF INFORMATION SECTION === | |
Model Number: INTEL SSDPEKKW512G8 | |
Serial Number: BTHH807007N4512D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Logs begin at Sat 2018-05-05 08:59:40 EDT, end at Sat 2018-05-05 09:38:54 EDT. -- | |
May 05 09:36:22 localhost.localdomain kernel: Linux version 4.16.5-300.fc28.x86_64 ([email protected]) (gcc version 8.0.1 20180324 (Red Hat 8.0.1-0.20) (GCC)) #1 SMP Fri Apr 27 17:38:36 UTC 2018 | |
May 05 09:36:22 localhost.localdomain kernel: Command line: BOOT_IMAGE=/vmlinuz-4.16.5-300.fc28.x86_64 root=/dev/mapper/fedora_windows--obdemh7-root ro resume=/dev/mapper/fedora_windows--obdemh7-swap rd.lvm.lv=fedora_windows-obdemh7/root rd.lvm.lv=fedora_windows-obdemh7/swap rhgb quiet LANG=en_US.UTF-8 | |
May 05 09:36:22 localhost.localdomain kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' | |
May 05 09:36:22 localhost.localdomain kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' | |
May 05 09:36:22 localhost.localdomain kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' | |
May 05 09:36:22 localhost.localdomain kernel: x86/fpu: Supporting XSAVE feature 0x008: 'MPX |
NewerOlder