mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-02 19:55:32 +08:00
fish_config to select the proper tab when run with a tab name
`fish_config abbr` should show "abbreviations" selected in the tab list.
This commit is contained in:
parent
7b34aaa432
commit
6fbb3c9976
|
@ -1,8 +1,8 @@
|
|||
controllers = angular.module("controllers", []);
|
||||
|
||||
controllers.controller("main", function($scope, $location) {
|
||||
$scope.currentTab = "colors";
|
||||
|
||||
// substr(1) strips a leading slash
|
||||
$scope.currentTab = $location.path().substr(1) || "colors";
|
||||
$scope.changeView = function(view) {
|
||||
$location.path(view);
|
||||
$scope.currentTab = view;
|
||||
|
|
Loading…
Reference in New Issue
Block a user