Updated the Bash prompt. Moved the time-taken to 2nd row 2nd column

This commit is contained in:
Pratik
2020-04-20 09:59:02 +05:30
parent e73f027084
commit fda9039644
6 changed files with 24 additions and 13 deletions

View File

@@ -114,7 +114,7 @@ HISTFILESIZE=-1
HISTCONTROL=ignorespace HISTCONTROL=ignorespace
HISTTIMEFORMAT="%H:%M:%S(%z)%d-%b-%y " HISTTIMEFORMAT="%H:%M:%S(%z)%d-%b-%y "
# Do not let globbing complain on no match # Do not let globbing complain on no match
shopt -s nullglob shopt -s nullglob
function timer_start { function timer_start {
@@ -129,7 +129,7 @@ jazz_my_prompt() {
# Capture exit code of last command # Capture exit code of last command
# Below MUST be the 1st line of the function # Below MUST be the 1st line of the function
local ex=$? local ex=$?
# Capture the last command's execution time # Capture the last command's execution time
timer_show=$(($SECONDS - $timer)) timer_show=$(($SECONDS - $timer))
unset timer unset timer
@@ -148,7 +148,7 @@ jazz_my_prompt() {
local normalwhite="\[\e[37${normal}\]" local normalwhite="\[\e[37${normal}\]"
local yellow_highlight="\[\e[31;7m\]" local yellow_highlight="\[\e[31;7m\]"
# Add color preference BEFORE the item # Add color preference BEFORE the item
local hostname="${normalwhite}\h" local hostname="${normalwhite}\h"
local username="${boldwhite}\u" local username="${boldwhite}\u"
local jobs="${boldwhite}jobs:\j" local jobs="${boldwhite}jobs:\j"
@@ -181,7 +181,7 @@ jazz_my_prompt() {
group9="${groupstart}${normalwhite}${timer_show}s${groupend}" group9="${groupstart}${normalwhite}${timer_show}s${groupend}"
# Position each group where you would like them # Position each group where you would like them
PS1="\n${group1}-${group2}-${group3}-${group4}-${group5}-${group9}\n${group6}-${group8}\n${isroot}${reset} " PS1="\n${group1}-${group2}-${group3}-${group4}-${group5}\n${group6}-${group9}-${group8}\n${isroot}${reset} "
} }
if [[ -f ~/.aliases ]]; then if [[ -f ~/.aliases ]]; then

View File

@@ -22,11 +22,11 @@
"command": "editor.emmet.action.wrapWithAbbreviation" "command": "editor.emmet.action.wrapWithAbbreviation"
}, },
{ {
"key": "alt+a", "key": "alt+q",
"command": "workbench.action.terminal.focus" "command": "workbench.action.terminal.focus"
}, },
{ {
"key": "alt+a", "key": "alt+q",
"command": "workbench.action.focusActiveEditorGroup", "command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus" "when": "terminalFocus"
}, },

View File

@@ -36,7 +36,7 @@
"window.menuBarVisibility": "toggle", "window.menuBarVisibility": "toggle",
"editor.multiCursorModifier": "ctrlCmd", "editor.multiCursorModifier": "ctrlCmd",
"diffEditor.renderSideBySide": false, "diffEditor.renderSideBySide": false,
"diffEditor.ignoreTrimWhitespace": true, "diffEditor.ignoreTrimWhitespace": false,
"explorer.confirmDragAndDrop": false, "explorer.confirmDragAndDrop": false,
"workbench.colorCustomizations": { "workbench.colorCustomizations": {
"tab.activeBackground": "#07f7af3f", "tab.activeBackground": "#07f7af3f",
@@ -61,7 +61,9 @@
"cSpell.fixSpellingWithRenameProvider": true, "cSpell.fixSpellingWithRenameProvider": true,
"cSpell.userWords": [ "cSpell.userWords": [
"Aadhaar", "Aadhaar",
"BBSR",
"GOPATH", "GOPATH",
"Jython",
"Kumar", "Kumar",
"Pratik", "Pratik",
"Printf", "Printf",
@@ -73,8 +75,10 @@
"VVIMP", "VVIMP",
"VVVIMP", "VVVIMP",
"atleast", "atleast",
"elif",
"mkdir", "mkdir",
"pratiktri", "pratiktri",
"pylint",
"subfolder", "subfolder",
"ulta" "ulta"
], ],
@@ -101,7 +105,9 @@
"git.enableSmartCommit": true, "git.enableSmartCommit": true,
"git.autofetch": true, "git.autofetch": true,
"git.confirmSync": false, "git.confirmSync": false,
"gitlens.hovers.currentLine.over": "line", "gitlens.hovers.currentLine.over": "annotation",
"gitlens.advanced.telemetry.enabled": false,
"gitlens.blame.avatars": false,
// //
// Golang // Golang
"go.useLanguageServer": true, "go.useLanguageServer": true,
@@ -130,5 +136,8 @@
"*": "Visual Studio Dark", "*": "Visual Studio Dark",
"markdown": "Material Theme Darker High Contrast" "markdown": "Material Theme Darker High Contrast"
}, },
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"markdown.extension.toc.orderedList": true,
// //
} }

View File

@@ -42,13 +42,13 @@ IconSize=80
PreviewSize=48 PreviewSize=48
[KPropertiesDialog] [KPropertiesDialog]
Height 768=450 Height 768=478
Width 1366=369 Width 1366=446
[MainWindow] [MainWindow]
Height 768=703 Height 768=703
MenuBar=Disabled MenuBar=Disabled
State=AAAA/wAAAAD9AAAAAwAAAAAAAADTAAACnfwCAAAAAvsAAAAUAHAAbABhAGMAZQBzAEQAbwBjAGsBAAAAIgAAAU8AAAByAQAAA/sAAAAWAGYAbwBsAGQAZQByAHMARABvAGMAawEAAAFyAAABTQAAAHIBAAADAAAAAQAAALAAAAKd/AIAAAAB+wAAABAAaQBuAGYAbwBEAG8AYwBrAAAAACIAAAKdAAAAIgEAAAMAAAADAAAFVgAAALr8AQAAAAH7AAAAGAB0AGUAcgBtAGkAbgBhAGwARABvAGMAawAAAAAAAAAFVgAAAEQBAAADAAAEggAAAp0AAAAEAAAABAAAAAgAAAAI/AAAAAEAAAACAAAAAQAAABYAbQBhAGkAbgBUAG8AbwBsAEIAYQByAQAAAAD/////AAAAAAAAAAA= State=AAAA/wAAAAD9AAAAAwAAAAAAAADTAAACnfwCAAAAAvsAAAAUAHAAbABhAGMAZQBzAEQAbwBjAGsBAAAAIgAAAVAAAAByAQAAA/sAAAAWAGYAbwBsAGQAZQByAHMARABvAGMAawEAAAFzAAABTAAAAHIBAAADAAAAAQAAALAAAAKd/AIAAAAB+wAAABAAaQBuAGYAbwBEAG8AYwBrAAAAACIAAAKdAAAAIgEAAAMAAAADAAAFVgAAALr8AQAAAAH7AAAAGAB0AGUAcgBtAGkAbgBhAGwARABvAGMAawAAAAAAAAAFVgAAAEQBAAADAAAEggAAAp0AAAAEAAAABAAAAAgAAAAI/AAAAAEAAAACAAAAAQAAABYAbQBhAGkAbgBUAG8AbwBsAEIAYQByAQAAAAD/////AAAAAAAAAAA=
ToolBarsMovable=Disabled ToolBarsMovable=Disabled
Width 1366=1366 Width 1366=1366
Window-Maximized 768x1366=true Window-Maximized 768x1366=true
@@ -61,12 +61,13 @@ ConfirmTrash=true
[Open-with settings] [Open-with settings]
CompletionMode=1 CompletionMode=1
History=sub,vid,subl,su,vlc,ar,vl,wps History=vlc,sub,vid,subl,su,ar,vl,wps
[PreviewSettings] [PreviewSettings]
Plugins=directorythumbnail,imagethumbnail,jpegthumbnail,gsthumbnail,svgthumbnail Plugins=directorythumbnail,imagethumbnail,jpegthumbnail,gsthumbnail,svgthumbnail
[Search] [Search]
Location=Everywhere
ShowFacetsWidget=true ShowFacetsWidget=true
[SettingsDialog] [SettingsDialog]

View File

@@ -274,6 +274,7 @@ activate task manager entry 7=Meta+7,Meta+7,Activate Task Manager Entry 7
activate task manager entry 8=Meta+8,Meta+8,Activate Task Manager Entry 8 activate task manager entry 8=Meta+8,Meta+8,Activate Task Manager Entry 8
activate task manager entry 9=Meta+9,Meta+9,Activate Task Manager Entry 9 activate task manager entry 9=Meta+9,Meta+9,Activate Task Manager Entry 9
activate widget 21=Alt+F1,none,Activate Application Menu Widget activate widget 21=Alt+F1,none,Activate Application Menu Widget
activate widget 62=none,none,Activate Notes Widget
clear-history=Ctrl+~,none,Clear Clipboard History clear-history=Ctrl+~,none,Clear Clipboard History
clipboard_action=Ctrl+Alt+X,Ctrl+Alt+X,Enable Clipboard Actions clipboard_action=Ctrl+Alt+X,Ctrl+Alt+X,Enable Clipboard Actions
cycleNextAction=none,none,Next History Item cycleNextAction=none,none,Next History Item

View File

@@ -23,7 +23,7 @@ main_height=703
main_maximize=false main_maximize=false
main_sort_column_id=1 main_sort_column_id=1
main_sort_order=0 main_sort_order=0
expanded_group=Hetzner,OVH,Routers expanded_group=Hetzner,Squbix
toolbar_pin_down=false toolbar_pin_down=false
sshtunnel_port=4732 sshtunnel_port=4732
applet_new_ontop=false applet_new_ontop=false